Authentication
Cmdop uses OAuth 2.0 for secure authentication.
Login
cmdop loginThis opens your default browser for authentication. After successful login, credentials are stored locally.
Token Authentication
For servers and CI/CD environments, use API tokens:
cmdop login --token YOUR_API_TOKENGenerate tokens in your dashboard settings .
Credentials Storage
Credentials are stored in:
| Platform | Location |
|---|---|
| macOS | ~/.cmdop/credentials |
| Linux | ~/.cmdop/credentials |
| Windows | %APPDATA%\cmdop\credentials |
Logout
cmdop logoutThis removes local credentials but doesn’t invalidate tokens on the server.
Environment Variables
CMDOP_TOKEN=your-api-token
CMDOP_API_URL=https://api.cmdop.comCI/CD Integration
For GitHub Actions:
- name: Setup Cmdop
env:
CMDOP_TOKEN: ${{ secrets.CMDOP_TOKEN }}
run: |
curl -sSL cmdop.com/install.sh | bash
cmdop login --token $CMDOP_TOKENSecurity
- Tokens are encrypted at rest
- OAuth sessions expire after 30 days
- API tokens can be revoked anytime
- All API communication uses TLS 1.3