From cf82de8d8b0f7921721166c2fbbbb07d1310ea8c Mon Sep 17 00:00:00 2001 From: Paul Bouchon Date: Sun, 19 Jul 2026 17:06:20 -0400 Subject: [PATCH] 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: https://github.com/nodejs/node/issues/62988 Signed-off-by: Paul Bouchon PR-URL: https://github.com/nodejs/node/pull/64442 Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- doc/api/cli.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/api/cli.md b/doc/api/cli.md index 061aa6e3721..e2d7beb462c 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -2688,6 +2688,9 @@ The following environment variables are set when running a script with `--run`: * `NODE_RUN_PACKAGE_JSON_PATH`: The path to the `package.json` that is being processed. +Environment variables loaded from a file with [`--env-file`][] are not applied +to the command executed by `--run`. + ### `--secure-heap-min=n`