Stream commands

Stream commands

The nova commands that create, show, list, change, and delete streams.

The stream commands manage streams as resources: they create one, print its settings, page through a bucket's streams, change a setting, and delete one. Each takes the stream's address, nova://bucket/key, and needs a server address from --addr or NOVA_ADDR, as Connect explains. The examples use the quickstart cluster.

export NOVA_ADDR=localhost:7781
CommandDoes
nova stream createCreates a stream, and its bucket when the bucket is missing
nova stream getPrints a stream's settings
nova stream listPages through a bucket's streams
nova stream reconfigureChanges the settings you name and keeps the rest
nova stream deleteDeletes a stream and its records

nova stream trim is on Record commands, and nova stream ranges, split, and merge are on Range commands. Every command here takes --output json; see Output for its shape.

nova stream create

Creates a stream and prints its settings.

nova stream create [options] [nova://bucket/key]

Create a stream

nova stream create nova://demo/orders --producer fenced --retention-max-age 24h
nova://demo/orders
  ID:             01a2048a-5fb2-7cec-b8f3-1156c83e24aa
  Class:          standard
  Producer:       fenced
  Retention age:  24h0m0s
  Throughput:     unlimited
  Created:        -

A setting you leave out takes the bucket's default. Created shows - because the create call does not return the time; nova stream get prints it.

Create a stream with a generated key

Leave out the address, and the stream gets a random UUID as its key in --bucket:

nova stream create --bucket demo
nova://demo/0f7c090c-1a86-4641-ad03-c620262cd462
  ID:             01a2048a-603a-7407-88cb-fa4410e8f43e
  Class:          standard
  Producer:       any
  Retention age:  unlimited
  Throughput:     unlimited
  Created:        -

Create a scalable stream

nova stream create nova://demo/clicks --kind scalable --initial-ranges 2
nova://demo/clicks
  ID:             01a204c3-238a-7da0-81b0-e8dd71b04325
  Class:          standard
  Producer:       any
  Retention age:  unlimited
  Throughput:     unlimited
  Created:        -

A scalable stream spreads its keys over ranges. The settings do not show the kind, in text or in JSON. nova stream ranges does: it lists a scalable stream's ranges, and prints plain stream for a plain one.

The command first creates the bucket with its default settings when the bucket does not exist. Creating an address that already holds a stream fails with exit code 1:

nova: rpc error: code = AlreadyExists desc = star: create 01a20493-f1d8-7dda-9438-db7da008ad8b: metadata: stream exists

Nova checks the key: 1 to 512 bytes of UTF-8 with no control characters. The ID is the stream's internal name, which logs and storage show. No command takes it as input.

--classDefaultThe bucket's
standard stores records in standard object storage. express copies them to Express buckets in several zones
--producerDefaultThe bucket's
any accepts appends with or without a fencing token. fenced requires the installed token
--kindDefaultplain
plain is one sequence. scalable spreads keys over ranges and splits them under load
--initial-rangesDefault1
A scalable stream's first range count, at most 256. A plain stream refuses it
--retention-max-ageDefaultThe bucket's
Records older than this are trimmed, for example 24h
--throughputDefaultThe bucket's
The most bytes a second appends can write
--bucketDefaultdefault
The bucket, when you leave out the address
--keyDefaultA random UUID
The key, when you leave out the address
--outputDefaulttext
json prints the stream as one object, with created_at set to null

The concept is Streams. The same task is Create a stream or Create a scalable stream with an SDK, and Create a stream over the API.

nova stream get

Prints one stream's settings.

nova stream get [options] <nova://bucket/key>

Show a stream

nova stream get nova://demo/orders
nova://demo/orders
  ID:             01a2048a-5fb2-7cec-b8f3-1156c83e24aa
  Class:          standard
  Producer:       fenced
  Retention age:  24h0m0s
  Throughput:     unlimited
  Created:        2026-11-22T18:35:07.058Z

Show a stream for a script

nova stream get --output json nova://demo/orders
{
  "id": "01a2048a-5fb2-7cec-b8f3-1156c83e24aa",
  "address": "nova://demo/orders",
  "bucket": "demo",
  "key": "orders",
  "class": "standard",
  "producer": "fenced",
  "retention": {
    "max_age_ms": 86400000,
    "max_bytes": 0
  },
  "throughput": {
    "max_bytes_per_second": 0
  },
  "timestamping": {
    "mode": "client-prefer",
    "uncapped": false
  },
  "created_at": "2026-11-22T18:35:07.058Z"
}

JSON carries two settings the text leaves out: the size bound of retention, max_bytes, and how the stream stamps record times, timestamping. Both come from the bucket, and the CLI cannot set them. A zero means no limit. Times are RFC 3339 in UTC. A missing stream fails with exit code 1:

nova: client: stream not found: metadata: resolve demo/missing: metadata: stream not found
--outputDefaulttext
json prints the stream as one object

The concept is Streams. The same task is Create a stream, which also covers GetStream / getStream, with an SDK and Get a stream over the API.

nova stream list

Prints one page of a bucket's streams, in key order.

nova stream list [options]

List a bucket's streams

nova stream list --bucket demo --limit 2
ADDRESS                                           CLASS     PRODUCER
nova://demo/0f7c090c-1a86-4641-ad03-c620262cd462  standard  any
nova://demo/events                                standard  any

Next cursor: 01a2048a6000789bbe9e5893d7ac321e (pass with --cursor)

Get the next page

nova stream list --bucket demo --limit 2 --cursor 01a2048a6000789bbe9e5893d7ac321e

The cursor is opaque: pass it back as printed, with the same bucket. The last page prints no cursor, and an empty bucket prints No streams found.. With --output json, the page is {"items":[…],"next_cursor":"…"}, and an empty next_cursor means the last page.

nova ls demo prints the same table and can filter by key prefix.

--bucketDefaultdefault
The bucket to list
--limitDefault100
Streams a page, at most 1,000
--cursorDefaultNone
The Next cursor the previous page printed
--outputDefaulttext
json prints the page as one object

The concept is Streams. The same task is List buckets and streams with an SDK and List a bucket's streams over the API.

nova stream reconfigure

Changes the settings you name. A setting you leave out keeps its value.

nova stream reconfigure [options] <nova://bucket/key>

Remove the age limit

nova stream reconfigure nova://demo/orders --retention-max-age 0
nova://demo/orders
  ID:             01a2048a-5fb2-7cec-b8f3-1156c83e24aa
  Class:          standard
  Producer:       fenced
  Retention age:  unlimited
  Throughput:     unlimited
  Created:        2026-11-22T18:35:07.058Z

Require fencing and lift the rate limit

nova stream reconfigure nova://demo/orders --producer fenced --throughput 0

The command prints the stream's settings after the change, as above. On this command 0 means no limit, while on stream create a flag left out takes the bucket's default. Naming no flag fails with nova: stream reconfigure: name at least one flag to change and exit code 1.

Retention changes at once. A change of class, producer policy, or throughput reaches a live stream through a leader handoff: a connected producer reconnects once, and records already acknowledged keep the class they were written under. On a cluster with no Express buckets, --class express fails before anything changes:

nova: rpc error: code = FailedPrecondition desc = star: reconfigure 01a2048a-5fb2-7cec-b8f3-1156c83e24aa to express: star: class not served by this star

A stream's kind is fixed when it is created.

--classDefaultUnchanged
standard or express
--producerDefaultUnchanged
any or fenced
--retention-max-ageDefaultUnchanged
The new age limit; 0 removes it
--throughputDefaultUnchanged
The new rate limit in bytes a second; 0 removes it
--outputDefaulttext
json prints the stream as one object

The concept is Retention. The same task is Change a stream's settings with an SDK and Reconfigure a stream over the API.

nova stream delete

Deletes a stream and its records.

nova stream delete [options] <nova://bucket/key>

Delete a stream

nova stream delete nova://demo/events
deleted nova://demo/events

With --output json:

{
  "action": "deleted",
  "address": "nova://demo/events"
}

The command does not ask for confirmation. From then on, appends and reads of the address fail with stream not found, and a new stream create at the same address makes a new, empty stream with a new ID. A retried delete of the same stream prints deleted again, so a script can repeat it. An address that never held a stream fails with exit code 1.

--outputDefaulttext
json prints action and address

The concept is Streams. The same task is Delete a stream with an SDK and Delete a stream over the API.

On this page