Configuration

Where the CLI stores its config, how to view it, and how to override anything per command.

Config file#

The CLI keeps its settings in ~/.config/easyenv/config.yaml on every OS (or $XDG_CONFIG_HOME/easyenv/config.yaml when that is set). The service token is saved there too, with mode 0600.

View and edit config#

bash
easyenv config view             # print effective config, env vars applied
easyenv config path             # print the config file path
easyenv config set server https://staging-api.easyenv.io
easyenv config unset server

config set takes server, default_account, output and watch_interval.

Resolution order#

The CLI resolves a setting in this order, first match wins:

  1. A command-line flag, e.g. --account or --output.
  2. An environment variable: EASYENV_SERVER, EASYENV_TOKEN, EASYENV_ACCOUNT.
  3. The config file value.
  4. The built-in default.
Configuration | Docs | EasyEnv