Access Token
The CLI needs an access token to authenticate with S2. Generate one from the dashboard, then persist it:Managing Config
Environment Variables
The CLI also reads endpoint overrides from environment variables, which is useful when pointing at s2-lite:| Variable | Description |
|---|---|
S2_ACCESS_TOKEN | Access token (alternative to s2 config set) |
S2_ACCOUNT_ENDPOINT | Account-level API endpoint |
S2_BASIN_ENDPOINT | Basin-level API endpoint |

