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

CommandPurpose
listShow 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 aws

Resolution order

For each settable value, l4 resolves in this order — the first match wins:

  1. Command-line flag (e.g. --provider gcp)
  2. Environment variable (e.g. LEVELFOUR_API)
  3. Config file (l4 config set …)
  4. Built-in default

l4 config list annotates each value with its source so you can see exactly which layer is in effect.

Common keys

KeyPurpose
default_providerDefault --provider for costs and recommendations
api_baseDefault API base URL (overrides built-in production URL)

For full auth setup, see Authentication.