CLI commands
The settings the DBGorilla CLI keeps between commands, and where each value comes from.
Configuration
Section titled “Configuration”Two settings persist: api-url and insecure.
dbgorilla config get api-url # the value, and where it came fromdbgorilla config set api-url https://dbgorilla.your-company.exampledbgorilla config unset api-urlA setting can come from five places. The first one wins:
| Order | Source |
|---|---|
| 1 | --api-url on the command line |
| 2 | the DBGORILLA_API_URL environment variable |
| 3 | your config file: ~/.config/dbgorilla/cli.toml, or $XDG_CONFIG_HOME/dbgorilla/cli.toml |
| 4 | a system-wide file your IT team deploys: /Library/Application Support/dbgorilla/cli.toml on macOS, /etc/dbgorilla/cli.toml on Linux |
| 5 | app.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.