Bucket commands

Bucket commands

The nova commands that create, show, list, and delete buckets, and nova ls.

A bucket holds streams and the defaults new streams take. The bucket commands create one, print its settings, page through them, and delete an empty one. nova ls lists buckets, or the streams in one. Each command takes a bucket name, with or without nova://, 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 bucket createCreates a bucket
nova bucket getPrints a bucket's settings
nova bucket listPages through the buckets
nova bucket deleteDeletes a bucket that holds no streams
nova lsLists buckets, or a bucket's streams

Every command here takes --output json; see Output for its shape.

nova bucket create

Creates a bucket and prints its settings.

nova bucket create [options] <name | nova://name>

Create a bucket whose streams appear on first append

nova bucket create demo --create-on-append
nova://demo
  Location:          local
  Create on append:  true
  Create on read:    false
  Default class:     standard
  Created:           2026-11-22T18:35:05.106Z

With --create-on-append, an append to a missing stream creates it with the bucket's defaults. Without it, the append fails with stream not found.

Create a bucket for Express streams

nova bucket create --output json --default-class express fast-lane
{
  "name": "fast-lane",
  "address": "nova://fast-lane",
  "location": "local",
  "create_on_append": false,
  "create_on_read": false,
  "defaults": {
    "class": "express",
    "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-22T18:45:36.798Z"
}

A bucket name is 3 to 63 bytes of lowercase letters, digits, and hyphens, because it can become part of a hostname. The CLI sets only the flags below. The other defaults (producer policy, retention, throughput, and timestamping) need an SDK or the API. The CLI cannot change a bucket once it exists. To change one, use Replace a bucket's settings over the API.

A name that is taken fails with exit code 1:

nova: rpc error: code = AlreadyExists desc = metadata: create bucket "demo": metadata: bucket exists

With the global --location flag beside --addr, the command checks the cluster's location and fails with exit code 1 when the cluster serves another:

nova: client: entry too large: star: a bucket's location is its constellation's: this constellation serves "local", not "eu-west-1"

nova stream create creates a missing bucket with the default settings, so you need bucket create only for other settings.

--create-on-appendDefaultOff
An append to a missing stream creates it
--create-on-readDefaultOff
A read of a missing stream creates it, empty
--default-classDefaultstandard
The class of new streams: standard or express
--outputDefaulttext
json prints the bucket as one object

The concept is Buckets. The same task is Create a bucket with an SDK and Create a bucket over the API.

nova bucket get

Prints one bucket's settings.

nova bucket get [options] <name | nova://name>

Show a bucket

nova bucket get demo
nova://demo
  Location:          local
  Create on append:  true
  Create on read:    false
  Default class:     standard
  Created:           2026-11-22T18:35:05.106Z

The text shows the settings the CLI can set. --output json adds every default, as in the example above. With --domain and without --path-style, the text adds a Host: line with the bucket's own address, such as https://demo.b.eu.nova.example. A missing bucket fails with exit code 1:

nova: client: stream not found: metadata: get bucket "nope-nope": metadata: bucket not found
--outputDefaulttext
json prints the bucket as one object

The concept is Buckets. The same task over the API is Get a bucket.

nova bucket list

Prints one page of buckets, in name order.

nova bucket list [options]

List the buckets

nova bucket list --limit 1
ADDRESS      LOCATION  DEFAULT CLASS
nova://demo  local     standard

Next cursor: demo (pass with --cursor)

Get the next page

The cursor is the last name on the page, and the next page starts after it:

nova bucket list --limit 1 --cursor demo
ADDRESS           LOCATION  DEFAULT CLASS
nova://telemetry  local     standard

The last page prints no cursor. With --output json, the page is {"items":[…],"next_cursor":"…"}, each item shaped like bucket get's.

--limitDefault100
Buckets a page
--cursorDefaultNone
Start after this bucket name
--outputDefaulttext
json prints the page as one object

The concept is Buckets. The same task is List buckets and streams with an SDK and List buckets over the API.

nova bucket delete

Deletes a bucket that holds no streams.

nova bucket delete [options] <name | nova://name>

Delete an empty bucket

nova bucket delete telemetry
deleted nova://telemetry

A bucket that still holds a stream fails with exit code 1:

nova: rpc error: code = FailedPrecondition desc = metadata: delete bucket "demo": metadata: bucket not empty

Delete its streams with nova stream delete first. With --output json, a delete prints {"action":"deleted","address":"nova://telemetry"}.

--outputDefaulttext
json prints action and address

The concept is Buckets. The same task is Delete a bucket with an SDK and Delete a bucket over the API.

nova ls

Lists buckets when given no argument, and a bucket's streams when given one.

nova ls [options] [bucket | nova://bucket]

List the buckets

nova ls
ADDRESS           LOCATION  DEFAULT CLASS
nova://default    local     standard
nova://demo       local     standard
nova://telemetry  local     standard

List a bucket's streams

nova ls demo
ADDRESS                                           CLASS     PRODUCER
nova://demo/0f7c090c-1a86-4641-ad03-c620262cd462  standard  any
nova://demo/events                                standard  any
nova://demo/orders                                standard  fenced

Filter by prefix

nova ls demo --prefix ord
ADDRESS             CLASS     PRODUCER
nova://demo/orders  standard  fenced

Without a bucket, --prefix filters bucket names. A stream address is refused with exit code 1:

nova: "demo/orders" names a stream — ls lists a bucket's streams; use stream get for one

ls pages like bucket list and stream list, and prints No buckets found. or No streams found. when nothing matches. Listing with a prefix needs a list grant that covers the prefix. See Scopes.

--prefixDefaultNone
Only buckets whose name starts with this, or with a bucket argument, only streams whose key does
--limitDefault100
Entries a page
--cursorDefaultNone
For buckets, start after this name. For streams, the Next cursor the previous page printed
--outputDefaulttext
json prints the page as one object

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

On this page