René's URL Explorer Experiment


Title: docs(cli): dev --env-file values reach your tasks by BILLKISHORE · Pull Request #4478 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: docs(cli): dev --env-file values reach your tasks by BILLKISHORE · Pull Request #4478 · triggerdotdev/trigger.dev

X Title: docs(cli): dev --env-file values reach your tasks by BILLKISHORE · Pull Request #4478 · triggerdotdev/trigger.dev

Description: Closes #4425 The --env-file docs snippet says the file only hydrates the CLI's process.env and not the tasks. That's true for deploy and preview archive, but not for dev: DevSupervisor.#getEnvVars() passes args.envFile into resolveLocalEnvVars, so the file ends up in the run environment. The snippet is shared by four pages, so I reworded it to cover both cases instead of splitting it. I added the same fact to trigger dev --help, which was silent on it. dev archive --help already said "CLI process" and is correct, so it's untouched. I fixed the docs rather than changing dev, since the behavior has shipped for a long time and people rely on --env-file reaching tasks. Happy to flip it the other way if you'd rather dev matched the old wording. ✅ Checklist I have followed every step in the contributing guide The PR title follows the convention. I ran and tested the code works Testing Built the CLI and checked both help outputs: $ node packages/cli-v3/dist/esm/index.js dev start --help --env-file 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. $ node packages/cli-v3/dist/esm/index.js dev archive --help --env-file Path to the .env file to load into the CLI process. Defaults to .env in the project directory. Also ran pnpm run format, pnpm run lint and pnpm run build --filter trigger.dev. Changelog trigger dev --help and the CLI docs now say that --env-file values are passed to your tasks, not just the CLI process. Screenshots n/a Two things I noticed reading this, left alone since they're separate issues: In resolveLocalEnvVars the dotenv values are spread last, so --env-file overrides the environment variables set in the dashboard. That may be intended, but it isn't documented. docs/cli-switch.mdx includes this snippet, but switch.ts has no --env-file option.

Open Graph Description: Closes #4425 The --env-file docs snippet says the file only hydrates the CLI's process.env and not the tasks. That's true for deploy and preview archive, but not for dev: DevSupervisor.#get...

X Description: Closes #4425 The --env-file docs snippet says the file only hydrates the CLI's process.env and not the tasks. That's true for deploy and preview archive, but not for dev: DevSupervi...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/pull/4478

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9bae24d9-bf11-2af4-126f-3efbbcafa4ad
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEB86:19D56D:663B2B7:88AAC4D:6AFAFD9C
html-safe-noncef0a6a3dc2856c02830b43518154915449bd75ef1abee76b3a4605aa8250a59ae
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjg2OjE5RDU2RDo2NjNCMkI3Ojg4QUFDNEQ6NkFGQUZEOUMiLCJ2aXNpdG9yX2lkIjoiNTU1ODYwMjAyMTIyNjYxMDA3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac91ad5d7609ee456423da50b52c69edfa696cfd4f6ec3c7c17da1ef2e5f31cf74
hovercard-subject-tagpull_request:4189181110
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/triggerdotdev/trigger.dev/pull/4478/files
twitter:imagehttps://avatars.githubusercontent.com/u/181403793?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/181403793?s=400&v=4
og:image:altCloses #4425 The --env-file docs snippet says the file only hydrates the CLI's process.env and not the tasks. That's true for deploy and preview archive, but not for dev: DevSupervisor.#get...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None54f7a6886649661c85eee945cca0773566bfb4065370e0429b7c8f7204184650
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecf8450eb633ec589502c42ff6f4072e40db65da3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/4478/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4478%2Ffiles
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%2Fpull%2F4478%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4478/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4478/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4478/files
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 requests67 (67)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
Sign up for GitHub https://github.com/signup?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
BILLKISHOREhttps://github.com/BILLKISHORE
triggerdotdev:mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
BILLKISHORE:docs/env-file-reaches-dev-taskshttps://github.com/BILLKISHORE/trigger.dev/tree/docs/env-file-reaches-dev-tasks
Conversation 3 https://github.com/triggerdotdev/trigger.dev/pull/4478
Commits 2 https://github.com/triggerdotdev/trigger.dev/pull/4478/commits
Checks 2 https://github.com/triggerdotdev/trigger.dev/pull/4478/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/4478/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4478/files
docs(cli): dev --env-file values reach your tasks https://github.com/triggerdotdev/trigger.dev/pull/4478/files#top
Show all changes 2 commits https://github.com/triggerdotdev/trigger.dev/pull/4478/files
7afdcc9 docs(cli): note dev --env-file reaches your tasks BILLKISHORE Aug 2, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4478/commits/7afdcc982bc4e55ab2d861146e29b05a7ce1693b
146c35f docs: scope the --env-file note per command BILLKISHORE Aug 2, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4478/commits/146c35f6ca1f42017d457c7100359a3060196fc7
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/4478/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4478/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4478/files
env-file-dev-tasks-help.md https://github.com/triggerdotdev/trigger.dev/pull/4478/files#diff-95ecc9f58fc16d1b8f457153b6df2d46ad05b8256aa83105acb2fb83186b5292
cli-options-env-file.mdx https://github.com/triggerdotdev/trigger.dev/pull/4478/files#diff-2d6f7cb001e1d1fce588624ab87094049bf8c130fe651dece40dcb41327cf5be
dev.ts https://github.com/triggerdotdev/trigger.dev/pull/4478/files#diff-86ba12a1747ae037f4b4bfb62ae43f9865d7c2376e47ef544cfb30164fbc3df8
.changeset/env-file-dev-tasks-help.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4478/files#diff-95ecc9f58fc16d1b8f457153b6df2d46ad05b8256aa83105acb2fb83186b5292
View file https://github.com/BILLKISHORE/trigger.dev/blob/146c35f6ca1f42017d457c7100359a3060196fc7/.changeset/env-file-dev-tasks-help.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4478/{{ revealButtonHref }}
docs/snippets/cli-options-env-file.mdxhttps://github.com/triggerdotdev/trigger.dev/pull/4478/files#diff-2d6f7cb001e1d1fce588624ab87094049bf8c130fe651dece40dcb41327cf5be
View file https://github.com/BILLKISHORE/trigger.dev/blob/146c35f6ca1f42017d457c7100359a3060196fc7/docs/snippets/cli-options-env-file.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4478/{{ revealButtonHref }}
packages/cli-v3/src/commands/dev.tshttps://github.com/triggerdotdev/trigger.dev/pull/4478/files#diff-86ba12a1747ae037f4b4bfb62ae43f9865d7c2376e47ef544cfb30164fbc3df8
View file https://github.com/BILLKISHORE/trigger.dev/blob/146c35f6ca1f42017d457c7100359a3060196fc7/packages/cli-v3/src/commands/dev.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4478/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4478/files#diff-86ba12a1747ae037f4b4bfb62ae43f9865d7c2376e47ef544cfb30164fbc3df8
https://github.com/triggerdotdev/trigger.dev/pull/4478/files#diff-86ba12a1747ae037f4b4bfb62ae43f9865d7c2376e47ef544cfb30164fbc3df8
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.