Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/clarify-dev-env-file.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"trigger.dev": patch
---

Clarify that `dev --env-file` values are also available to local task processes.
6 changes: 3 additions & 3 deletions docs/snippets/cli-options-env-file.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ParamField body="Env file" type="--env-file">
Load environment variables from a file. This will only hydrate the `process.env` of the CLI
process, not the tasks.
</ParamField>
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.
</ParamField>
2 changes: 1 addition & 1 deletion packages/cli-v3/src/commands/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function configureDevCommand(program: Command) {
)
.option(
"--env-file <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 <max concurrent runs>",
Expand Down