Admin CLI
pgm-admin runs maintenance tasks that require direct administrative access.
What this page covers
Section titled “What this page covers”Key lifecycle, schema-safe maintenance, and operational reprocessing commands.
Core workflow
Section titled “Core workflow”- Use repo wrapper when available:
./bin/pgm-admin key create --name local --scopes read,write,delete./bin/pgm-admin stats- Manage keys and visibility:
key create,key list,key revoke
- Reprocess embeddings/extraction:
reembed,reextract,improve-graph
- Validate and prune graph quality:
prune-edges --below <threshold>validate-edges
- Run direct SQL/maintenance checks:
pgm-admin sql "SELECT ...".
- Wrapper behavior:
docker execwhen container is updocker compose run --rmas fallback.
--dry-runis available on most destructive commands.reextractresets extraction queue state without touching unrelated rows.