CLI authentication
Authenticate Respira CLI through a browser handshake. Credentials are stored in your OS keychain or via the RESPIRA_API_KEY environment variable for CI.
Respira CLI authenticates through a browser handshake and stores your API key in your OS keychain. CI environments set RESPIRA_API_KEY instead.
Interactive login
respira auth login
This opens respira.press/cli/auth in your default browser. You sign in, the CLI receives an API key, and it's stored in your keychain under service name respira-cli.
Credential precedence
RESPIRA_API_KEYenvironment variable (wins if set)- OS keychain (macOS Keychain, Windows Credential Manager, Linux libsecret)
~/.respira/credentialsfile fallback (used when keytar is unavailable)
CI and automation
Create an API key in your Respira dashboard and set it as RESPIRA_API_KEY in your CI environment.
- name: audit WordPress structure
env:
RESPIRA_API_KEY: ${{ secrets.RESPIRA_API_KEY }}
run: respira read structure https://mysite.com > audit.json
Check status
respira auth status
respira auth whoami
Sign out
respira auth logout
Removes the stored key from the keychain and any fallback file.
Was this page helpful?
Last updated today
Built with Documentation.AI