- Notifications
You must be signed in to change notification settings - Fork905
Closed as not planned
Labels
Description
We don't currently support multiple deployments in the CLI, right now we only store one session token and one URL. We should allow the user to store multiple on eachcoder login
call and have some state that points to the "active" deployment. Effectively we'd like to emulatekubectl
contexts.
This hasn't been explicitly requested, but simplifies supporting multiple deployments in extensions and prepares for ongoing RBAC work.
We could achieve this with a very simplecoder.yaml
ordeployments.yaml
.
I'd propose that each "coder context" or simply "coder deployment" be keyed by the deployment url:
> coder deployment use dev.coder.comSwitched to https://dev.coder.com> coder deployment showhttps://dev.coder.com> coder deployment use bananas.bizNo deployment found with the provided url, use"coder login..."
Or
> coder context use dev.coder.com> coder context list
Edit: changed syntax to avoid top-level commands.