Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Upstash CLI

$ upstash Official Med Risk
Upstash · Database & Data · MIT · macos / linux / windows

Upstash 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.

FCRS-1.0 Score
83 /100
Good
Medium Confidence
Zero-Friction Install
npm install -g @upstash/cli
CLI vs MCP Decision Hybrid (CLI + MCP)

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

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

Resource subcommands support --json and explicit flags, though omitting arguments falls back to interactive prompts and bare upstash runs upstash setup.

  • Supports --json on redis list / stats / create; bare invocation triggers setup wizard
Trust & Safety 20 / 25

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 delete mutates live billing resources
Setup & Portability 13 / 15

Cross-platform Node.js CLI installable via npm or npx.

  • Published as @upstash/cli and upstash on npm
Utility & Efficiency 13 / 15

Covers Redis, Vector, and QStash provisioning plus agent MCP onboarding in one tool.

  • Manages Upstash Redis, Vector, and QStash control planes
Maintenance & Lineage 9 / 10

Official upstash/cli repository maintained by Upstash under MIT.

  • Official upstash/cli repository
Docs & Verifiability 7 / 10

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

Auth Modes
Env API Key Config File
Credential Storage

Saved in ~/.config/upstash/config.json after upstash auth login or configured via UPSTASH_EMAIL and UPSTASH_API_KEY.

Side Effects
Read-Only Remote Write Destructive Billing Impact
Cost & Quotas

CLI is MIT open-source; Upstash cloud offers a free tier and pay-as-you-go serverless billing.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

List Upstash Redis databases in JSON
upstash redis list --json

Outputs all provisioned Redis databases, endpoints, and regions in JSON.

Fetch stats for a Redis database
upstash redis stats --id <database-id> --json

Retrieves command volume, latency, and storage metrics without altering state.

Controlled Writes & Previews

Create a new regional Redis database
upstash redis create --name agent-cache --region us-east-1 --json

Provisions a serverless Redis instance non-interactively with explicit flags.

Strengths for Agents

  • + --json flag provides clean machine-readable resource metadata.
  • + Works seamlessly via npx upstash without global installation.
  • + Explicitly supports non-interactive provisioning when all required flags are supplied.

Caveats & Pitfalls

  • ! Running bare upstash with no subcommand starts an interactive upstash setup wizard.
  • ! Omitting required flags triggers interactive selection prompts that stall non-TTY agents.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI