config
Manage CLI configuration settings.
Usage
onvera config set base-url <url>Subcommands
config set base-url
Set the API base URL.
Arguments:
<url>- API base URL (e.g.,https://api.staging.onvera.io)
Examples
Set base URL:
onvera config set base-url https://api.staging.onvera.ioSet production base URL:
onvera config set base-url https://api.onvera.ioDescription
The config set base-url command sets the API base URL used by all CLI commands. This is useful for:
- Pointing to staging or development environments
- Using custom API endpoints
- Testing against different API versions
The base URL is stored in the CLI configuration file and persists across sessions.
Configuration Location
Configuration is stored in:
- Linux/macOS:
~/.config/onvera/config.json - Windows:
%APPDATA%\onvera\config.json
Overriding Base URL
You can also override the base URL per-command using the --base-url flag:
onvera ls --base-url https://api.staging.onvera.ioThe --base-url flag takes precedence over the configured base URL.
Environment Variable
You can also set the base URL using the ONVERA_API_URL environment variable:
export ONVERA_API_URL=https://api.staging.onvera.io
onvera lsEnvironment variables take precedence over configuration file settings.
Related Commands
auth- Manage authentication- CLI Overview - General CLI information