devc is an alternate devcontainers CLI with a simplified interface. It's based on the upstream reference CLI, but ported to Rust by Claude and packaged as a single self-contained binary.
Currently macOS and Linux are supported. As a prerequisite, you need to have a Docker-compatible container runtime installed.
The CLI can be installed in a few ways.
brew install rameshvarun/tap/devc
curl -fsSL https://raw.githubusercontent.com/rameshvarun/devc/main/install.sh | sh
cargo install --git https://github.com/rameshvarun/devc --locked
Once the CLI is installed, switch to a project that has a .devcontainer spec.
cd project/ # Switch to your project's directory.
devc npm test # Run any command inside the container, starting it if it doesn't exist.
devc # Or, run with no arguments to get a shell inside the container.
devc --help # Print usage information
devc --version # Print the devc version
devc down # Tear down the container
Containers make it easy to create reproducible, sandboxed dev environments - that's why the devcontainers specification exists. Although well integrated into VSCode, devcontainers aren't as convenient to use from the command line. devc bridges that gap by providing a simplified interface for launching and using devcontainers.
devcontainer up
devcontainer exec npm test
devc npm test