CLI
Authentication
Sign in and manage personal access tokens with the Buildspace CLI.
Login via Browser
Opens your default browser to complete a PKCE-based login flow. A personal access token (PAT) is saved to your local config after successful authentication.
buildspace auth loginOptions
| Flag | Description |
|---|---|
--no-open | Print the login URL instead of opening the browser |
--expires-days <n> | Token expiry in days (default: 30, max: 3650) |
--timeout <seconds> | Max wait time for browser callback (default: 300) |
Store a Token Manually
If you already have a PAT (e.g. for CI), store it directly:
buildspace auth set --token <your-pat>Show Current Token
buildspace auth showDisplays the configured token with the middle characters masked.
Clear Token
buildspace auth clearRemoves the stored token from your local config.