Authentication
Press.js Cloud supports two authentication methods: interactive login for development and API keys for automation.
Interactive login
Section titled “Interactive login”The fastest way to authenticate locally:
press loginYour default browser opens with the Press.js Cloud sign-in page. Sign in with GitHub or Google — done.
Check your current session:
press whoamiWhen you’re done:
press logoutSessions persist between commands — you only need to log in once per machine.
API keys (for automation)
Section titled “API keys (for automation)”For CI/CD and scripted deployments, use an API key instead of interactive login.
Create an API key from the Press.js Cloud dashboard (Settings → API Keys).
Use it with any cloud command:
press deploy report --token pcak_xxxxxOr set it as an environment variable:
export PRESS_CLOUD_TOKEN=pcak_xxxxxpress deploy reportSecurity notes
Section titled “Security notes”- API keys are prefixed with
pcak_— they’re credential secrets. Treat them like passwords. - Store them securely: use your CI/CD platform’s secrets manager, never commit them to source control.
- Rotate keys regularly. Revoke compromised keys from the dashboard immediately.
- Each key can be revoked independently without affecting other keys or your interactive session.
How authentication works
Section titled “How authentication works”| Method | When to use | How it works |
|---|---|---|
press login | Local development, one-off tasks | OAuth via browser — no secrets to manage |
API key (--token / env var) | CI/CD, scripts, production | Bearer token — fully automated, no browser needed |
Both methods work with all cloud commands and follow the same permission model. Your account’s usage, deploys, and billing are shared regardless of which method you use.