Skip to content

Support multiple deployments (contexts) via Coder CLI #9857

@francisco-mata

Description

@francisco-mata

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions