Skip to content

Photon CLI is the command-line client for Photon. Use it to sign in, switch between projects, buy and configure phone numbers and email domains, manage API keys and webhooks, and script all of it from CI.

It installs with npm, pnpm, Yarn, or Bun, runs on Node.js 22 or newer, and also ships as a standalone binary for macOS, Linux, and Windows.

Code
npm install --global @photon-ai/cli
photon login
photon project list

Start here

Installation

Install the CLI with a package manager or as a standalone binary.

Authentication

Sign in with a device code and manage your stored session.

Service keys

Give automation that acts as your account a non-interactive credential.

Projects

Select an active project and work with its resources.

Work with your resources

Platform resources

Buy phone numbers, verify email domains, and route voice calls.

API keys

Issue and revoke project API keys.

Webhooks

Subscribe endpoints to project events.

Organizations

Invite teammates, manage roles, and select an organization.

Automation

JSON output

Machine-readable results, errors, and exit codes.

Recoverable operations

Replay a mutation whose result you never saw.