Neon CLI
Manage Neon projects, branches, databases, roles, and connection strings for serverless Postgres.
Commands
neon-cli project list— List Neon projectsneon-cli branch create— Create a database branchneon-cli connection string— Get database connection stringneon-cli _ _— Passthrough to neonctl CLI
Installation
npm i -g neonctl
Authentication
neonctl auth
# or set NEON_API_KEY
Usage Examples
- "List my Neon projects"
- "Create a new branch for feature testing"
- "Get a connection string for my database"
- "List databases in a project"
Key Commands
# List projects
neonctl projects list --output json
# Create branch
neonctl branches create --project-id <id> --name feature-branch
# Get connection string
neonctl connection-string --project-id <id>
# List databases
neonctl databases list --branch <branch-id>
Key Features
- Serverless Postgres - Managed database service
- Branching - Instant database branches
- JSON Output - Structured data
- Connection Strings - Quick DB access