diff --git a/doc/api/cli.md b/doc/api/cli.md index fe17c87eddbd91..a58447081409f8 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -894,6 +894,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`