A dead-simple version manager for the Caffeine programming language.
brew install brickell-research/caffeine/cvmcvm install latest # Install the latest version
cvm use 4.6.0 # Switch to a specific version
caffeine --help # Use it| Command | Description |
|---|---|
cvm install <version> |
Install a version (use latest for the most recent) |
cvm use <version> |
Switch the active version |
cvm list |
List installed versions |
cvm list-remote |
List versions available to install |
cvm uninstall <version> |
Remove an installed version |
cvm current |
Show the active version |
cvm which |
Show the path to the active binary |
cvm help |
Show help |
Running cvm install with no arguments reads the version from a .caffeine-version file in the current directory:
echo "4.6.0" > .caffeine-version
cvm installcvm downloads pre-built binaries from GitHub Releases into ~/.cvm/versions/<version>/. A symlink at ~/.cvm/current points to the active version. Your PATH includes ~/.cvm/current, so caffeine always resolves to the right binary. No shims, no shell functions, no magic.