P

Pinecone CLI

CLI discovered

Details
Command
pc
Docs
https://docs.pinecone.io/reference/cli/quickstart
Authentication
Pinecone user login token for CLI oauth2 discovered $ pc auth login

Acquired by the CLI — running pc auth login opens the auth flow and stores the credential.

Pinecone service account client credentials oauth2_cc discovered Set up OAuth ↗
$ pc auth configure --client-id "ID" --client-secret "SECRET"

Create a service account in the Pinecone console as described in Manage service accounts at the organization-level, then add it to a project via project-level service accounts. Copy the client_id and client_secret, then exchange them for an access token at https://login.pinecone.io/oauth/token using the client_credentials grant with audience https://api.pinecone.io/. The resulting bearer token authenticates Admin API requests; the raw client credentials can also be configured directly in the CLI with pc auth configure --client-id ... --client-secret ... or PINECONE_CLIENT_ID / PINECONE_CLIENT_SECRET.

Pinecone project API key api_key discovered Get key ↗
$ pc auth configure --api-key "YOUR_API_KEY"

Create a project API key in the Pinecone console or follow the steps in Manage API keys: open your project, go to API keys, click Create API key, choose permissions, and copy the key value. Send it as the Api-Key header for HTTP APIs, or configure it with pc auth configure --api-key / PINECONE_API_KEY for the CLI.