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/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 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 ",