CLICommands
l4 config
l4 config reads and writes a small, persistent set of CLI defaults so you don't have to repeat flags on every invocation. The config file is stored in the platform-standard config directory (~/.config/levelfour/ on Linux/macOS, %APPDATA%\levelfour\ on Windows).
Subcommands
| Command | Purpose |
|---|---|
list | Show all configuration values and where each one came from |
get <key> | Print one config value |
set <key> <value> | Set a config value |
l4 config list
l4 config get default_provider
l4 config set default_provider awsResolution order
For each settable value, l4 resolves in this order — the first match wins:
- Command-line flag (e.g.
--provider gcp) - Environment variable (e.g.
LEVELFOUR_API) - Config file (
l4 config set …) - Built-in default
l4 config list annotates each value with its source so you can see exactly which layer is in effect.
Common keys
| Key | Purpose |
|---|---|
default_provider | Default --provider for costs and recommendations |
api_base | Default API base URL (overrides built-in production URL) |
For full auth setup, see Authentication.