> **Photon Beta documentation**
> Browse all pages: https://photon.codes/docs/beta/llms.txt
> Search Beta docs via MCP: https://photon.codes/docs/beta/mcp (OAuth REST API MCP: https://mcp.photon.codes/mcp)

# Photon CLI

> Manage Photon accounts, projects, and platform resources from your terminal.

> [!WARNING]
>
> **Beta is a preview.** The Beta (2.0) platform does not have all the features
> of [Stable](https://photon.codes/docs/spectrum-ts/introduction) yet. For example, iMessage on Beta
> supports text, attachments, voice messages, replies, read receipts, and typing
> indicators, but tapbacks, polls, and message effects are
> [only on Stable](https://photon.codes/docs/spectrum-ts/providers/imessage/messaging-features) for now.
> Use Stable for production agents, and confirm that Beta supports the features
> you need before you buy a plan.

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.

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

## Start here

[Installation](/docs/beta/cli/installation.md)

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

[Authentication](/docs/beta/cli/authentication.md)

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

[Service keys](/docs/beta/cli/service-keys.md)

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

[Projects](/docs/beta/cli/projects.md)

Select an active project and work with its resources.

## Work with your resources

[Platform resources](/docs/beta/cli/projects/platform.md)

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

[API keys](/docs/beta/cli/projects/api-keys.md)

Issue and revoke project API keys.

[Webhooks](/docs/beta/cli/projects/webhooks.md)

Subscribe endpoints to project events.

[Organizations](/docs/beta/cli/organizations.md)

Invite teammates, manage roles, and select an organization.

## Automation

[JSON output](/docs/beta/cli/output.md)

Machine-readable results, errors, and exit codes.

[Recoverable operations](/docs/beta/cli/operations.md)

Replay a mutation whose result you never saw.
