CLI Options Reference
Option | Default | Description |
---|---|---|
-o, --output <path> | same as source file | Optional output file path–if omitted defaults to in-place interpolation ⚠️ Only applicable when a single source file is provided |
-f, --env-file <paths...> | [] | Path(s) to your env file(s) ℹ️ Forwarded to dotenvx without additional processing |
--ignore-unset-vars | false | Do not abort if source file(s) contain variables not defined in env file(s) (by default, throws the first unset variable error encountered) |
--encoding <name> | 'utf-8' | Encoding of your source and env file(s) ℹ️ Both used internally and forwarded to dotenvx |
--env-keys-file <path> | same as env file | Path to your .env.keys file ℹ️ Forwarded to dotenvx without additional processing |
--overload | false | Override existing env variables ℹ️ Forwarded to dotenvx without additional processing |
--convention <name> | undefined | Load a .env convention (available conventions: ['nextjs', 'flow'] )ℹ️ Forwarded to dotenvx without additional processing |
-v, --verbose | false | Sets log level to verbose ℹ️ Both used internally and forwarded to dotenvx |
-q, --quiet | false | Sets log level to error ℹ️ Both used internally and forwarded to dotenvx |
-V, --version | – | Output the package version number |
-h, --help | – | Display help info for the command |
🔍 Further Reading
For more details on options forwarded to
dotenvx
, see the official Dotenvx CLI Documentation.Check out the supported syntax for defining interpolation variables in your source files.