Skip to main content
The 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

Shows all plans and their Stripe price IDs. Use the price ID with checkout to subscribe.

View current subscription

Displays the active subscription for the current project, including plan details and status.

Start a checkout

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 <price-id> to skip the picker. Available tiers: pro, business, enterprise.
For project-scoped subscription management (which smart-routes between Checkout and the Stripe Portal), use photon projects upgrade instead.

Manage subscription (Stripe Portal)

Opens the Stripe Customer Portal where you can update payment methods, change plans, view invoices, or cancel. Pass --no-browser to get the portal URL printed to the terminal. Aliases: billing portal.

Common flags