Saltearse al contenido

Authentication

The CLI authenticates using a personal access token (PAT). Tokens begin with the sapi_ prefix and are created through the web session or via the CLI once you have an existing token.

Use septiembre auth token create to generate a new PAT. You must supply an expiry date in RFC 3339 format. The --name flag is optional and defaults to cli-token if omitted.

Terminal window
septiembre auth token create --name my-token --expires-at 2026-12-31T00:00:00Z

The raw token value is returned once in the JSON response and cannot be retrieved again. Copy it immediately.

{
"id": "tok_...",
"name": "my-token",
"token": "sapi_abc123...",
"expires_at": "2026-12-31T00:00:00Z"
}

The CLI resolves credentials in this order (first match wins):

PrioritySource
1SEPTIEMBRE_TOKEN environment variable
2token field in the config file
Section titled “Environment variable (recommended for CI and agents)”

Set SEPTIEMBRE_TOKEN in your shell or CI environment:

Terminal window
export SEPTIEMBRE_TOKEN=sapi_abc123...

In GitHub Actions or similar CI systems, store the token as a secret and inject it as an environment variable.

env:
SEPTIEMBRE_TOKEN: ${{ secrets.SEPTIEMBRE_TOKEN }}

The CLI reads configuration from:

PlatformPath
Linux / macOS~/.config/septiembre/config.yaml
Windows%APPDATA%\septiembre\config.yaml

File permissions must be 0600 (owner read/write only). The CLI refuses to read config files with broader permissions.

Example config file:

token: sapi_abc123...
org: my-org
api_url: https://api.septiembre.ai
PrioritySource
1SEPTIEMBRE_API_URL environment variable
2api_url field in the config file
3Default: https://api.septiembre.ai

Many commands require --org. The CLI resolves the organization in this order:

PrioritySource
1--org <slug> flag
2SEPTIEMBRE_ORG environment variable
3org field in the config file
Terminal window
septiembre auth whoami
CommandDescription
septiembre auth token listList all your PATs (raw value never shown)
septiembre auth token revoke <id>Revoke a token by its ID