Skip to content

CLI Installation

Install

The CLI is available as @payre/cli:

bash
npm install -g @payre/cli
# or use directly from the monorepo
npx payre

Configuration

Set your API key:

bash
payre config set-key pyr_sk_your_api_key

Set a custom API URL (default: http://localhost:3000):

bash
payre config set-url https://api.payre.dev

View current configuration:

bash
payre config show

Configuration is stored in ~/.payre/config.json.

Environment Variables

You can also use environment variables:

bash
export PAYRE_API_KEY=pyr_sk_your_api_key
export PAYRE_BASE_URL=https://api.payre.dev

Environment variables take precedence over the config file.