Skip to content

chore: switch profile/org after bt auth login#233

Open
Cedric / ViaDézo1er (viadezo1er) wants to merge 2 commits into
mainfrom
cedric/switch-org-project-after-login
Open

chore: switch profile/org after bt auth login#233
Cedric / ViaDézo1er (viadezo1er) wants to merge 2 commits into
mainfrom
cedric/switch-org-project-after-login

Conversation

@viadezo1er

@viadezo1er Cedric / ViaDézo1er (viadezo1er) commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

After bt auth login, also switch the used profile similar to running bt switch but only for the org.
Pass --no-profile-switch to prevent org switching.

@github-actions

Copy link
Copy Markdown
Contributor

Latest downloadable build artifacts for this PR commit 660e766c5f2f:

Available artifact names
  • artifacts-build-global
  • artifacts-build-local-x86_64-pc-windows-msvc
  • artifacts-build-local-aarch64-pc-windows-msvc
  • artifacts-build-local-x86_64-apple-darwin
  • artifacts-build-local-x86_64-unknown-linux-gnu
  • artifacts-build-local-x86_64-unknown-linux-musl
  • artifacts-build-local-aarch64-apple-darwin
  • artifacts-build-local-aarch64-unknown-linux-gnu
  • artifacts-plan-dist-manifest
  • cargo-dist-cache

Comment thread README.md
- First prompt chooses: `OAuth (browser)` (default) or `API key`.
- If your API key can access multiple orgs, `bt` uses a searchable picker (alphabetized) and lets you choose a specific org or no default org (cross-org mode).
- After login, `bt` updates the active profile/org context immediately. If `--project` is set, it also switches that project; otherwise it clears any stale default project for the new login.
- Pass `--no-profile-switch` (or set `BRAINTRUST_NO_PROFILE_SWITCH=1`) to keep the old behavior and avoid changing active profile/org/project context.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When would you log in but not want to switch profile?

@viadezo1er Cedric / ViaDézo1er (viadezo1er) Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea but that's the previous behavior so I wanted to keep it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants