CLI
Overview
Manage Upstash resources in your terminal or CI.
You can find the Github Repository here.
Installation
npm
You can install upstash’s cli directly from npm
It will be added as upstash
to your system’s path.
Compiled binaries:
upstash
is also available from the
releases page compiled
for windows, linux and mac (both intel and m1).
Usage
Authentication
When running upstash
for the first time, you should log in using
upstash auth login
. Provide your email and an api key.
See here for how to get a key.
As an alternative to logging in, you can provide UPSTASH_EMAIL
and
UPSTASH_API_KEY
as environment variables.
Usage
Let’s create a new redis database:
Output
Most commands support the --json
flag to return the raw api response as json,
which you can parse and automate your system.
Was this page helpful?