PostgresAI CLI
Reference
Install (optional)
You can run postgresai commands without installing, using npx or bunx. If you prefer to install it globally:
- npm
- Homebrew (macOS)
npm install -g postgresai
brew tap postgres-ai/tap https://gitlab.com/postgres-ai/homebrew-tap.git
brew install postgresai
Authenticate
Authenticate via browser and store the API key locally:
- Installed CLI
- npx
- bunx
postgresai auth
npx postgresai auth
bunx postgresai auth
Install MCP (Cursor, Claude Code, Windsurf, Codex)
Install MCP integration for your AI coding tool:
- Installed CLI
- npx
- bunx
postgresai mcp install
npx postgresai mcp install
bunx postgresai mcp install
Work with issues
List issues:
- Installed CLI
- npx
- bunx
postgresai issues list
npx postgresai issues list
bunx postgresai issues list
View a specific issue:
- Installed CLI
- npx
- bunx
postgresai issues view <issue_id>
npx postgresai issues view <issue_id>
bunx postgresai issues view <issue_id>
Post a comment:
- Installed CLI
- npx
- bunx
postgresai issues post_comment <issue_id> "<comment>"
npx postgresai issues post_comment <issue_id> "<comment>"
bunx postgresai issues post_comment <issue_id> "<comment>"