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/env-file-dev-tasks-help.md
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 2 additions & 2 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.
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.
</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. Values are also passed to your tasks. Defaults to .env in the project directory."
)
.option(
"--max-concurrent-runs <max concurrent runs>",
Expand Down