Loading...
Loading...
Execute PostgreSQL queries and introspection with named project connections using `postgres-cli` V2. Use when the user asks to inspect data, run SQL, debug schema, validate config, or build schema cache artifacts.
npx skill4agent add dobby/postgres-cli-skill postgres-clipostgres-cliscripts/postgres-cliscripts/bin/postgres-cli-darwin-arm64postgres-cli-linux-x86_64postgres-cli-windows-x86_64.execargo run --releasescripts/postgres-cliscripts/build-release-binary.shscripts/bin/scripts/refresh-binaries-from-release.sh <tag>scripts/bin/--project-root <path>--target <name>default_target--format <json|text|csv|tsv>json--output <path>--no-summaryquery--sql--sql-file--stdin--mode <read|write>read--timeout-msexplain--sql--sql-file--stdin--analyze--verbose--buffers--settings--wal--timeout-msintrospect--kind <schemas|tables|columns|indexes|constraints|views|materialized-views|functions|triggers|enums|rowcounts|rowcounts-exact>--schema--table schema.tableschema-cache update--all-tables--with-markdown--table-file-naming <table|schema-table>--timeout-mstargets listconfig validatedoctorquery --mode readquery --mode writeallow_write=trueexplain --analyzescripts/postgres-cli --project-root /path/to/repo --target webshop-read query --sql "SELECT now();"scripts/postgres-cli --project-root /path/to/repo --target webshop-write query --mode write --sql "UPDATE users SET active = true WHERE id = 1;"scripts/postgres-cli --project-root /path/to/repo --target webshop-read introspect --kind tablesscripts/postgres-cli --project-root /path/to/repo --target webshop-read explain --sql "SELECT * FROM users WHERE id = 1;"scripts/postgres-cli --project-root /path/to/repo config validatescripts/postgres-cli --project-root /path/to/repo --target webshop-read doctorscripts/postgres-cli --project-root /path/to/repo --target webshop-read schema-cache updatescripts/postgres-cli --project-root /path/to/repo --target webshop-read schema-cache update --with-markdown.agent/postgres-cli/schema/index.json.agent/postgres-cli/schema/tables/*.json.agent/postgres-cli/schema/relations.json.mdschema-cache update--targetdefault_target--format jsonquery --mode read