pi query list

Command Help

> pi query list -h
Usage: pi query list [-h]
                     [--format {csv,json,long,table,template} | --verbose]
                     [--model MODEL] [--all]
                     [identifier [identifier ...]]

Description: List all matching Queries. A variety of format and filtering
options are supported.

Positional arguments:
  identifier            Filter Queries by name.

Optional arguments:
  --all, -a             Include all shared Queries.
  --format {csv,json,long,table,template}
                        Return the results using the specified data structure.
                        The template format produces files that can be used by
                        the pi add|edit commands with the --template option.
  --model MODEL         Use the specified report model (table report only).
  --verbose, -v         Alias for --format long.
  -h, --help            Show this help message and exit

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

Example

> pi query list
┌────────────┬────────────┬───────────────────────────────┬──────────────────────────────────────────┬────────┐
│ NAME       │ CREATED BY │ CREATED ON                    │ DESCRIPTION                              │ SHARED │
╞════════════╪════════════╪═══════════════════════════════╪══════════════════════════════════════════╪════════╡
│ AnalogIP   │ admin      │ 2019-07-24 12:39:12 -0700 PDT │ query to show all IP with analog label   │ Yes    │
│ MS90G      │ admin      │ 2019-07-24 12:39:13 -0700 PDT │ query to show all external IP for the    │ Yes    │
│            │            │                               │ MS90G process                            │        │
│ newquery   │ admin      │ 2019-07-29 15:18:26 -0700 PDT │ a new query                              │ Yes    │
│ powgtspec  │ admin      │ 2019-07-24 12:39:12 -0700 PDT │ show IPVs with power higher than their   │ Yes    │
│            │            │                               │ target spec                              │        │
│ powltspec  │ admin      │ 2019-07-24 12:39:09 -0700 PDT │ show IPVs with power lower than their    │ Yes    │
│            │            │                               │ target spec                              │        │
│ wsup_10min │ admin      │ 2019-07-24 12:39:11 -0700 PDT │ show workspaces not updated in the last  │ Yes    │
│            │            │                               │ 10 min                                   │        │
└────────────┴────────────┴───────────────────────────────┴──────────────────────────────────────────┴────────┘
Found 6 matching object(s).