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 serverconfig set takes server, default_account, output and watch_interval.
Resolution order#
The CLI resolves a setting in this order, first match wins:
- A command-line flag, e.g.
--accountor--output. - An environment variable:
EASYENV_SERVER,EASYENV_TOKEN,EASYENV_ACCOUNT. - The config file value.
- The built-in default.
