spx

login

authenticate the spx CLI

Authenticate the spx CLI before running commands that deploy, manage project state, or publish files.

spx login

By default, spx login starts the GitHub OAuth device flow and prints the verification URL and code to use in your browser.

If you have a registration code, redeem it directly:

spx login --code <code>

After login, the CLI stores a local session token for future commands. If a command reports that your session is invalid or expired, run spx login again.