The S2 CLI stores configuration in a TOML file and supports environment variable overrides.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/s2-streamstore/s2/llms.txt
Use this file to discover all available pages before exploring further.
Configuration file location
Linux/macOS:Managing configuration
Set a value
Get a value
List all values
Unset a value
Configuration keys
access_token
Required. Your S2 access token for authentication.issue-access-token command with a parent token.
account_endpoint
Custom account API endpoint URL. Must be set together withbasin_endpoint.
Both
account_endpoint and basin_endpoint must be set to use custom endpoints. If only one is set, the CLI will fall back to default endpoints.basin_endpoint
Custom basin API endpoint URL. Must be set together withaccount_endpoint.
compression
Request/response compression algorithm. Options:gzip, zstd.
none)
Benefits:
- Reduces network bandwidth
- Faster for large payloads
zstdtypically offers better compression ratios
ssl_no_verify
Disable SSL certificate verification. Options:true, false.
false
Environment variables
All configuration keys can be overridden using environment variables with theS2_ prefix:
Example: Using environment variables for CI/CD
Example configuration file
Authentication
The CLI uses the access token specified inaccess_token for all API requests. Tokens are included in the Authorization header:
Token management
Access tokens can have:- Expiration dates
- Scoped permissions (basins, streams, operations)
- Automatic stream prefixing
Obtaining your first token
- Sign up at s2.dev
- Create an access token in the console
- Configure the CLI:
Creating scoped tokens from the CLI
Once you have a parent token configured, you can issue child tokens with restricted permissions:deployments/ prefix in the prod basin.
Configuration priority
Configuration values are resolved in this order (highest to lowest priority):- Environment variables (
S2_*) - Configuration file (
~/.config/s2/config.toml) - Default values