Profiles, Config, and CI
Use local profiles, JSON output, environment variables, and API keys for automation.
The CLI is designed for both interactive terminal use and non-interactive automation.
Profiles
Profiles let you switch between different Smoketest credentials, workspaces, or API URLs.
smoketest auth login --profile production
smoketest auth login --profile staging
smoketest profiles list
smoketest profiles use production
smoketest profiles delete stagingThe active profile is used when you do not pass --profile.
Default project
Set a default project for the active profile:
smoketest projects use "Production"Commands such as tests create, tests list, and env create can then omit --project.
Local config
smoketest config list
smoketest config get activeProfile
smoketest config set activeProfile production
smoketest config unset activeProfileUse profiles for credential-oriented operations and config for local defaults.
JSON output
Most resource commands support --json:
smoketest projects list --json
smoketest tests list --json
smoketest runs get <run> --json
smoketest billing status --jsonJSON mode is intended for scripts. It disables interactive prompts, spinners, confirmation dialogs, and live terminal UI.
CI authentication
Create a Smoketest API key in the dashboard, store it in your CI secret manager, and expose it as:
SMOKETEST_API_KEY=smkt_...Example:
SMOKETEST_API_KEY=smkt_... smoketest tests run "Homepage smoke test" --jsonFor CI, prefer --json and explicit flags so commands do not need a TTY.
Environment variables
| Variable | Purpose |
|---|---|
SMOKETEST_API_KEY | Use this API key instead of reading the local keychain |
SMOKETEST_API_URL | Override the API origin |
SMOKETEST_CONFIG | Override the local CLI config path |
SMOKETEST_ALLOW_INSECURE_API_URL | Allow non-HTTPS API URLs outside localhost |
Shell completion
Print completion setup for your shell:
smoketest completion zsh
smoketest completion bash
smoketest completion fishAdd the printed snippet to your shell config.
Billing status
smoketest billing status
smoketest billing status --jsonThe command shows plan state, subscription/trial/boost credits, daily usage, period dates, and whether checkout or the customer portal is available.