Upstash CLI
$ upstash Official Med RiskUpstash CLI (@upstash/cli) manages serverless Upstash Redis databases, Vector indexes, QStash queues, and AI coding-agent setup. Resource commands support --json output and non-interactive flags alongside interactive prompts when arguments are omitted.
npm install -g @upstash/cli Use upstash CLI for fast control-plane listing and provisioning; Upstash also provides an MCP server (upstash setup) for direct Redis/Vector operations inside chat hosts.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Resource subcommands support --json and explicit flags, though omitting arguments falls back to interactive prompts and bare upstash runs upstash setup.
- Supports
--jsononredis list/stats/create; bare invocation triggers setup wizard
Scoped to control-plane operations; destructive delete commands exist without a built-in --dry-run flag.
- API key auth via
~/.config/upstash/config.json;redis deletemutates live billing resources
Cross-platform Node.js CLI installable via npm or npx.
- Published as
@upstash/cliandupstashon npm
Covers Redis, Vector, and QStash provisioning plus agent MCP onboarding in one tool.
- Manages Upstash Redis, Vector, and QStash control planes
Official upstash/cli repository maintained by Upstash under MIT.
- Official
upstash/clirepository
Documented in Upstash docs and --help, though some newer subcommands rely primarily on CLI help text.
- Official docs at upstash.com/docs/redis/features/cli
Security, Auth & Guardrails
Saved in ~/.config/upstash/config.json after upstash auth login or configured via UPSTASH_EMAIL and UPSTASH_API_KEY.
CLI is MIT open-source; Upstash cloud offers a free tier and pay-as-you-go serverless billing.
# Upstash CLI Agent Rules - Never invoke bare `upstash` with no subcommand (it launches the interactive setup wizard). - Always pass `--json` and explicit flags like `--name` / `--region` to avoid interactive prompts. - NEVER run `upstash redis delete` without user confirmation.
Agent-Ready Command Recipes
Safe Read-Only Queries
upstash redis list --json
Outputs all provisioned Redis databases, endpoints, and regions in JSON.
upstash redis stats --id <database-id> --json
Retrieves command volume, latency, and storage metrics without altering state.
Controlled Writes & Previews
upstash redis create --name agent-cache --region us-east-1 --json
Provisions a serverless Redis instance non-interactively with explicit flags.
Strengths for Agents
- +
--jsonflag provides clean machine-readable resource metadata. - + Works seamlessly via
npx upstashwithout global installation. - + Explicitly supports non-interactive provisioning when all required flags are supplied.
Caveats & Pitfalls
- ! Running bare
upstashwith no subcommand starts an interactiveupstash setupwizard. - ! Omitting required flags triggers interactive selection prompts that stall non-TTY agents.