Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

upstash-cli

FreeNo executable scriptsNot checked

Run the Upstash CLI (`upstash`) from a terminal, shell script, or CI job when no Upstash MCP tools are in the session. Do not load this skill when Upstash MCP…

upstashby upstash★ 37 GitHub stars

About this skill

Prefer the MCP server when it is available

If Upstash MCP tools are in the session, call them instead of shelling out to the CLI. They are already authenticated and cover the same ground — creating, branching and inspecting Redis databases, running Redis commands, usage stats and insights, backups, plans and budgets, Vector and Search indexes, Blob buckets and objects, QStash schedules and messages, the DLQ, logs, and Box. Installing the Upstash plugin registers the hosted server at https://mcp.upstash.com/mcp.

Use the CLI when there is no MCP in the session, or when the work is inherently shell work — a CI step, a provisioning script, or piping JSON into other commands.

The Upstash CLI (upstash) manages Upstash services via the Upstash Developer API. All commands are non-interactive and emit JSON on stdout. Errors go to stderr as { "error": "..." } with exit code 1.

Install

npm i -g upstash

Or run a single command without installing: npx upstash <command>.

Connect coding agents to Upstash

upstash setup connects coding agents to Upstash in one step. Claude Code, Codex, Cursor, and Gemini CLI get the Upstash plugin (the Upstash skills plus the remote MCP server). VS Code, GitHub Copilot CLI, and OpenCode get the remote MCP server (https://mcp.upstash.com/mcp) in their config plus the upstash skill. The MCP server signs in with OAuth on first use, so setup never writes an API key into an agent's config.

A person at a terminal can run npx upstash: with no arguments in a terminal it starts upstash setup and asks which agents to set up. Outside a terminal a bare upstash only prints the help, so from an agent or a script call upstash setup with --yes and the agent flags:

npx -y upstash setup --yes --claude             # or --codex, --cursor, --gemini, --vscode, --copilot, --opencode
npx -y upstash setup --yes --cursor --mode mcp  # remote MCP server + skill instead of the plugin
npx -y upstash setup --yes --claude --project   # this project instead of the user config
npx -y upstash setup --yes --dry-run            # show what would change; without agent flags, --yes covers every detected agent

With --project, Claude Code installs the plugin at project scope; Codex, Cursor, and Gemini CLI plugins install per user only, so they get project-level MCP config plus the skill instead. Rerunning setup updates what it installed. Afterwards the agent needs a restart or reload (in Claude Code, /reload-plugins; in Cursor, Developer: Reload Window).

Authentication

Recommended: run upstash login once per machine. Prompts for email and a Developer API key (create one at https://console.upstash.com/account/api), verifies them, and saves to ~/.config/upstash/config.json.

upstash login

Alternatives — env vars (also auto-loaded from a .env in cwd), or --email / --api-key inline, or --env-path <path> to point at a specific .env:

export [email protected]
export UPSTASH_API_KEY=your_api_key

Precedence: flags > env vars > .env > saved config. Prefer a read-only API key for agents when possible — mutations fail at the API, the same way they would in the console.

Resource ID flags

Flag Products
--db-id <id> Redis
--index-id <id> Vector, Search
--qstash-id <id> QStash
<bucket> (positional, name or id) Blob
--team-id <id> Team

Redis

upstash redis list
upstash redis get --db-id <id> [--hide-credentials]
upstash redis create --name <name> --region <region> [--read-regions <r1> <r2>]
upstash redis create-branch --db-id <id> --name <branch-name>
upstash redis delete --db-id <id> [--dry-run]
upstash redis rename --db-id <id> --name <new-name>
upstash redis reset-password --db-id <id>
upstash redis stats --db-id <id>

upstash redis enable-tls --db-id <id>
upstash redis {enable,disable}-eviction --db-id <id>
upstash redis {enable,disable}-autoupgrade --db-id <id>
upstash redis change-plan --db-id <id> --plan <free|payg|pro|paid>
upstash redis update-budget --db-id <id> --budget <cents>
upstash redis update-regions --db-id <id> --read-regions <r1> <r2>
upstash redis move-to-team --db-id <id> --team-id <id>

Regions — AWS: us-east-1, us-east-2, us-west-1, us-west-2, ca-central-1, eu-central-1, eu-west-1, eu-west-2, sa-east-1, ap-south-1, ap-northeast-1, ap-southeast-1, ap-southeast-2, af-south-1. GCP: us-central1, us-east4, europe-west1, asia-northeast1.

create-branch makes a branch: a point-in-time copy of a database (or of another branch) with its own endpoint and password, billed as pay-as-you-go. It returns in state creating; poll upstash redis get --db-id <database_id of the branch> until state is active. The other redis commands take a branch's id like any database's. A branch cannot be merged back. To use it from application code, write its credentials to the env file

Full SKILL.md on GitHub

Install upstash-cli in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the upstash-cli skill do?

Run the Upstash CLI (`upstash`) from a terminal, shell script, or CI job when no Upstash MCP tools are in the session. Do not load this skill when Upstash MCP tools are available (the Upstash plugin registers mcp.upstash.com) - they already cover creating, listing, renaming, branching, and deleting Redis databases, running Redis commands, usage stats, backups, plans and budgets, Vector and Search indexes, QStash schedules and messages, Blob buckets and objects, and Box, so call them directly. Use this skill for shell work the MCP does not do - a CI step or provisioning script with JSON output, piping results into other commands, `upstash login` and API-key setup, team and member management, restoring a Redis backup, uploading or syncing local files to a Blob bucket, minting temporary S3 credentials, connecting a coding agent to Upstash with `upstash setup` (the Upstash plugin, or the remote MCP server plus skills), or when the user explicitly asks for the CLI or for managing Upstash without the console.

How do I install the upstash-cli skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the upstash-cli skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare upstash-cli with