github / github/copilot-cli

Add `--user` to copilot argument

Abierto
#3,169 0 comentarios 0 reacciones 0 asignados Ver en GitHub
area:authentication area:configuration
Lenguaje dominante
Shell
Estrellas
11.2k
Forks
1.9k
Merge medio
14 h 16 min
PR fusionados (30 d)
6

Descripción

### 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_

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

No files or tests are named. Start by locating the CLI argument parsing and the existing `/user` account-selection flow; then trace how the selected account reaches a new session. Done means a startup flag reliably selects the requested account, while existing behavior remains unchanged and the option is discoverable.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
powershell
Área
cli
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
48/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.