For the complete documentation index, see llms.txt. This page is also available as Markdown.

CLI

Install and use the experimental Pylon CLI

Use the Pylon CLI to access the Pylon API from your terminal or scripts.

The CLI is experimental. The current release is v0.1.1 and may change. The SDKs are versioned separately; upgrading an SDK does not upgrade the CLI.

Install

With Homebrew on macOS or Linux:

brew install pylon-labs/tap/pylon
pylon --version

For Windows or installation without Homebrew, download an installer or binary for your platform from GitHub Releases.

Authenticate

Create a Pylon API token as described in Authentication, then run:

pylon auth login --with-token

Paste your token into the hidden prompt. The CLI saves it for future requests. On macOS, it uses Keychain when available. For automation, you can provide the token through the PYLON_TOKEN environment variable instead.

Confirm your connection:

pylon me get

Requests use the permissions associated with your API token.

EU organizations

The CLI uses the US API by default. For an EU organization, add --base-url to your requests:

You can also set PYLON_BASE_URL=https://api.eu.usepylon.com in your environment.

Try a few read commands

List five accounts:

Get an issue by its ID or number, replacing 1234 with your issue number:

Explore commands and their parameters:

Output and pagination

JSON is the default in terminals and pipes. It includes the full API response, including nested fields and pagination metadata. Use --format table for a human-readable table or --query to select fields:

List commands fetch one page by default. Add --page-all to fetch every page. For example, export account responses as one JSON page per line:

Use --page-limit N to set a page cap. The CLI warns if more results remain. Failed requests return a nonzero exit code, even if earlier pages have already been printed.

Upgrade

Sign out

This removes the saved credential from the CLI. To revoke the token itself, manage it in Pylon’s API token settings.

Was this helpful?