spx

login

authenticate the spx CLI

Authenticate the spx CLI before publishing files, managing published pages, or subscribing.

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 signed up on the web, runspx.com/install shows a personalized, single-use login code that skips the device flow:

spx login --code <code>

The same flag redeems a registration code, if you have one. Web login codes expire 30 minutes after they are issued and can only be used once; get a fresh one by signing in again at runspx.com/signup.

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.