← All tools

@upstash/cli

Popularity 65 Updated Development & Build

Agent-friendly CLI for Upstash

npmauto-collected

Installation

npm
npm install -g @upstash/cli

Install with npm.

Upstash CLI

Agent-friendly CLI for managing & debugging Upstash resources from your terminal. Docs.

Installation

npm i -g @upstash/cli

For agents, pair the CLI with the Upstash Skill, it bundles Upstash docs alongside docs for the upstash CLI.

npx skills add upstash/skills

Authentication

Grab a Developer API key from the Upstash Console, then save it once per machine:

upstash login

Or set UPSTASHEMAIL and UPSTASHAPIKEY in your shell or a .env file. See the auth docs for env files, per-command flags, and precedence rules.

Quick examples

All output is JSON, so you can pipe to jq. Use --dry-run to preview destructive commands.

# Redis
upstash redis list
upstash redis create --name my-db --region us-east-1
upstash redis exec --db-url $URL --db-token $TOKEN GET key

# Vector
upstash vector list
upstash vector create --name my-index --region us-east-1 --similarity-function COSINE --dimension-count 1536

# Search
upstash search list
upstash search create --name my-search --region us-central1 --type DENSE

QStash

upstash qstash list upstash qstash stats --qstash-id $QSTASHID --period 7d

Team

upstash team list upstash team add-member --team-id $TEAMID --member-email you@example.com --role dev


Run `upstash --help` (or `--help` on any subcommand) to discover everything else, and check the [full docs](https://upstash.com/docs/agent-resources/cli) for the complete catalog.

## Contributing