René's URL Explorer Experiment


Title: docs: `dev --env-file` help/docs say it does not reach tasks, but it does · Issue #4425 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: docs: `dev --env-file` help/docs say it does not reach tasks, but it does · Issue #4425 · triggerdotdev/trigger.dev

X Title: docs: `dev --env-file` help/docs say it does not reach tasks, but it does · Issue #4425 · triggerdotdev/trigger.dev

Description: Provide environment information trigger.dev 4.5.0 (also verified 4.5.9) Describe the bug The --env-file option is documented — in the CLI --help for dev/deploy/preview and in the docs pages (cli-dev-commands, cli-deploy-commands, cli-pre...

Open Graph Description: Provide environment information trigger.dev 4.5.0 (also verified 4.5.9) Describe the bug The --env-file option is documented — in the CLI --help for dev/deploy/preview and in the docs pages (cli-de...

X Description: Provide environment information trigger.dev 4.5.0 (also verified 4.5.9) Describe the bug The --env-file option is documented — in the CLI --help for dev/deploy/preview and in the docs pages (cli-de...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/4425

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"docs: `dev --env-file` help/docs say it does not reach tasks, but it does","articleBody":"### Provide environment information\n\ntrigger.dev 4.5.0 (also verified 4.5.9)\n\n### Describe the bug\n\nThe `--env-file` option is documented — in the CLI `--help` for `dev`/`deploy`/`preview` and in the docs pages (`cli-dev-commands`, `cli-deploy-commands`, `cli-preview-archive`) — as:\n\n> Load environment variables from a file. This will only hydrate the `process.env` of the CLI process, **not the tasks**.\n\nBut in `dev`, the file *is* passed through to the tasks. `DevSupervisor.#getEnvVars()` (`dev/devSupervisor.ts`) builds the run environment from `resolveLocalEnvVars(this.options.args.envFile, …)`:\n\n```js\nasync #getEnvVars() {\n    const environmentVariablesResponse = await this.options.client.getEnvironmentVariables(...);\n    return {\n        ...resolveLocalEnvVars(this.options.args.envFile, environmentVariablesResponse.success ? ... : {}),\n        NODE_ENV: \"development\",\n        ...\n    };\n}\n```\n\nand `resolveLocalEnvVars(envFile, …)` → `resolveDotEnvVars(undefined, envFile)` reads exactly that file and includes it in what the task receives via `process.env`.\n\n### To reproduce\n\n1. `echo \"PROBE=from-file\" > custom.env`\n2. `trigger dev --env-file custom.env`\n3. In a task: `process.env.PROBE`\n4. It is `from-file` — the task **does** see the `--env-file` value.\n\nExpected per the docs: the task should NOT see it (docs say the flag only affects the CLI process).\n\n### Which is correct?\n\nThe behavior (file reaches tasks) is arguably the more useful one — passing `--env-file /path/to/empty` is a clean way to make the CLI read *no* ambient `.env*` files and rely solely on the injected `process.env`. But the docs and `--help` text state the opposite, so please either:\n\n- **fix the docs/`--help`** to say `--env-file` values are included in the task environment, or\n- if the documented behavior is the intended contract, fix `dev` to not pass `envFile` into `resolveLocalEnvVars`.\n\nEither way the code and the docs currently disagree, which makes `--env-file` hard to reason about.\n\n### Additional information\n\nRelated: #2999 (the `.env` vs `.env.local` precedence bug in the same `resolveDotEnvVars` path).\n","author":{"url":"https://github.com/petrbela","@type":"Person","name":"petrbela"},"datePublished":"2026-07-30T10:36:28Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/4425"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b903193d-539f-0099-2154-9fc650870689
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB8EE:90D42:34CEF0:4ED9E9:6AFAE233
html-safe-nonce109fa6a8e3bf5403b5bbd6d0a8b15f593ce7d1effbe772e99b403f6b57541037
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEVFOjkwRDQyOjM0Q0VGMDo0RUQ5RTk6NkFGQUUyMzMiLCJ2aXNpdG9yX2lkIjoiMjc4NTIwOTcxMzk4MzkzOTEyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac490a139ca2102f5910a9ad6c82b9010f7ce96077de44d9384e5037ce0225e4d2
hovercard-subject-tagissue:5018824945
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/triggerdotdev/trigger.dev/4425/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d6e220b6dcc419b6f1dcf1aa77bfc0cbc750bac7cd34a5988efba913998fda4d/triggerdotdev/trigger.dev/issues/4425
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d6e220b6dcc419b6f1dcf1aa77bfc0cbc750bac7cd34a5988efba913998fda4d/triggerdotdev/trigger.dev/issues/4425
og:image:altProvide environment information trigger.dev 4.5.0 (also verified 4.5.9) Describe the bug The --env-file option is documented — in the CLI --help for dev/deploy/preview and in the docs pages (cli-de...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepetrbela
hostnamegithub.com
expected-hostnamegithub.com
None9d9bd51a568909a83d1abb9d6f74d68f0c87ca85fe3a56d3f5d70d8b89add9f2
turbo-cache-controlno-preview
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a7ae932999cc6d511008dbf980ff9efad2a31f7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/issues/4425#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F4425
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F4425
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/4425
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/4425
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/4425
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests66 (66)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
https://github.com/triggerdotdev/trigger.dev
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/4425
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/4425
docs: dev --env-file help/docs say it does not reach tasks, but it doeshttps://github.com/triggerdotdev/trigger.dev/issues/4425#top
https://github.com/petrbela
petrbelahttps://github.com/petrbela
on Jul 30, 2026https://github.com/triggerdotdev/trigger.dev/issues/4425#issue-5018824945
#2999https://github.com/triggerdotdev/trigger.dev/issues/2999
https://github.com/Srinivasan8888
Srinivasan8888https://github.com/Srinivasan8888
on Aug 31, 2026https://github.com/triggerdotdev/trigger.dev/issues/4425#issuecomment-5474450719
#4845https://github.com/triggerdotdev/trigger.dev/issues/4845
https://github.com/Srinivasan8888
Srinivasan8888https://github.com/Srinivasan8888
on Aug 31, 2026https://github.com/triggerdotdev/trigger.dev/issues/4425#issuecomment-5475235971
#4473https://github.com/triggerdotdev/trigger.dev/pull/4473
@RealBhupeshhttps://github.com/RealBhupesh
#4478https://github.com/triggerdotdev/trigger.dev/pull/4478
@BILLKISHOREhttps://github.com/BILLKISHORE
Sign up for freehttps://github.com/signup?return_to=https://github.com/triggerdotdev/trigger.dev/issues/4425
Sign in to commenthttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/4425
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.