🎉 Cmdop v1.0 is here! Download now →
Skip to Content
DocsCLIAuthentication

Authentication

Cmdop uses OAuth 2.0 for secure authentication.

Login

cmdop login

This 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_TOKEN

Generate tokens in your dashboard settings .

Credentials Storage

Credentials are stored in:

PlatformLocation
macOS~/.cmdop/credentials
Linux~/.cmdop/credentials
Windows%APPDATA%\cmdop\credentials

Logout

cmdop logout

This removes local credentials but doesn’t invalidate tokens on the server.

Environment Variables

CMDOP_TOKEN=your-api-token CMDOP_API_URL=https://api.cmdop.com

CI/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_TOKEN

Security

  • Tokens are encrypted at rest
  • OAuth sessions expire after 30 days
  • API tokens can be revoked anytime
  • All API communication uses TLS 1.3

Authentication | Cmdop