Buildspace
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 login

Options

FlagDescription
--no-openPrint 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 show

Displays the configured token with the middle characters masked.

Clear Token

buildspace auth clear

Removes the stored token from your local config.

On this page