Skip to main content

List basins

s2 ls
my-basin        active
another-basin   active
Use --prefix to filter and --limit to paginate:
s2 ls --prefix "my-" --limit 10

Create a basin

s2 create-basin my-basin
Basin names must be globally unique, 8–48 characters, lowercase letters/numbers/hyphens.
Options for default stream configuration:
s2 create-basin my-basin \
  --stream-cipher aegis-256 \
  --storage-class express \
  --retention-policy 7d \
  --create-stream-on-append \
  --create-stream-on-read

Get basin config

s2 get-basin-config my-basin

Reconfigure a basin

s2 reconfigure-basin my-basin \
  --stream-cipher aes-256-gcm \
  --create-stream-on-append true \
  --retention-policy 30d
--stream-cipher: Encryption algorithm to apply to newly created streams in this basin.Existing streams keep the cipher they were created with.

Delete a basin

s2 delete-basin my-basin