-
Notifications
You must be signed in to change notification settings - Fork 3
Cheat Sheet
- Activate license
- Organize environments with projects
- Configure connections
- Execute SQL
- Use dbvr as an MCP server
dbvr import-license -in=path/to/license.txt
See
import-license.
dbvr -license=/opt/dbvr/license.txt project list
See global options.
Create logical environments such as Test and Prod:
dbvr project create --name=Test
dbvr project create --name=Prod
List projects:
dbvr project list
See:
Review authentication models and network handlers before creating datasources.
List available authentication models:
dbvr auth-models --driver=postgres-jdbc
List supported network handlers:
dbvr network-handlers --driver=postgres-jdbc
See:
Create a datasource in the Test project:
dbvr datasource create \
--driver=postgres-jdbc \
--project=Test \
--name=pg-test \
--host=test-db.internal \
--database=appdb \
--user=app \
--password=secret
Create a datasource in the Prod project:
dbvr datasource create \
--driver=postgres-jdbc \
--project=Prod \
--name=pg-prod \
--host=prod-db.internal \
--database=appdb \
--user=app \
--password=secret
List datasources:
dbvr datasource list
See:
Run a query using an existing datasource:
dbvr sql -ds=pg-test "select current_date;"
Run SQL from a file:
dbvr sql -ds=pg-test -in=path/to/script.sql
Run with inline connection:
dbvr sql \
--driver=postgres-jdbc \
--host=localhost \
--database=testdb \
--user=app \
--password=secret \
"select * from users;"
See
sql.
Export query results to CSV:
dbvr sql \
-ds=pg-test \
-format=csv \
-out=path/to/users.csv \
"select * from users;"
See
sql.
Write results to Azure, GCP, or S3 using cloud URIs:
dbvr sql -ds=pg-prod -in=gs://my-bucket/script.sql -out=gs://my-bucket/output.txt
dbvr sql -ds=pg-prod -in=s3:///my-bucket/script.sql -out=s3:///my-bucket/output.txt
dbvr sql -ds=pg-prod -out=azb:///output.txt?endpoint=https://myaccount.blob.core.windows.net "select * from orders;"
List and test configured clouds:
dbvr cloud list
dbvr cloud test azure
See
cloud.
Connect an AI tool (Claude, Cursor, or any MCP-compatible client) to your database.
To start the server manually:
dbvr mcp start -ds=my-postgres
Get a configuration snippet for your AI tool:
dbvr mcp configuration -ds=my-postgres
Paste the output into your AI tool's MCP config file. This lets the tool access the datasource through dbvr MCP.
See:
- Getting started
- Reference
- Commands
- Connection options
- Databases support
- Administration
- About dbvr