René's URL Explorer Experiment


Title: bug: CLI displays incorrect profile name when using --profile option · Issue #2542 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: bug: CLI displays incorrect profile name when using --profile option · Issue #2542 · triggerdotdev/trigger.dev

X Title: bug: CLI displays incorrect profile name when using --profile option · Issue #2542 · triggerdotdev/trigger.dev

Description: Bug Description When using the --profile option with CLI commands, the displayed profile name in the command output doesn't match the profile actually being used. Instead, it shows "default" or the first configured profile, even though t...

Open Graph Description: Bug Description When using the --profile option with CLI commands, the displayed profile name in the command output doesn't match the profile actually being used. Instead, it shows "default" or the...

X Description: Bug Description When using the --profile option with CLI commands, the displayed profile name in the command output doesn't match the profile actually being used. Instead, it shows "defaul...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: CLI displays incorrect profile name when using --profile option","articleBody":"## Bug Description\n\nWhen using the `--profile` option with CLI commands, the displayed profile name in the command output doesn't match the profile actually being used. Instead, it shows \"default\" or the first configured profile, even though the correct profile is being used for authentication.\n\n## Steps to Reproduce\n\n1. Have multiple profiles configured in the CLI\n2. Run `trigger.dev whoami --profile myprofile`\n3. Observe that the output shows `[default]` or another profile name instead of `myprofile`\n\n## Expected Behavior\n\nThe CLI should display the actual profile name being used when the `--profile` option is specified. If `--profile myprofile` is used, all output should show `[myprofile]`.\n\n## Actual Behavior\n\n- The intro message shows: `Displaying your account details [default]` \n- The final output shows a different profile name\n- Error messages reference incorrect profile names\n\nThis creates confusion as users can't verify if their specified profile is actually being used.\n\n## Example\n\n```bash\n$ trigger.dev whoami --profile staging\nDisplaying your account details [default]  # Wrong - should show [staging]\n...\nAccount details [personal]  # Wrong - should show [staging]\n```\n\n## Environment\n\n- Package: `packages/cli-v3`\n- Command affected: `whoami` (and potentially others)\n\n## Solution\n\nPR #2541 fixes this issue by:\n- Properly resolving the profile name at the start of command execution\n- Using the resolved profile consistently throughout all messages\n- Ensuring the displayed profile matches what's actually being used\n\n## Related PR\n\nThis issue is fixed by PR #2541","author":{"url":"https://github.com/hongkongkiwi","@type":"Person","name":"hongkongkiwi"},"datePublished":"2025-09-23T09:08:54Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/2542"}

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:1c654ff9-e4d1-62cf-5645-44c4d79d6870
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD2F4:1C7E4:30481B6:441722A:6AFAE23A
html-safe-noncead7a9ef084bce8e072b6e450a2aeed6c76bbc057b19c5b1d56a8e223b8b4b16e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkY0OjFDN0U0OjMwNDgxQjY6NDQxNzIyQTo2QUZBRTIzQSIsInZpc2l0b3JfaWQiOiI4Mzc4NjEyNjQ2NTI5MzkzMjEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac473c01eda70d2ffef9b1ac76304c1e0afd7eb850bb192585ac941b4f153e3b38
hovercard-subject-tagissue:3444372819
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/2542/issue_layout
twitter:imagehttps://opengraph.githubassets.com/bd19e03a4d8d8b7a939fe03f32b2ea905ec59f163eac81ab7cb36e7743fff61e/triggerdotdev/trigger.dev/issues/2542
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bd19e03a4d8d8b7a939fe03f32b2ea905ec59f163eac81ab7cb36e7743fff61e/triggerdotdev/trigger.dev/issues/2542
og:image:altBug Description When using the --profile option with CLI commands, the displayed profile name in the command output doesn't match the profile actually being used. Instead, it shows "default" or the...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehongkongkiwi
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/2542#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F2542
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%2F2542
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/2542
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/2542
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/2542
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/2542
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/2542
bug: CLI displays incorrect profile name when using --profile optionhttps://github.com/triggerdotdev/trigger.dev/issues/2542#top
https://github.com/hongkongkiwi
hongkongkiwihttps://github.com/hongkongkiwi
on Sep 23, 2025https://github.com/triggerdotdev/trigger.dev/issues/2542#issue-3444372819
#2541https://github.com/triggerdotdev/trigger.dev/pull/2541
#2541https://github.com/triggerdotdev/trigger.dev/pull/2541
hongkongkiwihttps://github.com/hongkongkiwi
on Sep 23, 2025https://github.com/triggerdotdev/trigger.dev/issues/2542#event-19861175381
deepshekhardashttps://github.com/deepshekhardas
on Mar 2, 2026https://github.com/triggerdotdev/trigger.dev/issues/2542#event-23184534511
fix(cli): respect --profile flag by deferring default evaluationhttps://github.com/deepshekhardas/trigger.dev/commit/af3bb344c3cc2744be6b5acdce58aadf03192a22
https://docs.github.com/articles/closing-issues-via-commit-messages
af3bb34https://github.com/deepshekhardas/trigger.dev/commit/af3bb344c3cc2744be6b5acdce58aadf03192a22
fix(cli): respect --profile flag by lazily evaluating default profile…https://github.com/deepshekhardas/trigger.dev/commit/9377289dcf412ac2b9da2cb7bfc6dd9d301434c0
https://docs.github.com/articles/closing-issues-via-commit-messages
9377289https://github.com/deepshekhardas/trigger.dev/commit/9377289dcf412ac2b9da2cb7bfc6dd9d301434c0
https://github.com/nicktrn
nicktrnhttps://github.com/nicktrn
on Mar 2, 2026https://github.com/triggerdotdev/trigger.dev/issues/2542#issuecomment-3982936178
#2728https://github.com/triggerdotdev/trigger.dev/pull/2728
https://github.com/matt-aitken
matt-aitkenhttps://github.com/matt-aitken
on Aug 29, 2026https://github.com/triggerdotdev/trigger.dev/issues/2542#issuecomment-5463732589
#2728https://github.com/triggerdotdev/trigger.dev/pull/2728
matt-aitkenhttps://github.com/matt-aitken
completedhttps://github.com/triggerdotdev/trigger.dev/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 29, 2026https://github.com/triggerdotdev/trigger.dev/issues/2542#event-30215854005
Sign up for freehttps://github.com/signup?return_to=https://github.com/triggerdotdev/trigger.dev/issues/2542
Sign in to commenthttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/2542
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.