Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Admin CLI

pgm-admin runs maintenance tasks that require direct administrative access.

Key lifecycle, schema-safe maintenance, and operational reprocessing commands.

  1. Use repo wrapper when available:
Terminal window
./bin/pgm-admin key create --name local --scopes read,write,delete
./bin/pgm-admin stats
  1. Manage keys and visibility:
  • key create, key list, key revoke
  1. Reprocess embeddings/extraction:
  • reembed, reextract, improve-graph
  1. Validate and prune graph quality:
  • prune-edges --below <threshold>
  • validate-edges
  1. Run direct SQL/maintenance checks:
  • pgm-admin sql "SELECT ...".
  • Wrapper behavior:
    • docker exec when container is up
    • docker compose run --rm as fallback.
  • --dry-run is available on most destructive commands.
  • reextract resets extraction queue state without touching unrelated rows.