P

Permit CLI

CLI discovered

Details
Command
permit
Docs
https://docs.permit.io/how-to/permit-cli/
Authentication
Permit CLI browser login session oauth2 discovered $ permit login

Acquired by the CLI — running permit login opens the auth flow and stores the credential.

Permit API key env PERMIT_API_KEY + Permit API key $ permit login --api-key <YOUR_API_KEY> discovered
Permit API key api_key Get key ↗

In the Permit dashboard at app.permit.io, go to Settings → API Keys and create an API key. The API docs say to get the API key from Settings → API Keys before calling the API. This key is also used by Permit SDKs, the CLI (--api-key), and self-hosted PDP/MCP-related components via environment variables like PERMIT_API_KEY or PDP_API_KEY.