List projects
project ls, projects list.
Show project details
$PHOTON_PROJECT_ID if no ID is given. Aliases: projects get.
Create a project
| Flag | Description |
|---|---|
--name <name> | Project name |
--location <loc> | Deployment region |
--spectrum | Enable Spectrum for the project |
projects new.
Update a project
$PHOTON_PROJECT_ID if no ID is given.
Aliases: projects edit, projects set.
Delete a project
projects rm, projects remove.
Rotate the Spectrum API secret
projects rotate-secret.
Open in the dashboard
Upgrade subscription
Use this command to subscribe a project or manage its existing subscription. The CLI routes you to the right Stripe surface based on the project’s current state:- Free or unsubscribed projects — opens Stripe Checkout
- Active or past-due subscriptions — opens the Stripe Customer Portal (change plan, payment method, cancel, etc.)
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 <n> | Quantity (default 1) |
--checkout | Force Checkout even if the project already has a subscription |
--manage | Force the Stripe Customer Portal (use this for downgrades / cancellation) |
--no-browser | Print the URL instead of opening it |
--json | Output {action, url, tier?} as JSON and skip opening the browser |
--manage wins over [tier] / --plan / --checkout when both are passed. Downgrades and cancellations live in the Stripe Portal — there’s no dedicated downgrade command.Check phone number availability
Common flags
These flags are available on most project commands:| Flag | Env var | Description |
|---|---|---|
-p, --project <id> | PHOTON_PROJECT_ID | Target project (defaults to env var) |
--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 |
-y, --yes | — | Skip confirmation prompts |