diff --git a/doc/api/cli.md b/doc/api/cli.md index 3152f9409d5721..5a000c04588fd2 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -872,6 +872,15 @@ export USERNAME="nodejs" # will result in `nodejs` as the value. If you want to load environment variables from a file that may not exist, you can use the [`--env-file-if-exists`][] flag instead. +### `--env-file-if-exists=config` + + + +Behavior is the same as [`--env-file`][], but an error is not thrown if the file +does not exist. + ### `-e`, `--eval "script"` - -Behavior is the same as [`--env-file`][], but an error is not thrown if the file -does not exist. - ### `--pending-deprecation`