Skip to content

Add --user to copilot argument #3169

@logar16

Description

@logar16

Describe the feature or problem you'd like to solve

I'd like to be able to specify which user I want to use for the session as I have both work and personal accounts

Proposed solution

If you have a script that puts in all the startup values you like by default, would be nice to have an ability to also specify the user/account that the session should start up in. Kind of annoying to have to later specify the user via /user.

Example prompts or workflows

I have a powershell alias cs that launches copilot with a few args like --yolo and a few other fields. I'd like to also be able to pass a flag like -Personal or -Work to force it to use a specific account for the new session (so I don't forget and spend personal on work or vice versa). Just relying on the last one launched gets tricky because sometimes I forget and in the morning when I get to work and I forget to switch back to work account.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:authenticationLogin, OAuth, device auth, token management, and keychain integrationarea:configurationConfig files, instruction files, settings, and environment variables
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions