Skip to content

Commit c286592

Browse files
authored
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 0bcc6ef commit c286592

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
@@ -2698,6 +2698,9 @@ The following environment variables are set when running a script with `--run`:
26982698
* `NODE_RUN_PACKAGE_JSON_PATH`: The path to the `package.json` that is being
26992699
processed.
27002700

2701+
Environment variables loaded from a file with [`--env-file`][] are not applied
2702+
to the command executed by `--run`.
2703+
27012704
### `--secure-heap-min=n`
27022705

27032706
<!-- YAML

0 commit comments

Comments
 (0)