Skip to content

CLI commands

Last updated

View as Markdown

The settings the DBGorilla CLI keeps between commands, and where each value comes from.

Two settings persist: api-url and insecure.

Terminal window
dbgorilla config get api-url # the value, and where it came from
dbgorilla config set api-url https://dbgorilla.your-company.example
dbgorilla config unset api-url

A setting can come from five places. The first one wins:

OrderSource
1--api-url on the command line
2the DBGORILLA_API_URL environment variable
3your config file: ~/.config/dbgorilla/cli.toml, or $XDG_CONFIG_HOME/dbgorilla/cli.toml
4a system-wide file your IT team deploys: /Library/Application Support/dbgorilla/cli.toml on macOS, /etc/dbgorilla/cli.toml on Linux
5app.dbgorilla.com, the built-in default

dbgorilla config unset api-url therefore returns the CLI to SaaS instead of leaving it without an endpoint.

dbgorilla config get tells you which layer won, which is the fastest way to find out why a command is talking to the wrong deployment.