photon billing commands let you view available plans, check your current subscription, start a checkout, and manage billing through the Stripe Customer Portal.
All billing commands require an active project. Set $PHOTON_PROJECT_ID or pass --project <id>.
List available plans
checkout to subscribe.
View current subscription
Start a checkout
[tier] positional or --plan <price-id> to skip the picker.
Available tiers: pro, business, enterprise.
| Flag | Description |
|---|---|
[tier] | Positional tier (pro / business / enterprise). Skips the picker. |
--plan <price-id> | Stripe price ID. Escape hatch when you need a specific price. |
--qty <number> | Quantity for the line item |
--no-browser | Print the checkout URL instead of opening it |
--json | Output {action, url, tier?} as JSON and skip opening the browser |
For project-scoped subscription management (which smart-routes between Checkout and the Stripe Portal), use
photon projects upgrade instead.Manage subscription (Stripe Portal)
--no-browser to get the portal URL printed to the terminal.
Aliases: billing portal.
Common flags
| Flag | Env var | Description |
|---|---|---|
-p, --project <id> | PHOTON_PROJECT_ID | Target project |
--api-host <url> | PHOTON_API_HOST | Override the backend URL |
-t, --token <token> | PHOTON_TOKEN | Use this token instead of stored credentials |
--json | — | Output as JSON |
--no-browser | — | Print URL instead of opening the browser |