> ## Documentation Index
> Fetch the complete documentation index at: https://s2.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Basins

> Create, list, inspect, reconfigure, and delete basins with the S2 CLI.

### List basins

```bash theme={null}
s2 ls
```

```
my-basin (aws:us-east-1)
another-basin (aws:eu-north-1)
```

Use `--prefix` to filter and `--limit` to paginate:

```bash theme={null}
s2 ls --prefix "my-" --limit 10
```

### List locations and storage classes

```bash theme={null}
s2 location list
```

The output includes each location's available storage classes and default. Use a class available in your chosen location when setting `--storage-class`. Omit it to inherit the location's default for a new basin.

### Create a basin

```bash theme={null}
s2 basin create my-basin
```

Create in a specific [location](https://s2.dev/docs/concepts/basins.md#location):

```bash theme={null}
s2 basin create my-basin --location aws:us-east-1
```

> [!TIP]
>
> Basin names must be globally unique, 8–48 characters, lowercase letters/numbers/hyphens.

Options for default stream configuration:

```bash theme={null}
s2 basin create my-basin \
  --stream-cipher aegis-256 \
  --storage-class express \
  --retention-policy 7d \
  --create-stream-on-append \
  --create-stream-on-read
```

### Get basin config

```bash theme={null}
s2 basin get my-basin
```

### Reconfigure a basin

```bash theme={null}
s2 basin reconfigure my-basin \
  --stream-cipher aes-256-gcm \
  --create-stream-on-append true \
  --retention-policy 30d
```

> [!NOTE]
>
> `--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

```bash theme={null}
s2 basin delete my-basin
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.