Skip to content

v0.3.0

Choose a tag to compare

@alexshapalov alexshapalov released this 17 Sep 17:03
· 4 commits to main since this release

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-browser forces this).
  • Paste instead: pgrun auth login --paste keeps the previous flow.
  • CI: unchanged — set PGRUN_API_TOKEN (and PGRUN_API_URL) or run pgrun auth set --token <TOKEN>. auth login refuses to wait for a browser when CI is set (exit 2).
  • Ctrl+C while waiting exits with Authentication cancelled. (exit 130).

Install or upgrade: curl -fsSL https://pgrun.dev/install.sh | sh