Auth CLI Commands
Authenticate with the Wraps Platform for dashboard access, templates, and workflows.
Authenticate with the Wraps Platform for dashboard access, templates, and workflows.
Authenticate with the Wraps Platform using the device authorization flow. Opens your browser to authorize the CLI.
npx @wraps.dev/cli auth login [options]--token <token>Use an API token instead of the device authorization flow. Useful for CI/CD environments.
--jsonOutput result as JSON for scripting and automation
wraps.dev/device for authorization~/.wraps/auth.jsonInteractive login (recommended):
npx @wraps.dev/cli auth loginLogin with an API token (for CI/CD):
npx @wraps.dev/cli auth login --token wraps_sk_...Show your current authentication status, including account details and organization membership.
npx @wraps.dev/cli auth status [options]--jsonOutput result as JSON for scripting and automation
~/.wraps/auth.jsonClear stored authentication credentials and log out of the Wraps Platform.
npx @wraps.dev/cli auth logout~/.wraps/auth.jsonThe device authorization flow lets you authenticate securely without entering credentials in the terminal.
CLI Browser API | | | |-- Request device code ------>| | | |<-- Open authorize URL --->| |-- Poll for token ----------->| | | | User approves | |<-- Receive access token -----| | |-- Store in ~/.wraps/ --------| |