pcr login

Authenticate with your PCR.dev account

pcr login

Opens your browser to the PCR.dev Settings page where you can create a CLI token. Paste the token back into the terminal to complete authentication.

What it does

  • Opens https://pcr.dev/settings in your browser
  • Prompts you to create a new CLI token in the Settings page
  • Validates the token against the PCR.dev API
  • Saves credentials to ~/.pcr-dev/auth.json

Stored credentials

~/.pcr-dev/auth.json
{
  "token": "your-cli-token",
  "userId": "279dde64-961d-4059-81fb-a008259f8b81"
}

Keep your CLI token secret. If compromised, delete it from the Settings page and run pcr login again.