Command structure
The Pinecone CLI uses a hierarchical command structure. Each command consists of a primary command followed by one or more subcommands and optional flags.Getting help
The CLI provides help for commands at every level:Exit codes
All commands return exit code0 for success and 1 for error.
Available commands
This section describes all commands offered by the Pinecone CLI.Top-level commands
pc login (Authenticate via user login)
pc login (Authenticate via user login)
pc target before accessing data. This command defaults to an initial organization and project to which
you have access (these values display in the terminal), but you can change them with pc target.Usage| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc auth login. Both commands perform the same operation.pc logout (Clear credentials / log out)
pc logout (Clear credentials / log out)
- User login token
- Service account credentials (client ID and secret)
- Default (manually specified) API key
- Locally managed keys (for all projects)
- Target organization and project context
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc auth logout. Both commands perform the same operation. Does not delete managed API keys from Pinecone’s servers. Run pc auth local-keys prune before logging out to fully clean up.pc target (Set target organization and project)
pc target (Set target organization and project)
| Long flag | Short flag | Description |
|---|---|---|
--clear | Clear target context | |
--json | -j | Output in JSON format |
--org | -o | Organization name |
--organization-id | Organization ID | |
--project | -p | Project name |
--project-id | Project ID | |
--show | -s | Display current target context |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc version (Show CLI version)
pc version (Show CLI version)
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc whoami (Show current user)
pc whoami (Show current user)
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc auth whoami. Both commands perform the same operation.Authentication
pc auth clear (Clear specific credentials)
pc auth clear (Clear specific credentials)
| Long flag | Short flag | Description |
|---|---|---|
--api-key | Clear only the default (manually specified) API key | |
--service-account | Clear only service account credentials |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc auth logout. Does not clear user login token or managed keys. For those, use pc auth logout or pc auth local-keys prune.pc auth configure (Configure service account or API key)
pc auth configure (Configure service account or API key)
| Long flag | Short flag | Description |
|---|---|---|
--api-key | Default API key to use for authentication | |
--client-id | Service account client ID | |
--client-secret | Service account client secret | |
--client-secret-stdin | Read client secret from stdin | |
--json | -j | Output in JSON format |
--project-id | -p | Target project ID (optional, interactive if omitted) |
--prompt-if-missing | Prompt for missing credentials |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc auth configure --api-key "YOUR_API_KEY" does the same thing as pc config set-api-key "YOUR_API_KEY". To learn about targeting a project after authenticating with a service account, see CLI target context.pc auth local-keys list (List managed keys)
pc auth local-keys list (List managed keys)
| Long flag | Short flag | Description |
|---|---|---|
--json | -j | Output in JSON format |
--reveal | Show the actual API key values (sensitive) |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc auth local-keys prune (Delete managed keys)
pc auth local-keys prune (Delete managed keys)
cli/user/all) or project ID.Usage| Long flag | Short flag | Description |
|---|---|---|
--dry-run | Preview deletions without applying | |
--id | Prune keys for specific project ID only | |
--json | -j | Output in JSON format |
--origin | -o | Filter by origin - cli, user, or all (default: all) |
--skip-confirmation | Skip confirmation prompt |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
--dry-run to preview before committing.pc auth login (Authenticate via user login)
pc auth login (Authenticate via user login)
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc login.pc auth logout (Clear authentication credentials)
pc auth logout (Clear authentication credentials)
- User login token
- Service account credentials (client ID and secret)
- Default (manually specified) API key
- Locally managed keys (for all projects)
- Target organization and project context
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc logout. Does not delete managed API keys from Pinecone’s servers. Run pc auth local-keys prune before logging out to fully clean up.pc auth status (Show authentication status)
pc auth status (Show authentication status)
| Long flag | Short flag | Description |
|---|---|---|
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc auth whoami (Show current user information)
pc auth whoami (Show current user information)
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc whoami.Indexes
pc index configure (Update index configuration)
pc index configure (Update index configuration)
| Long flag | Short flag | Description |
|---|---|---|
--index-name | -i | Name of index to configure (required) |
--deletion-protection | Enable or disable deletion protection - enabled or disabled | |
--tags | Custom user tags (key=value pairs) | |
--json | -j | Output in JSON format |
| Dedicated read nodes | ||
--read-mode | Read capacity mode - ondemand or dedicated | |
--read-node-type | Node type for dedicated read - b1 or t1 | |
--read-shards | Number of shards for dedicated read capacity | |
--read-replicas | Number of replicas for dedicated read capacity | |
| Integrated embedding | ||
--model | Embedding model name | |
--field-map | Field mapping for embedding (key=value pairs) | |
--read-parameters | Read parameters for embedding model (key=value pairs) | |
--write-parameters | Write parameters for embedding model (key=value pairs) | |
| Pods | ||
--pod-type | -t | Type of pod to use; can only upgrade when configuring |
--replicas | -r | Number of replicas of the index to configure |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc index create (Create a new index)
pc index create (Create a new index)
| Long flag | Short flag | Description |
|---|---|---|
--name | -n | Index name (required) |
--dimension | -d | Vector dimension (required for standard indexes, optional for integrated) |
--metric | -m | Similarity metric - cosine, euclidean, or dotproduct (default: cosine) |
--cloud | -c | Cloud provider - aws, gcp, or azure |
--region | -r | Cloud region |
--vector-type | -v | Vector type - dense or sparse (serverless only) |
--source-collection | Name of the source collection from which to create the index | |
--schema | Metadata schema to control which fields are indexed (comma-separated) | |
--deletion-protection | Deletion protection - enabled or disabled | |
--tags | Custom user tags (key=value pairs) | |
--json | -j | Output in JSON format |
| Integrated indexes | ||
--model | Integrated embedding model name | |
--field-map | Field mapping for integrated embedding (key=value pairs) | |
--read-parameters | Read parameters for embedding model (key=value pairs) | |
--write-parameters | Write parameters for embedding model (key=value pairs) | |
| BYOC indexes | ||
--byoc-environment | BYOC environment to use for the index | |
| Dedicated read nodes | ||
--read-mode | Read capacity mode - ondemand or dedicated (default: ondemand) | |
--read-node-type | Node type for dedicated read - b1 or t1 | |
--read-shards | Number of shards (each shard provides 250 GB storage) | |
--read-replicas | Number of replicas for higher throughput | |
| Pod-based indexes | ||
--environment | Environment of the index to create (for example, us-east-1-aws) | |
--pod-type | Type of pod to use (for example, p1.x1, s1.x2) | |
--shards | Number of shards (default: 1) | |
--replicas | Number of replicas (default: 1) | |
--metadata-config | Comma-separated list of metadata fields to index for search |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc index delete (Delete an index)
pc index delete (Delete an index)
| Long flag | Short flag | Description |
|---|---|---|
--index-name | -i | Name of index to delete (required) |
--skip-confirmation | Skip the deletion confirmation prompt | |
--json | -j | Output in JSON format (also skips the confirmation prompt) |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
--skip-confirmation (or --json) to bypass the prompt in non-interactive contexts.pc index describe (Show index details)
pc index describe (Show index details)
| Long flag | Short flag | Description |
|---|---|---|
--index-name | -i | Index name (required) |
--json | -j | Output in JSON format |
--name/-n flag is a deprecated alias for --index-name/-i.Global Flags| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc index stats (Show index statistics)
pc index stats (Show index statistics)
| Long flag | Short flag | Description |
|---|---|---|
--index-name | -i | Index name (required) |
--filter | -f | Metadata filter (inline JSON, ./path.json, or - for stdin) |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc index list (List all indexes)
pc index list (List all indexes)
| Long flag | Short flag | Description |
|---|---|---|
--json | -j | Output in JSON format (includes full index details) |
--wide | -w | Show additional columns (host, embed, tags) |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
Namespaces
pc index namespace create (Create a namespace)
pc index namespace create (Create a namespace)
| Long flag | Short flag | Description |
|---|---|---|
--index-name | -i | Index name (required) |
--name | Namespace name (required) | |
--schema | Metadata schema for the namespace (comma-separated) | |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc index namespace delete (Delete a namespace)
pc index namespace delete (Delete a namespace)
| Long flag | Short flag | Description |
|---|---|---|
--index-name | -i | Index name (required) |
--name | Namespace name (required); use __default__ for the default namespace | |
--skip-confirmation | Skip the deletion confirmation prompt | |
--json | -j | Output in JSON format (also skips the confirmation prompt) |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc index namespace describe (Show namespace details)
pc index namespace describe (Show namespace details)
| Long flag | Short flag | Description |
|---|---|---|
--index-name | -i | Index name (required) |
--name | Namespace name (required); use __default__ for the default namespace | |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc index namespace list (List namespaces)
pc index namespace list (List namespaces)
| Long flag | Short flag | Description |
|---|---|---|
--index-name | -i | Index name (required) |
--limit | -l | Maximum number of results |
--pagination-token | -p | Pagination token for next page |
--prefix | Filter namespaces by prefix | |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
Vectors
pc index vector delete (Delete vectors)
pc index vector delete (Delete vectors)
| Long flag | Short flag | Description |
|---|---|---|
--index-name | -i | Index name (required) |
--namespace | Namespace to delete from (default: __default__) | |
--ids | Vector IDs to delete (inline JSON array, ./path.json, or - for stdin) | |
--filter | Metadata filter (inline JSON, ./path.json, or - for stdin) | |
--all-vectors | Delete all vectors in the namespace | |
--skip-confirmation | Skip the confirmation prompt shown for --all-vectors | |
--json | -j | Output in JSON format (also skips the confirmation prompt) |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
--all-vectors prompts for confirmation. Targeted deletes with --ids or --filter proceed without a prompt. Pass --skip-confirmation (or --json) to bypass the --all-vectors prompt.pc index vector fetch (Fetch vectors by ID or filter)
pc index vector fetch (Fetch vectors by ID or filter)
| Long flag | Short flag | Description |
|---|---|---|
--index-name | -i | Index name (required) |
--namespace | Namespace to fetch from (default: __default__) | |
--ids | Vector IDs to fetch (inline JSON array, ./path.json, or - for stdin) | |
--filter | -f | Metadata filter (inline JSON, ./path.json, or - for stdin) |
--limit | -l | Maximum number of vectors to fetch |
--pagination-token | -p | Pagination token for next page |
--body | Request body JSON (inline, ./path.json, or - for stdin) | |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
--ids or --filter, not both. When using --ids, pagination flags are not applicable.pc index vector list (List vector IDs)
pc index vector list (List vector IDs)
| Long flag | Short flag | Description |
|---|---|---|
--index-name | -i | Index name (required) |
--namespace | Namespace to list from (default: __default__) | |
--limit | -l | Maximum number of IDs to return |
--pagination-token | -p | Pagination token for next page |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc index vector query (Query vectors)
pc index vector query (Query vectors)
| Long flag | Short flag | Description |
|---|---|---|
--index-name | -i | Index name (required) |
--namespace | Namespace to query (default: __default__) | |
--id | Query by vector ID | |
--vector | -v | Query vector values (inline JSON array, ./path.json, or - for stdin) |
--sparse-indices | Sparse vector indices (inline JSON uint32 array, ./path.json, or - for stdin) | |
--sparse-values | Sparse vector values (inline JSON array, ./path.json, or - for stdin) | |
--top-k | -k | Number of results to return (default: 10) |
--filter | -f | Metadata filter (inline JSON, ./path.json, or - for stdin) |
--include-values | Include vector values in results | |
--include-metadata | Include metadata in results | |
--body | Request body JSON (inline, ./path.json, or - for stdin) | |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
--id, --vector, or sparse vectors (--sparse-indices and --sparse-values) to specify what to query against. These options are mutually exclusive.pc index vector update (Update vectors)
pc index vector update (Update vectors)
| Long flag | Short flag | Description |
|---|---|---|
--index-name | -i | Index name (required) |
--namespace | Namespace containing the vector (default: __default__) | |
--id | Vector ID to update | |
--values | New vector values (inline JSON array, ./path.json, or - for stdin) | |
--sparse-indices | New sparse indices (inline JSON uint32 array, ./path.json, or - for stdin) | |
--sparse-values | New sparse values (inline JSON array, ./path.json, or - for stdin) | |
--metadata | New or updated metadata (inline JSON, ./path.json, or - for stdin) | |
--filter | Metadata filter for bulk update (inline JSON, ./path.json, or - for stdin) | |
--dry-run | Preview how many records would be updated without applying changes | |
--body | Request body JSON (inline, ./path.json, or - for stdin) | |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
--id for single vector updates or --filter for bulk updates. These options are mutually exclusive.pc index vector upsert (Upsert vectors)
pc index vector upsert (Upsert vectors)
| Long flag | Short flag | Description |
|---|---|---|
--index-name | -i | Index name (required) |
--namespace | Namespace to upsert into (default: __default__) | |
--body | Request body JSON or JSONL (inline, ./path.json[l], or - for stdin) (required) | |
--batch-size | -b | Size of batches to upsert (default: 500) |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
--batch-size (up to 1000). Large files are automatically split into multiple batches.File size: There’s no explicit file size limit—the CLI reads the entire file into memory and batches it automatically. Very large files are supported as long as they fit in available system memory.Records
pc index record search (Search records in an index)
pc index record search (Search records in an index)
--inputs— query text (requires an index with integrated embedding)--id— use an existing record’s vector as the query--vector— provide a dense vector directly (all index types)--sparse-indices+--sparse-values— sparse vector (all index types)
--vector with --sparse-indices/--sparse-values for hybrid search. Use --body to pass a full request object; flags take precedence over --body when both specify the same field.Usage| Long flag | Short flag | Description |
|---|---|---|
--index-name | -i | Name of the index to search (required) |
--inputs | Query inputs for text search (inline JSON, ./path.json, or - for stdin); requires integrated embedding. Mutually exclusive with --id and --vector. | |
--id | Use an existing record’s vector by ID for the query. Mutually exclusive with --inputs and --vector. | |
--vector | -v | Dense vector values to search against (inline JSON float32 array, ./path.json, or - for stdin). Mutually exclusive with --inputs and --id. |
--sparse-indices | Sparse vector indices (inline JSON int32 array, ./path.json, or - for stdin). Must be used together with --sparse-values. | |
--sparse-values | Sparse vector values (inline JSON float32 array, ./path.json, or - for stdin). Must be used together with --sparse-indices. | |
--top-k | -k | Number of results to return (required) |
--namespace | Namespace to search | |
--filter | Metadata filter (inline JSON, ./path.json, or - for stdin) | |
--rerank | Re-score results using an inference model (inline JSON, ./path.json, or - for stdin). Required fields: model (string), rank_fields (string array). | |
--match-terms | Keyword terms filter for sparse integrated indexes (inline JSON, ./path.json, or - for stdin). Required field: terms (string array). Requires --inputs. | |
--fields | Fields to return in results (inline JSON string array, ./path.json, or - for stdin) | |
--body | Full request body JSON (inline, ./path.json, or - for stdin). Flags take precedence when both specify the same field. | |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc index record upsert (Upsert records into an integrated index)
pc index record upsert (Upsert records into an integrated index)
--body flag accepts a JSON object containing a "records" array of IntegratedRecord objects, a raw JSON array of records, or a JSONL stream of records (one object per line). The value can be inline JSON, a path to a .json or .jsonl file, or - to read from stdin.Records are sent in batches. The default batch size is 96 (the API maximum). Use --batch-size to send smaller batches.Usage| Long flag | Short flag | Description |
|---|---|---|
--index-name | -i | Name of the index to upsert into (required) |
--body | Request body JSON or JSONL (inline JSON, ./path.json[l], or - for stdin) (required) | |
--namespace | Namespace to upsert into | |
--batch-size | -b | Number of records per batch (default: 96, max: 96) |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
Collections
pc index collection create (Create a collection from a pod-based index)
pc index collection create (Create a collection from a pod-based index)
| Long flag | Short flag | Description |
|---|---|---|
--name | -n | Name to give the collection (required) |
--source | -s | Name of the pod-based index to use as the source (required) |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc index collection delete (Delete a collection)
pc index collection delete (Delete a collection)
| Long flag | Short flag | Description |
|---|---|---|
--name | -n | Name of the collection to delete (required) |
--skip-confirmation | Skip the deletion confirmation prompt | |
--json | -j | Output in JSON format (also skips the confirmation prompt) |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
--skip-confirmation (or --json) to bypass the prompt in non-interactive contexts.pc index collection describe (Describe a collection by name)
pc index collection describe (Describe a collection by name)
| Long flag | Short flag | Description |
|---|---|---|
--name | -n | Name of the collection to describe (required) |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc index collection list (List collections in your project)
pc index collection list (List collections in your project)
| Long flag | Short flag | Description |
|---|---|---|
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
Backups
pc index backup create (Create a backup)
pc index backup create (Create a backup)
| Long flag | Short flag | Description |
|---|---|---|
--index-name | -i | Name of the index to back up (required) |
--name | Human-readable label for the backup (the backup ID is always a UUID) | |
--description | -d | Description for the backup |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc index backup delete (Delete a backup)
pc index backup delete (Delete a backup)
| Long flag | Short flag | Description |
|---|---|---|
--id | -i | Backup ID to delete (required) |
--skip-confirmation | Skip the deletion confirmation prompt | |
--json | -j | Output in JSON format (also skips the confirmation prompt) |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
--skip-confirmation (or --json) to bypass the prompt in non-interactive contexts.pc index backup describe (Show backup details)
pc index backup describe (Show backup details)
| Long flag | Short flag | Description |
|---|---|---|
--id | -i | Backup ID to describe (required) |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc index backup list (List backups)
pc index backup list (List backups)
| Long flag | Short flag | Description |
|---|---|---|
--index-name | -i | Filter backups by index name |
--limit | -l | Maximum number of results |
--pagination-token | -p | Pagination token for next page |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc index restore (Restore an index from a backup)
pc index restore (Restore an index from a backup)
| Long flag | Short flag | Description |
|---|---|---|
--id | -i | Backup ID (UUID) to restore from (required) |
--name | -n | Name for the new index (required) |
--deletion-protection | Enable deletion protection - enabled or disabled | |
--tags | -t | Tags to apply to the new index (key=value pairs) |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc index restore describe (Show restore job details)
pc index restore describe (Show restore job details)
| Long flag | Short flag | Description |
|---|---|---|
--id | -i | Restore job ID to describe (required) |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc index restore list (List restore jobs)
pc index restore list (List restore jobs)
| Long flag | Short flag | Description |
|---|---|---|
--limit | -l | Maximum number of results |
--pagination-token | -p | Pagination token for next page |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
Imports
pc index import start (Start an import from a storage URI)
pc index import start (Start an import from a storage URI)
s3://).For private buckets, configure a storage integration in the Pinecone console and pass the integration ID with --integration-id.Use --error-mode to control behavior when records fail: continue skips failing records and keeps going; abort stops the import on first error. Defaults to continue.Usage| Long flag | Short flag | Description |
|---|---|---|
--index-name | -i | Name of the index to import into (required) |
--uri | -u | URI of the data to import, for example s3://bucket/path/ (required) |
--integration-id | Storage integration ID for private buckets | |
--error-mode | How to handle record errors: continue (default) or abort | |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc index import describe (Describe an import operation)
pc index import describe (Describe an import operation)
| Long flag | Short flag | Description |
|---|---|---|
--index-name | -i | Name of the index the import belongs to (required) |
--id | ID of the import to describe (required) | |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc index import list (List import operations for an index)
pc index import list (List import operations for an index)
| Long flag | Short flag | Description |
|---|---|---|
--index-name | -i | Name of the index to list imports for (required) |
--limit | -l | Maximum number of imports to return |
--pagination-token | -p | Pagination token to continue a previous listing operation |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc index import cancel (Cancel an in-progress import operation)
pc index import cancel (Cancel an in-progress import operation)
| Long flag | Short flag | Description |
|---|---|---|
--index-name | -i | Name of the index the import belongs to (required) |
--id | ID of the import to cancel (required) | |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
Projects
pc project create (Create a new project)
pc project create (Create a new project)
| Long flag | Short flag | Description |
|---|---|---|
--force-encryption | Enable encryption with CMEK | |
--json | -j | Output in JSON format |
--name | -n | Project name (required) |
--target | Automatically target the project in the CLI after it’s created |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc project delete (Delete a project)
pc project delete (Delete a project)
| Long flag | Short flag | Description |
|---|---|---|
--id | -i | Project ID (optional, uses target project if not specified) |
--json | -j | Output in JSON format |
--skip-confirmation | Skip confirmation prompt |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc project describe (Show project details)
pc project describe (Show project details)
| Long flag | Short flag | Description |
|---|---|---|
--id | -i | Project ID (required) |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc project list (List all projects)
pc project list (List all projects)
| Long flag | Short flag | Description |
|---|---|---|
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc project update (Update project settings)
pc project update (Update project settings)
| Long flag | Short flag | Description |
|---|---|---|
--force-encryption | -f | Enable/disable encryption with CMEK |
--id | -i | Project ID (required) |
--json | -j | Output in JSON format |
--name | -n | New project name |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
Organizations
pc organization delete (Delete an organization)
pc organization delete (Delete an organization)
| Long flag | Short flag | Description |
|---|---|---|
--id | -i | Organization ID (required) |
--json | -j | Output in JSON format |
--skip-confirmation | Skip confirmation prompt |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc organization describe (Show organization details)
pc organization describe (Show organization details)
| Long flag | Short flag | Description |
|---|---|---|
--id | -i | Organization ID (required) |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc organization list (List organizations)
pc organization list (List organizations)
| Long flag | Short flag | Description |
|---|---|---|
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc organization update (Update organization settings)
pc organization update (Update organization settings)
| Long flag | Short flag | Description |
|---|---|---|
--id | -i | Organization ID (required) |
--json | -j | Output in JSON format |
--name | -n | New organization name |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
API keys
pc api-key create (Create a new API key)
pc api-key create (Create a new API key)
| Long flag | Short flag | Description |
|---|---|---|
--id | -i | Project ID (optional, uses target project if not specified) |
--json | -j | Output in JSON format |
--name | -n | Key name (required) |
--roles | Roles to assign (default: ProjectEditor) | |
--store | Store the key locally for CLI use (automatically replaces any existing CLI-managed key) |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc api-key delete (Delete an API key)
pc api-key delete (Delete an API key)
| Long flag | Short flag | Description |
|---|---|---|
--id | -i | API key ID (required) |
--skip-confirmation | Skip confirmation prompt |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc api-key describe (Show API key details)
pc api-key describe (Show API key details)
| Long flag | Short flag | Description |
|---|---|---|
--id | -i | API key ID (required) |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc api-key list (List all API keys)
pc api-key list (List all API keys)
| Long flag | Short flag | Description |
|---|---|---|
--id | -i | Project ID (optional, uses target project if not specified) |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc api-key update (Update API key settings)
pc api-key update (Update API key settings)
| Long flag | Short flag | Description |
|---|---|---|
--id | -i | API key ID (required) |
--json | -j | Output in JSON format |
--name | -n | New key name |
--roles | -r | Roles to assign |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
Config
pc config list (List all configuration settings and their current values)
pc config list (List all configuration settings and their current values)
api-key are masked by default; use --reveal to see the full value. Hidden settings such as environment are included when --all is passed.Usage| Long flag | Short flag | Description |
|---|---|---|
--reveal | Reveal the full value for sensitive settings like api-key | |
--json | -j | Output in JSON format |
--all | Include hidden settings such as environment |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc config get <key> (Get the current value of a configuration setting)
pc config get <key> (Get the current value of a configuration setting)
api-key, color, environment. Sensitive values like api-key are masked by default; use --reveal to see the full value.Usage| Long flag | Short flag | Description |
|---|---|---|
--reveal | Reveal the full value for sensitive settings like api-key | |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc config describe <key> (Show detailed information about a configuration setting)
pc config describe <key> (Show detailed information about a configuration setting)
api-key, color, environment.Usage| Long flag | Short flag | Description |
|---|---|---|
--reveal | Reveal the full value for sensitive settings like api-key | |
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc config set <key> <value> (Set a configuration value)
pc config set <key> <value> (Set a configuration value)
api-key, color, environment. The value is persisted to the local config file.Usage| Long flag | Short flag | Description |
|---|---|---|
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |
pc config unset <key> (Reset a configuration value to its default)
pc config unset <key> (Reset a configuration value to its default)
api-key, color, environment.Usage| Long flag | Short flag | Description |
|---|---|---|
--json | -j | Output in JSON format |
| Long flag | Short flag | Description |
|---|---|---|
--help | -h | Show help information |
--quiet | -q | Suppress output |
--timeout | Timeout (default 60s, 0 to disable) |