> ## 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.

# Streams

> Create, list, inspect, reconfigure, and delete streams inside a basin with the S2 CLI.

### List streams

```bash theme={null}
s2 ls s2://my-basin/
```

```
s2://my-basin/events       2025-09-03T02:28:00Z
s2://my-basin/user-actions 2025-09-03T02:28:48Z
```

Filter by prefix:

```bash theme={null}
s2 ls s2://my-basin/user-
```

### Create a stream

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

With options:

```bash theme={null}
s2 create-stream s2://my-basin/my-stream \
  --storage-class express \
  --retention-policy 1d
```

### Get stream config

```bash theme={null}
s2 get-stream-config s2://my-basin/my-stream
```

### Reconfigure a stream

```bash theme={null}
s2 reconfigure-stream s2://my-basin/my-stream \
  --retention-policy 30d
```

### Delete a stream

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