Skip to content

docs(cli): align CLI reference with current implementation#31

Closed
NikolayS wants to merge 1 commit intomasterfrom
claude/fix-cli-docs-gXQ9V
Closed

docs(cli): align CLI reference with current implementation#31
NikolayS wants to merge 1 commit intomasterfrom
claude/fix-cli-docs-gXQ9V

Conversation

@NikolayS
Copy link
Copy Markdown
Contributor

@NikolayS NikolayS commented May 6, 2026

Summary

The CLI reference at /docs/reference-guides/postgresai-cli-reference had drifted from the actual CLI in postgres-ai/postgresai. This PR rewrites the page to match the current source (cli/bin/postgres-ai.ts).

What was wrong

Old docs said Actual CLI
init <conn> (top-level) No such command — actual is prepare-db [conn]
add-key <key> (top-level) Doesn't exist — use auth --set-key <key>
show-key, remove-key (top-level) Live under auth show-key / auth remove-key
mon quickstart Renamed to mon local-install
mon targets add <conn> <name> (name required) name is optional
issues post_comment (underscore) issues post-comment (hyphen)
mcp install [client] listed but not described Now documented (Cursor / Claude Code / Windsurf / Codex)
--storage-base-url global option Was missing

Newly documented commands & flags

  • prepare-db (full option set, including Supabase mode and --print-sql / --verify / --reset-password)
  • unprepare-db
  • checkup (express mode + --upload / --project / --markdown)
  • reports list | files | data (Console-side report browsing)
  • set-default-project, set-storage-url
  • mon: health --wait, logs --follow/--tail, clean --keep-volumes, update, update-config, reset, check, shell, restart, targets test
  • issues: create, update, update-comment, files upload, files download, action-items, view-action-item, create-action-item, update-action-item, plus the repeatable --attach flag and --json / --debug semantics
  • mcp install (per-client behaviour)
  • Both postgresai and pgai binary aliases
  • New env vars: PGAI_STORAGE_BASE_URL, PGAI_MON_PASSWORD, SUPABASE_*

Test plan

  • Render the page locally and skim each section.
  • Spot-check that postgresai <command> --help for a couple of commands matches what the docs say.
  • Verify intra-doc links and the cross-link to /docs/postgresai-howtos/postgresai-cli still resolve.
  • Optional follow-up: review docs/postgresai-howtos/postgresai-cli.md for the same drift (left out of this PR to keep the diff focused).

Generated by Claude Code

Rewrite the PostgresAI CLI reference to match the actual command tree
in cli/bin/postgres-ai.ts: rename mon quickstart -> mon local-install,
move show-key/remove-key under auth (drop top-level add-key in favour
of `auth --set-key`), use hyphens for issues subcommands, and add the
previously undocumented commands (prepare-db, unprepare-db, checkup,
reports, set-default-project, set-storage-url, mcp install, issues
create/update/update-comment/files/action-items, mon targets test,
mon shell, mon clean, mon check, mon health, mon update, etc.).
@NikolayS NikolayS closed this May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant