N

Neon CLI

CLI declared

Details
Command
neon
Docs
https://neon.com/docs/cli
Authentication
OAuth 2.0 oauth2 declared $ neon login

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

Neon API key env NEON_API_KEY + Neon API key $ neon <command> --api-key <neon_api_key> discovered
Neon API key api_key Get key ↗

Create a personal, organization, or project-scoped API key in the Neon Console under Settings → API keys. The secret is shown once, so copy it immediately. You can also mint personal keys from the CLI after signing in with neon api-keys create --name <name>. Send the key as Authorization: Bearer <key> for the management API, MCP API-key mode, and other Neon control-plane requests; or set NEON_API_KEY / pass --api-key for the CLI.

Neon API key api_key declared Get key ↗
env NEON_API_KEY