> ## 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 stream create s2://my-basin/my-stream
```

Omitting `--storage-class` uses the basin's default stream configuration. Choose an explicit class from the offerings for the basin's location shown by `s2 location list`:

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

### Get stream config

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

### Reconfigure a stream

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

### Delete a stream

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


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