Skip to content

Support multiple deployments (contexts) via Coder CLI #9857

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
francisco-mata opened this issue Sep 25, 2023 · 4 comments
Open

Support multiple deployments (contexts) via Coder CLI #9857

francisco-mata opened this issue Sep 25, 2023 · 4 comments

Comments

@francisco-mata
Copy link

francisco-mata commented Sep 25, 2023

Hello Coders,

I would like to request to have the CLI feature to be able to login on multiple coders at the same time. Currently to SSH to a coder WS you will need to login to server, to create a token, and with that token it will grant you access to your WS SSh connection. But If you need to connect to other Coder WS, you will need to relog to new instance of coder, killing the login token of the first instance.

I had managed this error before by mapping on the config file {url1: token1, url2: token2}, and exposing a default server on CLI and a flag to override the location -l server1 if needed.

coder login server1
coder login server2
coder location set-default server1
coder ssh-config 
coder ssh-config -l server2
coder ssh coder-ws-1 
coder ssh coder-ws-2 -l server2

Let me know what you think about this approach.

PS: We run multi-arch K8s clusters, so depends on which cluster you run, you will have different capabilities

@cdr-bot cdr-bot bot added the feature label Sep 25, 2023
@mattlqx
Copy link

mattlqx commented Sep 25, 2023

Agree, we have a staging and prod deployment of Coder that our team maintains and it'd be great to have the ability to switch between the two.

@jpmh1309
Copy link

jpmh1309 commented Feb 8, 2024

Any ETA for this feature!? 👀

@kylecarbs
Copy link
Member

@jpmh1309 not yet, but we've tinkered with it. It's extremely easy for us to implement, UX is just a bit odd.

@bpmct bpmct changed the title Coder login on multiple Coders Support multiple deployments (contexts) via Coder CLI Aug 30, 2024
@bpmct bpmct closed this as not planned Won't fix, can't repro, duplicate, stale Aug 30, 2024
@bpmct bpmct reopened this Aug 30, 2024
@bpmct
Copy link
Member

bpmct commented Aug 30, 2024

Some good discussion in #13325

@matifali matifali removed the feature label Oct 14, 2024
@matifali matifali marked this as a duplicate of #13325 Feb 26, 2025
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

No branches or pull requests

6 participants