One-off — no install
You can run any CLI command on demand without a global install:Global install
For daily use, you can install globally sophoton is always on your PATH:
pho shortcut alias is created automatically the first time you run photon.
You need Node.js >= 18 to run the CLI. You can also use Bun, but it’s not required.
Standalone binary
If you don’t want any runtime dependency (e.g. CI environments), you can download a prebuilt binary directly. Replace<os> and <arch> with your platform:
| Platform | Architectures |
|---|---|
| macOS | arm64, x64 |
| Linux | arm64, x64 |
.sha256 checksum on the release page.
Update
The CLI shows a notification when a new version is available. To update:npx / pnpx / yarn dlx / bunx), you automatically pick up new releases — no manual update needed. These tools cache resolved versions, so to force the latest immediately, pin to @latest:
To suppress the update notification, set
PHOTON_NO_UPDATE_NOTIFIER=1.Verify the installation
photon ping hits the Photon API health endpoint — if you see a success response, you’re ready to authenticate.