Skip to content

Commit d5dbde0

Browse files
bitpshraduh95
authored andcommitted
doc: note --env-file is not applied to --run
Environment variables loaded with `--env-file` are not applied to the command executed by `--run`. Document this limitation under `--run`. Fixes: #62988 Signed-off-by: Paul Bouchon <mail@bitpshr.net> PR-URL: #64442 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 1409bb6 commit d5dbde0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

doc/api/cli.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2688,6 +2688,9 @@ The following environment variables are set when running a script with `--run`:
26882688
* `NODE_RUN_PACKAGE_JSON_PATH`: The path to the `package.json` that is being
26892689
processed.
26902690

2691+
Environment variables loaded from a file with [`--env-file`][] are not applied
2692+
to the command executed by `--run`.
2693+
26912694
### `--secure-heap-min=n`
26922695

26932696
<!-- YAML

0 commit comments

Comments
 (0)