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

# Configuration

> Configure S2 CLI endpoint overrides, default location, and encryption keys.

## Managing Config

```bash theme={null}
# List all config values
s2 config list

# Get a specific value
s2 config get account_endpoint

# Unset a value
s2 config unset account_endpoint
```

`s2 config list` reports a configured access token as `<redacted>`, and `s2 config get access_token` does not reveal the credential. Use the [`s2 auth access-token`](https://s2.dev/docs/cli/authentication#s2-access-tokens) commands to manage access tokens.

## Default Location

When `s2 basin create` is run without `--location`, the basin uses the account's default [location](https://s2.dev/docs/concepts/basins.md#location).

```bash theme={null}
s2 location list
s2 location get-default
s2 location set-default aws:us-east-1
```

## Environment Variables

The CLI also reads endpoint overrides and command-specific settings from environment variables, which is useful when pointing at [s2-lite](https://s2.dev/docs/s2-lite.md) or working with encrypted streams:

| Variable | Description |
| - | - |
| `S2_ACCESS_TOKEN` | Non-persistent access token override; takes precedence over browser login and a stored access token |
| `S2_ACCOUNT_ENDPOINT` | Account-level API endpoint |
| `S2_BASIN_ENDPOINT` | Basin-level API endpoint |
| `S2_ENCRYPTION_KEY` | [Encryption key](https://s2.dev/docs/concepts/encryption.md) used by `append`, `read`, and `tail` commands, if configured |

```bash theme={null}
# Example: pointing at a local s2-lite instance
export S2_ACCOUNT_ENDPOINT="http://localhost:8080"
export S2_BASIN_ENDPOINT="http://localhost:8080"
export S2_ACCESS_TOKEN="ignored"
```

The SDKs can parse these variables too, but only if you use the associated helper. See [SDK: Endpoints](https://s2.dev/docs/sdk/endpoints.md#environment-variables).


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