View on GitHub

devcontainer-cli

Making the most of VS Code dev containers at the terminal

If you find frequently find yourself working at the terminal and are working with Visual Studio Code dev containers then the devcontainer CLI might be of interest for you!

Examples:


# The following command opens the current folder in 
# VS Code as a dev container # i.e. it skips the
# normal step of opening in VS Code and then 
# clicking # on the "Re-open in container" prompt.
$ devcontainer open-in-code

# If you don't have a dev container definition for 
# your folder then you can use 
#`devcontainer template add <name>` to add a 
# dev container definition.
$ devcontainer template add python-3

# You can use `devcontainer exec` to create a 
# shell (or run a process) # inside a dev container.
$ devcontainer exec

See the following topics for more information: