diff --git a/.changeset/clarify-dev-env-file.md b/.changeset/clarify-dev-env-file.md new file mode 100644 index 00000000000..e3333d0ca18 --- /dev/null +++ b/.changeset/clarify-dev-env-file.md @@ -0,0 +1,5 @@ +--- +"trigger.dev": patch +--- + +Clarify that `dev --env-file` values are also available to local task processes. diff --git a/docs/snippets/cli-options-env-file.mdx b/docs/snippets/cli-options-env-file.mdx index 1494c17f8b1..31a9607d89e 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. - \ No newline at end of file + Load environment variables from a file into the CLI process. When running `dev`, those values + are also included in the environment of your local task processes. + diff --git a/packages/cli-v3/src/commands/dev.ts b/packages/cli-v3/src/commands/dev.ts index 9daf07532ce..8126324c62d 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 and local task processes. Defaults to .env in the project directory." ) .option( "--max-concurrent-runs ",