vscli
A CLI tool to launch vscode projects, which supports devcontainers.

Features
- A shorthand for launching vscode projects
- Detects whether a project is a devcontainers project, and launches the devcontainer instead
- Supports the insiders version of vscode
- Tracks your projects and allows you to open them using an CLI-based UI
Installation
Cargo
Install vscli using cargo on Windows or Linux:
Homebrew
Install vscli using homebrew on Linux:
Chocolatey
Install vscli using Chocolatey on Windows:
Additional steps
You can set a shorthand alias for vscli in your shell's configuration file:
Usage
Commandline
After installation, the vscli command will be available:
)
)
)
Examples
Launching a project
You can launch a project using the default behaviour:
The default behaviour tries to dectect whether the project is a devcontainers project. If it is, it will launch the devcontainer instead - if not it will launch vscode normally.
You can change the launch behvaiour using the --behaviour flag:
You can launch the insiders version of vscode using the --insiders flag:
Additional arguments can be passed to the code executable, by specifying them after --:
Read more about the code flags, by executing code --help.
CLI UI
You can open a CLI-based user interface to display a list of recently opened projects using the recent command:
Use the arrow keys to navigate the list, and press enter or o to open the selected project. Use q to quit the UI.
You can delete entries by highlighting them and pressing x or the delete key.