cli
This skill enables agents to manage Pinecone vector database resources from the terminal using the `pc` CLI tool.
Identity proven by GitHub's verified organisation badge (pinecone-io)
- Agents
- Claude Code
- License
- MIT (permissive)
- Pin
- 5090bcdpinned Oct 9, 2026
- Context cost
- about 1,300 tokenswhen the skill loads
- GitHub stars
- 1on pinecone-io/pinecone-codex-plugin
- Scripts
- None found
What it does
“Guide for using the Pinecone CLI (pc) to manage Pinecone resources from the terminal. The CLI supports ALL index types (standard, integrated, sparse) and all vector operations — unlike the MCP which only supports integrated indexes. Use for batch operations, vector management, backups, namespaces, CI/CD automation, and full control over Pinecone resources.”
Generated summary from the skill's own text
This skill enables agents to manage Pinecone vector database resources from the terminal using the `pc` CLI tool. It supports all index types and vector operations like upsert, query, fetch, update, and delete, plus backups and namespace management. The CLI is particularly valuable for batch operations, CI/CD automation, and scenarios requiring vector operations on standard or sparse indexes.
When to use it
- Performing vector operations on standard, integrated, or sparse Pinecone indexes
- Automating index management, backups, and namespace operations in CI/CD pipelines
- Querying indexes with raw vectors generated externally or bulk updating metadata
- Managing Pinecone resources from terminal scripts or batch processing workflows
When not to
- When the MCP server for Pinecone integrated indexes would suffice
- If browser-based authentication cannot be set up before agent session starts
- For simple text search on integrated indexes where MCP is already available
Install
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add pinecone-io/pinecone-codex-plugin --skill cliInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install pinecone-io/pinecone-codex-plugin cli@5090bcdac560d71ca7d743d22d71fc070c040d49Installs the commit we checked (5090bcd).
Copy by hand
Download the folder at 5090bcd and put it in .claude/skills/cli for Claude Code and in .agents/skills/cli for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Claude Code plugin
/plugin install pinecone@claude-plugins-officialThe publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "cli" by Pinecone. Source, pinned to commit 5090bcdac560d71ca7d743d22d71fc070c040d49: https://github.com/pinecone-io/pinecone-codex-plugin/tree/5090bcdac560d71ca7d743d22d71fc070c040d49/skills/cli 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/cli/ for Claude Code and .agents/skills/cli/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Listing and checks: https://www.agentnative.dev/skills/pinecone/cli-pinecone-codex-plugin
SKILL.md at the pin
---
name: cli
description: Guide for using the Pinecone CLI (pc) to manage Pinecone resources from the terminal. The CLI supports ALL index types (standard, integrated, sparse) and all vector operations — unlike the MCP which only supports integrated indexes. Use for batch operations, vector management, backups, namespaces, CI/CD automation, and full control over Pinecone resources.
argument-hint: install | auth | index [op] | vector [op] | backup | namespace
---
# Pinecone CLI (`pc`)
Manage Pinecone from the terminal. The CLI is especially valuable for vector operations across **all index types** — something the MCP currently can't do.
## CLI vs MCP
| | CLI | MCP |
|---|---|---|
| Index types | All (standard, integrated, sparse) | Integrated only |
| Vector ops (upsert, query, fetch, update, delete) | ✅ | ❌ |
| Text search on integrated indexes | ✅ | ✅ |
| Backups, namespaces, org/project mgmt | ✅ | ❌ |
| CI/CD / scripting | ✅ | ❌ |
---
## Setup
### Install (macOS)
```bash
brew tap pinecone-io/tap
brew install pinecone-io/tap/pinecone
```
Other platforms (Linux, Windows) — download from [GitHub Releases](https://github.com/pinecone-io/cli/releases).
### Authenticate
```bash
# Interactive (recommended for local dev)
pc login
pc target -o "my-org" -p "my-project"
# Service account (recommended for CI/CD)
pc auth configure --client-id "$PINECONE_CLIENT_ID" --client-secret "$PINECONE_CLIENT_SECRET"
# API key (quick testing)
pc config set-api-key $PINECONE_API_KEY
```
Check status: `pc auth status` · `pc target --show`
> **Note for agent sessions**: If you need to run `pc login` inside an agent loop, the browser auth link may not surface correctly. It's best to authenticate **before** starting an agent session. Run `pc login` in your terminal directly, then invoke the agent once you're authenticated.
### Authenticating the CLI does not set `PINECONE_API_KEY`
`pc login` authenticates the CLI tool itself — it does **not** set `PINECONE_API_KEY` in your environment. Python scripts, Node.js SDKs, and other tools that use the Pinecone SDK need `PINECONE_API_KEY` set separately.
Use the CLI to create a key and export it in one step:
```bash
KEY=$(pc api-key create --name agent-sdk-key --json | jq -r '.value')
export PINECONE_API_KEY="$KEY"
```
Without `jq`: run `pc api-key create --name agent-sdk-key --json` and copy the `"value"` field manually.
---
## Common Commands
| Task | Command |
|---|---|
| List indexes | `pc index list` |
| Create serverless index | `pc index create -n my-index -d 1536 -m cosine -c aws -r us-east-1` |
| Index stats | `pc index stats -n my-index` |
| Upload vectors from file | `pc index vector upsert -n my-index --file ./vectors.json` |
| Query by vector | `pc index vector query -n my-index --vector '[0.1, ...]' -k 10 --include-metadata` |
| Query by vector ID | `pc index vector query -n my-index --id "doc-123" -k 10` |
| Fetch vectors by ID | `pc index vector fetch -n my-index --ids '["vec1","vec2"]'` |
| List vector IDs | `pc index vector list -n my-index` |
| Delete vectors by filter | `pc index vector delete -n my-index --filter '{"genre":"classical"}'` |
| List namespaces | `pc index namespace list -n my-index` |
| Create backup | `pc backup create -i my-index -n "my-backup"` |
| JSON output (for scripting) | Add `-j` to any command |
---
## Interesting Things You Can Do
### Query with custom vectors (not just text)
Unlike the MCP, the CLI lets you query any index with raw vector values — useful when you generate embeddings externally (OpenAI, HuggingFace, etc.):
```bash
pc index vector query -n my-index \
--vector '[0.1, 0.2, ..., 0.9]' \
--filter '{"source":{"$eq":"docs"}}' \
-k 20 --include-metadata
```
### Pipe embeddings directly into queries
```bash
jq -c '.embedding' doc.json | pc index vector query -n my-index --vector - -k 10
```
### Bulk metadata update with preview
```bash
# Preview first
pc index vector update -n my-index \
--filter '{"env":{"$eq":"staging"}}' \
--metadata '{"env":"production"}' \
--dry-run
# Apply
pc index vector update -n my-index \
--filter '{"env":{"$eq":"staging"}}' \
--metadata '{"env":"production"}'
```
### Backup and restore
```bash
# Snapshot before a migration
pc backup create -i my-index -n "pre-migration"
# Restore to a new index if something goes wrong
pc backup restore -i <backup-uuid> -n my-index-restored
```
### Automate in CI/CD
```bash
export PINECONE_CLIENT_ID="..."
export PINECONE_CLIENT_SECRET="..."
pc auth configure --client-id "$PINECONE_CLIENT_ID" --client-secret "$PINECONE_CLIENT_SECRET"
pc index vector upsert -n my-index --file ./vectors.jsonl --batch-size 1000
```
### Script against JSON output
```bash
# Get all index names as a list
pc index list -j | jq -r '.[] | .name'
# Check if an index exists before creating
if ! pc index describe -n my-index -j 2>/dev/null | jq -e '.name' > /dev/null; then
pc index create -n my-index -d 1536 -m cosine -c aws -r us-east-1
fi
```
---
## Reference Files
- [Full command reference](references/command-reference.md) — all commands with flags and examples
- [Troubleshooting & best practices](references/troubleshooting.md)
## Documentation
- [CLI Quickstart](https://docs.pinecone.io/reference/cli/quickstart)
- [Command Reference](https://docs.pinecone.io/reference/cli/command-reference)
- [Authentication](https://docs.pinecone.io/reference/cli/authentication)
- [Target Context](https://docs.pinecone.io/reference/cli/target-context)
- [GitHub Releases](https://github.com/pinecone-io/cli/releases)
From pinecone-io/pinecone-codex-plugin at 5090bcd, shown as plain text under its license: MIT (permissive). The license text is in LICENSE.
View SKILL.md on GitHub at 5090bcdFiles
- SKILL.md5.6 KB · 7525b9e3cb5f
- references/
- command-reference.md6.2 KB · 4d1155c22830
- troubleshooting.md2.9 KB · 7cd332e8545a
3 files, 15 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at 5090bcdMore from Pinecone
pinecone:assistant
Create and manage Pinecone Assistants to build RAG-powered chatbots that answer questions about uploaded documents with citations.
Contains scripts
Claude Code · about 810 tokens · pinned 6 days ago
pinecone:cli
This skill enables agents to manage Pinecone vector databases from the terminal using the pc CLI tool.
Claude Code · about 1.3K tokens · pinned 6 days ago
pinecone:docs
This skill provides the agent with curated links to Pinecone documentation organized by topic.
Claude Code, Codex, Cursor +4 · about 810 tokens · pinned 6 days ago
pinecone:full-text-search
Build and query a Pinecone full-text-search index using the document-schema API (Python SDK 10.0.0+).
Contains scripts
Claude Code, Codex, Cursor +3 · about 10.1K tokens · pinned 6 days ago
pinecone:help
This skill provides an overview of available Pinecone vector database skills and explains setup requirements.
Claude Code · about 870 tokens · pinned 6 days ago
pinecone:mcp
This skill provides reference documentation for the Pinecone MCP server tools, enabling agents to manage vector indexes and perform semantic search operations.
Claude Code, Codex, Cursor +4 · about 990 tokens · pinned 6 days ago
Related in Data and databases
pinecone:query
This skill queries Pinecone integrated indexes using natural language text search via the Pinecone MCP server.
by PineconeOfficial publisher
Claude Code · about 1.1K tokens · pinned 6 days ago
pinecone:quickstart
This skill guides new developers through Pinecone with an interactive quickstart offering two paths: a Database path that creates an integrated index, uploads…
by PineconeOfficial publisher
Contains scripts
Claude Code · about 2.2K tokens · pinned 6 days ago
cli
This skill enables agents to manage Pinecone vector databases from the terminal using the pc CLI tool.
by PineconeOfficial publisher
Claude Code, Codex, Cursor +4 · about 1.3K tokens · pinned 6 days ago
query
This skill searches Pinecone integrated indexes using natural language text queries through the Pinecone MCP server.
by PineconeOfficial publisher
Gemini CLI · about 1K tokens · pinned 6 days ago
pinecone-cli
This skill enables agents to manage Pinecone vector databases from the terminal using the `pc` CLI tool.
by PineconeOfficial publisher
Claude Code · about 1.3K tokens · pinned 6 days ago
pinecone-query
This skill queries Pinecone integrated indexes using natural language text.
by PineconeOfficial publisher
Claude Code · about 1K tokens · pinned 6 days ago
Open roles at Pinecone
3 open roles on the jobs board
- Associate Field Engineer
New York City, New York, United States (On-site)
- Senior/Staff Software Engineer, Search & Retrieval Infrastructure
Remote (US) (Remote)
- Senior/Staff Software Engineer, Search & Retrieval Infrastructure
New York City (Remote)