Skip to content

Add a Open to Remote Container option from the CLI #11152

@DanTup

Description

@DanTup

After running devcontainer up --workspace-folder . I'd like to be able to automate opening VS Code with this project in a devcontainer (without having to additionally click on the notification inside VS Code).

This was raised before at #9824 and the response was:

Works for me exactly as you describe:

$ devcontainer open .
[246 ms] @devcontainers/cli 0.58.0. Node.js v18.18.2. linux 6.5.0-28-generic x64.

However, this doesn't seem to work - there is no open subcommand for devcontainer as far as I can tell. I don't know if this is related to devcontainers/cli#66 which suggests there may have previously been a VS-Code-specific version of this CLI?

I've also tried various combinations of code --folder-uri "vscode-remote://..." but I can't figure out the right syntax for that and I can't find any documentation on the format.

Metadata

Metadata

Assignees

Labels

containersIssue in vscode-remote containers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions