CLI overview
The nova command line appends and reads records, manages buckets, streams, and queues, and runs a cluster.
The CLI tab is for anyone who uses the nova command line. nova appends and
reads records, manages buckets, streams, and queues, and administers a
cluster. It uses the Go SDK, so it calls the same API as your applications.
export NOVA_ADDR=localhost:7781
nova stream create nova://demo/events
printf 'hello\nworld\n' | nova append nova://demo/events
nova read nova://demo/eventsnova://demo/events
ID: 01a203cc-f7d4-7a5c-abf2-6444a28b9f93
Class: standard
Producer: any
Retention age: unlimited
Throughput: unlimited
Created: -
appended 2 entries
0 2026-11-22T15:08:14Z hello
1 2026-11-22T15:08:14Z worldstream create also creates the bucket demo when it is missing. The
examples on this tab use the quickstart cluster.
Install
Build the CLI from a checkout of the repository, with Go 1.27 or later:
git clone https://github.com/supabase/nova.git
cd nova
go build -o "$(go env GOPATH)/bin/nova" ./cmd/novactlThe same CLI is also named novactl. A binary built from ./cmd/novactl uses
that name in its help text; the commands are the same.
Connect
Every command that talks to a cluster needs an address. Set it once with
NOVA_ADDR, or per command with --addr. The form of the address decides how
the CLI connects:
| Address | Example | Connects to |
|---|---|---|
host:port | localhost:7781 | A node, over gRPC. Every command works, and the CLI follows each stream to its leader |
An http:// or https:// URL | http://localhost:8080 | The Gateway or a node's data bridge, over HTTP |
--domain and --location | --domain nova.example --location eu | The Gateway at https://eu.nova.example, with each bucket's stream commands on its own host |
Use host:port inside your network and a URL from outside it. Over HTTP, the
record, stream, bucket, and queue commands work. The cluster commands
(health, fleet, node, oxia), the credential registry commands, and
stream ranges, split, and merge need a host:port address. Over HTTP they
fail with nova: client: the admin plane is wire-only … and exit code 1.
With --domain,
add --path-style to send stream commands to the Gateway's own host instead
of each bucket's.
auth key, token mint, and credential generate work offline and need no
address.
Credentials and TLS
| Need | Flag | Environment variable |
|---|---|---|
| An API key | None | NOVA_API_KEY |
| A bearer token | --token | NOVA_TOKEN |
| Verify the server's certificate, which turns TLS on | --tls-ca | NOVA_TLS_CA |
| Mutual TLS | --tls-cert and --tls-key, with --tls-ca | NOVA_TLS_CERT, NOVA_TLS_KEY |
| Basic auth for the cluster commands | --admin-user, --admin-password | NOVA_ADMIN_USER, NOVA_ADMIN_PASSWORD |
Set an API key or a token. Setting both is a usage error. With an API key, the CLI exchanges it
for short-lived tokens and renews them as they expire.
nova token exchange prints one for
another program. The key has no flag, so
it never appears in the process list. Without TLS settings, the connection is
plaintext. --admin-user replaces the key or token only on the commands that
need a host:port address. See
Authentication for how a cluster checks credentials.
Which setting wins
- A flag wins over its environment variable.
NOVA_ADDR,NOVA_TOKEN, theNOVA_TLS_*variables, and theNOVA_ADMIN_*variables each have aNOVACTL_twin. TheNOVA_name wins when both are set.--addrand--domainname the same thing, so set one.--domainneeds--location.--locationbeside--addrchecks the location of every bucket you create or update: the command fails when the cluster serves another one.
To move between a local cluster and production, keep the address in the
environment of each shell, or pass --addr to one command:
export NOVA_ADDR=localhost:7781
nova --addr https://eu.nova.example lsCommands
nova --help lists every command and global option. Each command has its own
--help.
NAME:
nova - the nova operator CLI
USAGE:
nova [global options] [command [command options]]
COMMANDS:
start run a storage node in this process (memory by default; --local-data or --s3-bucket to persist)
ls list buckets, or a bucket's streams
bucket bucket lifecycle — the container every stream is created in
stream stream lifecycle, and a scalable stream's ranges
queue a bucket's queues: list, show, replay dead letters, purge
append append stdin lines as entries (one per line)
tail show a stream's last records, oldest first
check-tail show the committed tail — one past the last record, with its time
fence install, rotate, or clear (no token) the stream's fencing token
read read entries
health one node's health
bench benchmark a temporary stream: a paced write, a live read beside it, then a catchup read from the start
fleet the live fleet from the registry
node node lifecycle (drain, decommission)
oxia the oxia this star serves (hot shards, split, attach, peers)
token token verbs — the offline mint and the exchange
auth manage local JWT signing and verification keys
credential api-key credentials — the registry the exchange mints tokens from
GLOBAL OPTIONS:
--no-logo hide the Nova ASCII logo on start
--addr string the door as an address: an http(s) URL, dialed as given and path-style, or a novad host:port for the wire plane (all services share one port); exclusive with --domain [$NOVA_ADDR, $NOVACTL_ADDR]
--domain string the deployment's domain: with --location, the door is https://{location}.{domain} [$NOVA_DOMAIN]
--location string the location buckets are created in: names the door with --domain, asserted beside --addr [$NOVA_LOCATION]
--path-style with --domain, keep stream verbs on the door instead of each bucket's own host, {bucket}.b.{door} [$NOVA_PATH_STYLE]
--token string bearer token (JWT) [$NOVA_TOKEN, $NOVACTL_TOKEN]
--tls-ca string CA bundle verifying the server; enables TLS [$NOVA_TLS_CA, $NOVACTL_TLS_CA]
--tls-cert string client certificate for mutual TLS [$NOVA_TLS_CERT, $NOVACTL_TLS_CERT]
--tls-key string client key for mutual TLS [$NOVA_TLS_KEY, $NOVACTL_TLS_KEY]
--admin-user string admin basic-auth username [$NOVA_ADMIN_USER, $NOVACTL_ADMIN_USER]
--admin-password string admin basic-auth password [$NOVA_ADMIN_PASSWORD, $NOVACTL_ADMIN_PASSWORD]
--help, -h show helpnova start runs a storage node inside the CLI's own process, in memory by
default. It takes the same flags as novad; see
novad.
Addresses
A stream's address is nova://bucket/key. The bucket ends at the first /,
and the key is everything after it, unchanged. So nova://demo/orders/eu is
the key orders/eu in the bucket demo, and orders, orders/, and
orders/eu are three different streams.
The record, stream, and queue commands take an address. The bucket commands
and ls take a bucket name, with or without nova://. An address without the
scheme fails:
nova: address "demo/events": want nova://bucket/keyThe stream ID that stream create prints shows up in logs and storage. No
command accepts it as input.
Output
Results go to standard output. Errors go to standard error as
nova: <error>, and the command exits with a nonzero code.
The record commands print text for people and for line tools such as cut
and awk. read and tail print one record per line, with the sequence
number, the time, and the body separated by tabs. Times are RFC 3339 in your
local time zone, in whole seconds.
The bucket, stream, and queue commands and ls take --output text (the
default) or --output json. stream ranges, split, and merge accept the
flag but print text either way. Text is for people, so scripts and agents
should ask for JSON. The format stays the same when the output goes to a pipe. The
command prints JSON on one line; the examples on this tab show it formatted
for reading.
nova stream get --output json nova://demo/events{
"id": "01a203cc-f7d4-7a5c-abf2-6444a28b9f93",
"address": "nova://demo/events",
"bucket": "demo",
"key": "events",
"class": "standard",
"producer": "any",
"retention": {
"max_age_ms": 0,
"max_bytes": 0
},
"throughput": {
"max_bytes_per_second": 0
},
"timestamping": {
"mode": "client-prefer",
"uncapped": false
},
"created_at": "2026-11-22T15:08:14.164Z"
}- A JSON result is one object and a newline, with no other text. Errors stay plain text on standard error, so check the exit code before you parse.
- A resource prints as one object. A list prints as
{"items":[…],"next_cursor":"…"}, with[]when it is empty. An emptynext_cursormeans the last page. Otherwise pass it to--cursor, with the same command and bucket. - A delete prints
{"action":"deleted","address":…}. A trim prints"action":"trimmed", the address, andbefore_seq_numorbefore_timestamp_ms. - Times are RFC 3339 in UTC.
created_atisnullwhen the server did not return it, as afterstream create;getreturns it. A limit of zero means no limit. - Text output shows
-for a missing time,unlimitedfor no limit,No buckets found.orNo streams found.for an empty list, andNext cursor: … (pass with --cursor)when there is another page.
nova start prints the Nova logo on standard error, unless you pass
--no-logo or --log-format json. No other command prints it.
Exit codes
| Code | Meaning |
|---|---|
0 | The command succeeded |
1 | The command ran and failed. The error is on standard error |
2 | A usage error: an unknown command or flag, no address, both an API key and a token, or a malformed API key |
3 | node decommission stopped while the node's metadata is still moving off it. Keep the node running and run the command again |
Command groups
Each page covers one group of nova --help:
Record commands
append, read, tail, check-tail, stream trim, fence
Stream commands
stream create, get, list, reconfigure, delete
Range commands
stream ranges, split, merge, for scalable streams
Bucket commands
bucket create, get, list, delete, and ls
Queue commands
queue list, get, purge, replay-dead-letters
Credential commands
token exchange, credential, token mint, auth key
Benchmark command
bench: throughput and latency of one stream
Cluster commands
health, fleet, node drain and decommission, oxia