Skip to content
江河 edited this page Jul 22, 2026 · 3 revisions

dbgov-cli Wiki

dbgov-cli is the governed database operations CLI in the opskit family. It supports MySQL and PostgreSQL operations for humans and AI agents: read queries, explain, schema diff/plan/apply, governed DML, GitOps schema import/reconcile/rollback, context management, and tamper-evident audit.

Current npm package: dbgov-cli@0.4.1

Repository: https://github.com/JiangHe12/dbgov-cli

Start Here

Family Contracts

  • Output formats: json, table, and plain.
  • JSON output uses a versioned envelope with apiVersion, kind, success, and data or error.
  • capabilities -o plain prints one supported command per line.
  • version -o plain prints only the version string in release builds.
  • Global safety flags include --debug, --trace, and --no-color.
  • AI agents may read and preview freely, but must not invent --ticket, --allow-*, or high-risk --yes approvals.

Supported Top-Level Commands

ctx, schema, data, export, import, reconcile, rollback, audit, install, version, capabilities, doctor, query, explain.

Clone this wiki locally