Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

cli: support multiple deployments withcoder deployment use #13325

Closed as not planned
Assignees
code-asher
Labels
cliArea: CLI
@stirby

Description

@stirby

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.

Metadata

Metadata

Assignees

Labels

cliArea: CLI

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp