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

# Access Tokens

> Issue, list, and revoke scoped access tokens with the S2 CLI.

### List access tokens

```bash theme={null}
s2 list-access-tokens
```

### Issue an access token

```bash theme={null}
s2 issue-access-token \
  --id my-token \
  --expires-in 30d \
  --op-group-perms "stream=rw"
```

Scoped to specific basins and streams:

```bash theme={null}
s2 issue-access-token \
  --id scoped-token \
  --basins "my-basin" \
  --streams "events/" \
  --op-group-perms "stream=rw" \
  --expires-in 7d
```

### Revoke an access token

```bash theme={null}
s2 revoke-access-token my-token
```
