diff --git a/.gitignore b/.gitignore index 2fd2fd4..360a6a5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ node_modules .typecheck-output +.DS_Store .pnpm-store diff --git a/cli/authentication.mdx b/cli/authentication.mdx index 95a31f3..13d87f9 100644 --- a/cli/authentication.mdx +++ b/cli/authentication.mdx @@ -13,6 +13,14 @@ photon login This opens your default browser to the Photon approval page. Once you approve, the CLI stores your access token locally and you're ready to go. + +Terminal running photon login, showing the device code and approval URL + + + +Photon browser approval page for the device login flow + + If you're on a headless machine (SSH session, container), pass `--no-browser` to get a URL you can open elsewhere: ```sh @@ -25,7 +33,12 @@ photon login --no-browser photon whoami ``` -Prints your user ID, email, and name. If the session has expired, you'll see a hint to re-run `photon login`. +Prints your name, email, and the backend you're signed in to. If the session has expired, you'll see a hint to re-run `photon login`. + + +Terminal output of photon whoami showing name, email, and backend + + ## Log out diff --git a/cli/billing.mdx b/cli/billing.mdx index 14a38e8..78ac34b 100644 --- a/cli/billing.mdx +++ b/cli/billing.mdx @@ -24,6 +24,14 @@ photon billing show --json Displays the active subscription for the current project, including plan details and status. + +Terminal output of photon billing show for a project on the free tier + + + +Terminal output of photon billing show for a project on a paid plan + + ## Start a checkout ```sh @@ -40,6 +48,10 @@ photon billing checkout --plan price_xxx When you run this command, the CLI creates a Stripe Checkout session and opens it in your browser. If you don't pass any arguments, you get an interactive picker listing the available plans. Pass a `[tier]` positional or `--plan ` to skip the picker. + +