CLI
Authentication
Authenticate the CLI via browser OAuth or long lived CI/CD tokens in headless environments. Overview The CLI supports both interactive browser based OAuth...
On this page (10 sections)
Overview
The CLI supports both interactive browser-based OAuth authentication for local developers and token-based authentication for automated CI/CD runners.
Interactive Browser Login
asiyst login
This boots a temporary localhost callback listener, opens your default browser to authorize the session, and receives a secure, short-lived JWT token.
Headless CI/CD Token Authentication
For Docker containers or remote SSH servers where no browser is available, export your administrative API token:
export ASIYST_API_TOKEN="sk_live_9f8a2b3c4d5e6f7a8b9c"
asiyst status
Credential Storage Security
On macOS and Linux, the CLI stores tokens in the OS Keychain / Secret Service API. On Windows, credentials are encrypted using the Windows Data Protection API (DPAPI).
Login
Overview
The asiyst login command authenticates your developer machine with your Asiyst organization.
Command Syntax & Flags
asiyst login [options]
Options:
--token <token> Pass an API token directly (bypasses browser)
--sso <provider> Log in via enterprise SAML / Okta SSO
--port <number> Custom local callback port (default: 8989)
Logout
Overview
The asiyst logout command deletes stored local authentication credentials and invalidates the session token on the Asiyst Cloud Gateway.
Command Usage
asiyst logout
# Revoke all active CLI sessions across all devices
asiyst logout --revoke-all