# OpenCLI Agent Pack: pgcli

Use this when an AI agent needs to work with `pgcli`.

## What this CLI is for
Postgres shell, autocomplete, and readable results from the terminal. Built by dbcli.

Best for: postgres shell, autocomplete, and readable results from the terminal.

## Agent readiness
Human-first CLI (0/100)


## Install
```sh
pipx install pgcli
```

## Verify before real work
```sh
pgcli --version
```
Expected signal: pgcli responds locally and is ready for the first real command.

## Safe starting commands
```sh
pgcli --version
```

```sh
pgcli postgres://localhost/postgres
```

## Guardrails for agents
- Prefer small commands and ask the agent to summarize plain text output.
- Expect prompts; keep a human in the loop for interactive flows.
- Require confirmation before apply, delete, deploy, transfer, merge, or write actions.

## Suggested agent instruction
You may use pgcli (`pgcli`) for postgres shell, autocomplete, and readable results from the terminal.. First install it if missing, then run the verify command. Start with read-only or inspection commands. Summarize what you found before changing anything. Ask for confirmation before commands that mutate remote state, spend money, deploy, delete data, merge code, or expose secrets.

Source: OpenCLI
