planreview login [--no-open] [--api-url URL] [--json]Authorize this CLI in a browser using PKCE. The approval URL is always printed, so login also works from remote and headless terminals — open the URL anywhere. Credentials are saved to the state directory; --api-url is remembered after a successful login.
--no-open- Print the approval URL without launching a browser.
--api-url URL- Target a different API base URL. Saved once login succeeds.
--json- Emit the result as one JSON line: principal, token ID, scopes, API base URL.
$ planreview login
Authorize planreview in your browser:
https://planreview.dev/cli/authorize?flow=…
Waiting for approval...
Logged in as prn_9fQ2mZk41RbXw7LcT0aHVw.
Token scopes: plans:read, plans:write