For automated pipelines, use an API key stored as a secret and referenced via environment variable — never an interactive OAuth login, which requires a browser:
# GitHub Actions example
env:
CORE_SYSTEM_API_KEY: ${{ secrets.SULUS_PROD_KEY }}
steps:
- name: Deploy Assistant
run: |
core-system assistant create --file assistant.json
To remove an account from the CLI's stored credentials:
# Log out of the current account
core-system auth logout
# Log out of a specific account
core-system auth logout [email protected]
# Log out of every authenticated account
core-system auth logout --all
Security Best Practices
- Use OAuth login for interactive, human use; reserve API keys for automation
- Never commit API keys to version control
- Use descriptive aliases and credential names (e.g. "production", "staging") so it's obvious which account is active
- Rotate API keys regularly, and immediately if you suspect a key has been exposed
- Run
core-system auth logout --all on shared or temporary machines when you're done
For the underlying environment variable, flag, and config-file authentication methods this page builds on, see the CLI & API Key Auth page.