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
Domain: github.com
{"@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-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1c654ff9-e4d1-62cf-5645-44c4d79d6870 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D2F4:1C7E4:30481B6:441722A:6AFAE23A |
| html-safe-nonce | ad7a9ef084bce8e072b6e450a2aeed6c76bbc057b19c5b1d56a8e223b8b4b16e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkY0OjFDN0U0OjMwNDgxQjY6NDQxNzIyQTo2QUZBRTIzQSIsInZpc2l0b3JfaWQiOiI4Mzc4NjEyNjQ2NTI5MzkzMjEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 473c01eda70d2ffef9b1ac76304c1e0afd7eb850bb192585ac941b4f153e3b38 |
| hovercard-subject-tag | issue:3444372819 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/triggerdotdev/trigger.dev/2542/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bd19e03a4d8d8b7a939fe03f32b2ea905ec59f163eac81ab7cb36e7743fff61e/triggerdotdev/trigger.dev/issues/2542 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bd19e03a4d8d8b7a939fe03f32b2ea905ec59f163eac81ab7cb36e7743fff61e/triggerdotdev/trigger.dev/issues/2542 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hongkongkiwi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9d9bd51a568909a83d1abb9d6f74d68f0c87ca85fe3a56d3f5d70d8b89add9f2 |
| turbo-cache-control | no-preview |
| go-import | github.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git |
| octolytics-dimension-user_id | 95297378 |
| octolytics-dimension-user_login | triggerdotdev |
| octolytics-dimension-repository_id | 572570113 |
| octolytics-dimension-repository_nwo | triggerdotdev/trigger.dev |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 572570113 |
| octolytics-dimension-repository_network_root_nwo | triggerdotdev/trigger.dev |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a7ae932999cc6d511008dbf980ff9efad2a31f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width