From 7afdcc982bc4e55ab2d861146e29b05a7ce1693b Mon Sep 17 00:00:00 2001 From: BILLKISHORE Date: Sun, 2 Aug 2026 22:39:20 +0530 Subject: [PATCH 1/2] docs(cli): note dev --env-file reaches your tasks --- .changeset/env-file-dev-tasks-help.md | 5 +++++ packages/cli-v3/src/commands/dev.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/env-file-dev-tasks-help.md diff --git a/.changeset/env-file-dev-tasks-help.md b/.changeset/env-file-dev-tasks-help.md new file mode 100644 index 00000000000..7d9dfcd8c9a --- /dev/null +++ b/.changeset/env-file-dev-tasks-help.md @@ -0,0 +1,5 @@ +--- +"trigger.dev": patch +--- + +Corrected the `--env-file` help text for `trigger dev`. Values from the file are also passed to your tasks, not just the CLI process. diff --git a/packages/cli-v3/src/commands/dev.ts b/packages/cli-v3/src/commands/dev.ts index 9daf07532ce..e588b02f057 100644 --- a/packages/cli-v3/src/commands/dev.ts +++ b/packages/cli-v3/src/commands/dev.ts @@ -87,7 +87,7 @@ export function configureDevCommand(program: Command) { ) .option( "--env-file ", - "Path to the .env file to use for the dev session. Defaults to .env in the project directory." + "Path to the .env file to use for the dev session. Values are also passed to your tasks. Defaults to .env in the project directory." ) .option( "--max-concurrent-runs ", From 146c35f6ca1f42017d457c7100359a3060196fc7 Mon Sep 17 00:00:00 2001 From: BILLKISHORE Date: Sun, 2 Aug 2026 22:39:20 +0530 Subject: [PATCH 2/2] docs: scope the --env-file note per command --- docs/snippets/cli-options-env-file.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/snippets/cli-options-env-file.mdx b/docs/snippets/cli-options-env-file.mdx index 1494c17f8b1..14e3502bcb3 100644 --- a/docs/snippets/cli-options-env-file.mdx +++ b/docs/snippets/cli-options-env-file.mdx @@ -1,4 +1,4 @@ - Load environment variables from a file. This will only hydrate the `process.env` of the CLI - process, not the tasks. + Load environment variables from a file. In `dev`, these are also passed to your tasks. For every + other command they only hydrate the `process.env` of the CLI process. \ No newline at end of file