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.Usagepc 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
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)
pc version (Show CLI version)
pc version (Show CLI version)
pc whoami (Show current user)
pc whoami (Show current user)
pc auth whoami. Both commands perform the same operation.Authentication
pc auth clear (Clear specific credentials)
pc auth clear (Clear specific credentials)
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)
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)
pc auth local-keys prune (Delete managed keys)
pc auth local-keys prune (Delete managed keys)
cli/user/all) or project ID.Usage--dry-run to preview before committing.pc auth login (Authenticate via user login)
pc auth login (Authenticate via user login)
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
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)
pc auth whoami (Show current user information)
pc auth whoami (Show current user information)
pc whoami.Indexes
pc index configure (Update index configuration)
pc index configure (Update index configuration)
pc index create (Create a new index)
pc index create (Create a new index)
pc index delete (Delete an index)
pc index delete (Delete an index)
--skip-confirmation (or --json) to bypass the prompt in non-interactive contexts.pc index describe (Show index details)
pc index describe (Show index details)
--name/-n flag is a deprecated alias for --index-name/-i.Global Flagspc index stats (Show index statistics)
pc index stats (Show index statistics)
pc index list (List all indexes)
pc index list (List all indexes)
Namespaces
pc index namespace create (Create a namespace)
pc index namespace create (Create a namespace)
pc index namespace delete (Delete a namespace)
pc index namespace delete (Delete a namespace)
pc index namespace describe (Show namespace details)
pc index namespace describe (Show namespace details)
pc index namespace list (List namespaces)
pc index namespace list (List namespaces)
Vectors
pc index vector delete (Delete vectors)
pc index vector delete (Delete vectors)
--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)
--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)
pc index vector query (Query vectors)
pc index vector query (Query vectors)
--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)
--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)
--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.Usagepc 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.UsageCollections
pc index collection create (Create a collection from a pod-based index)
pc index collection create (Create a collection from a pod-based index)
pc index collection delete (Delete a collection)
pc index collection delete (Delete a collection)
--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)
pc index collection list (List collections in your project)
pc index collection list (List collections in your project)
Backups
pc index backup create (Create a backup)
pc index backup create (Create a backup)
pc index backup delete (Delete a backup)
pc index backup delete (Delete a backup)
--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)
pc index backup list (List backups)
pc index backup list (List backups)
pc index restore (Restore an index from a backup)
pc index restore (Restore an index from a backup)
pc index restore describe (Show restore job details)
pc index restore describe (Show restore job details)
pc index restore list (List restore jobs)
pc index restore list (List restore jobs)
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.Usagepc index import describe (Describe an import operation)
pc index import describe (Describe an import operation)
pc index import list (List import operations for an index)
pc index import list (List import operations for an index)
pc index import cancel (Cancel an in-progress import operation)
pc index import cancel (Cancel an in-progress import operation)
Projects
pc project create (Create a new project)
pc project create (Create a new project)
pc project delete (Delete a project)
pc project delete (Delete a project)
pc project describe (Show project details)
pc project describe (Show project details)
pc project list (List all projects)
pc project list (List all projects)
pc project update (Update project settings)
pc project update (Update project settings)
Organizations
pc organization delete (Delete an organization)
pc organization delete (Delete an organization)
pc organization describe (Show organization details)
pc organization describe (Show organization details)
pc organization list (List organizations)
pc organization list (List organizations)
pc organization update (Update organization settings)
pc organization update (Update organization settings)
API keys
pc api-key create (Create a new API key)
pc api-key create (Create a new API key)
pc api-key delete (Delete an API key)
pc api-key delete (Delete an API key)
pc api-key describe (Show API key details)
pc api-key describe (Show API key details)
pc api-key list (List all API keys)
pc api-key list (List all API keys)
pc api-key update (Update API key settings)
pc api-key update (Update API key settings)
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.Usagepc 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.Usagepc 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.Usagepc 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.Usagepc 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