Command line
Help
bash
npx envarna --helpGet additional help per command
bash
npx envarna list --helpCommands
list: prints a table of env vars, types, defaults, usual paths- this is a screen dump of all settings defined by all classes in your project
env: writes.env.template- include
.env.templatein your repo so developers can copy it to.env(which should not be in the repo), then modify it for development use
- include
md: writesSETTINGS.mdvalues: writesvalues.yaml- useful as a starting point for CI/CD configuration
compose: prints docker-composeenvironment:- copy this into your
docker-compose.yml
- copy this into your
k8s: prints Kubernetesenv:list- for use in kubernetes manifests
json[root]: prints JSON structureyaml[root]: prints YAML structureraw: prints raw extracted spec- this is the internal representation of all settings used by the command line tool to produce all other formats
Common flags
--skip-dev: omit@devOnlyfieldsjson --root <name> --flat --code: choose root, flatten, and use field names instead of ENVARsyaml --root <name> --flat --code: same for YAML
Defaults
json:rootdefaults to none (top-level object of groups/fields)yaml:rootdefaults tosettings