Installation
npm
You can install upstash’s cli directly from npmupstash
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 runningupstash
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.