feat: add login --service-account and logout --except-current - #109
leonkenneth merged 3 commits into
Conversation
albert20260301
left a comment
There was a problem hiding this comment.
Required: this adds a public CLI workflow on a hand-written createEnvironmentServiceAccount endpoint and response envelope that are absent from the generated API spec. Please document the intentional pre-spec contract in the PR description, including its source and the expected migration once the generated operation ships.
The implementation guard is useful, but the release-level rationale needs to be visible with the public change.
| } | ||
| if (args["replace-profile"]) { | ||
| throw new ConfigurationError( | ||
| "--service-account cannot be combined with --replace-profile; a service account always gets its own profile.", |
There was a problem hiding this comment.
Curious what use case you had in mind for the --replace-profile option? And wondering if we should instead have some kind of reset command, to then login again?
There was a problem hiding this comment.
There is already logout that resets everything. I don't remember the rational for --replace-profile, we can remove it later
🤖 I have created a release *beep* *boop* --- ## [1.7.0](v1.6.2...v1.7.0) (2026-09-17) ### Features * add `login --service-account` and `logout --except-current` ([#109](#109)) ([a6a1d34](a6a1d34)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Add
login --service-accountandlogout --except-currentcommands to allow permission-restricted workflow.--service-accountreplaces the user-base profile a regularloginwould have resolved to.