pi query attribute

pi query attribute Command Help

> pi query attribute -h
Usage: pi query attribute [-h] SUBCOMMAND ...

Description: Commands related to Query Attributes. These subcommands are used
to delete, get, list information about and set Attributes on Queries.

Optional arguments:
  -h, --help            Show this help message and exit

Available sub-commands:
  SUBCOMMAND
    delete (del, remove, rm)
                        Delete an Attribute from a Query.
    get                 Get the value of an Attribute from a Query.
    list (ls)           List the Attributes on a Query.
    set                 Set the value of an Attribute on a Query.

More information and documentation available at:
  https://help.perforce.com/methodics/
Copyright © 2010-2025 Perforce, Inc.

pi query attribute delete Command Help

> pi query attribute delete -h
Usage: pi query attribute delete [-h] identifier attr_name

Description: Delete an Attribute from a Query.

Positional arguments:
  identifier  Query identifier to delete Attribute from.
  attr_name   Name of Attribute to delete.

Optional arguments:
  -h, --help  Show this help message and exit

Examples:
# Delete Attribute additional_info from Query my_query
  pi query attr del my_query additional_info

More information and documentation available at:
  https://help.perforce.com/methodics/
Copyright © 2010-2025 Perforce, Inc.

pi query attribute get Command Help

> pi query attribute get -h
Usage: pi query attribute get [-h] identifier attr_name

Description: Get the value of an Attribute from a Query. The Attribute value
is returned directly by this command.

Positional arguments:
  identifier  Query identifier to get Attribute value from.
  attr_name   Name of Attribute to get.

Optional arguments:
  -h, --help  Show this help message and exit

Examples:
# Get the value of Attribute additional_info from Query my_query
  pi query attr get my_query additional_info

More information and documentation available at:
  https://help.perforce.com/methodics/
Copyright © 2010-2025 Perforce, Inc.

pi query attribute list Command Help

> pi query attribute list -h
Usage: pi query attribute list [-h] identifier

Description: List the Attributes on a Query. All Attributes on the Query are
listed.

Positional arguments:
  identifier  Query identifier the Attributes to list are on.

Optional arguments:
  -h, --help  Show this help message and exit

Examples:
# List the Attributes on Query my_query
  pi query attr list my_query

More information and documentation available at:
  https://help.perforce.com/methodics/
Copyright © 2010-2025 Perforce, Inc.

pi query attribute set Command Help

> pi query attribute set -h
Usage: pi query attribute set [-h] [--file FILE]
                              identifier attr_name [attr_value]

Description: Set the value of an Attribute on a Query. Attributes are open
text fields in the Query. Users can set any key/value pair asan Attribute on a
Query. Perforce IPLM performs no checks on Attributes. Optionally users can
define the Attribute value in a text file, location specified with --file
option (useful for complicated JSON strings, etc). Users may also read from
command STDIN directly and redirect with standard Unix. Note that the use of
attr_value and --file are mutually exclusive.

Positional arguments:
  identifier   Query identifier on which to set the Attribute.
  attr_name    Name of Attribute to set.
  attr_value   Value of Attribute to set.

Optional arguments:
  --file FILE  Specify path to file containing the Attribute value.
  -h, --help   Show this help message and exit

Examples:
# Set Attribute additional_info on Query my_query with value NONE
  pi query attr set my_query additional_info "NONE"# Set Attribute additional_info on Query my_query with value from contents of
file info.txt
  pi query attr set my_query additional_info --file info.txt

# Set Attribute test_results on Query my_query with value from STDOUT of
script run_regression.py
  run_regression.py | pi query attr set my_query test_results --file -

More information and documentation available at:
  https://help.perforce.com/methodics/
Copyright © 2010-2025 Perforce, Inc.