Repository navigation
v0.3.0
pgrun v0.3.0
pgrun auth login now logs you in through your browser. No token to create, copy or paste:
$ pgrun auth login
Opening browser to authenticate (code WDJB-MJHT)...
If it didn't open, visit: https://app.pgrun.dev/cli/auth?code=WDJB-MJHT
Waiting for authorization... ✓
Logged in as you@example.com
Account: Default (default-26)
Click Authorize on the page that opens (sign in first if asked). pgrun creates a token for this machine — named pgrun CLI on <hostname> on your Tokens page, where you can revoke it — and hands it to the CLI once. You never see it.
- SSH, containers, remote machines: no browser is opened; the CLI prints a URL and a code to open on any device (
--no-browserforces this). - Paste instead:
pgrun auth login --pastekeeps the previous flow. - CI: unchanged — set
PGRUN_API_TOKEN(andPGRUN_API_URL) or runpgrun auth set --token <TOKEN>.auth loginrefuses to wait for a browser whenCIis set (exit 2). - Ctrl+C while waiting exits with
Authentication cancelled.(exit 130).
Install or upgrade: curl -fsSL https://pgrun.dev/install.sh | sh