Install Coco
Download a suitable binary from the Releases page and follow the steps for your OS.
VS Code extension: Coco syntax and tooling are available in the official extension: https://marketplace.visualstudio.com/items?itemName=sarvalabs.cocolang
macOS / Linux / WSL
- Remove any previous install (default path):
rm -rf ~/.coco/bin
- Unpack the archive (run in the directory where you downloaded it):
mkdir -p ~/.coco/bin
tar -C ~/.coco/bin -xzf coco-0.4.0-macos-arm64.tar.gz # ← use the file you downloaded
- Add to PATH (in ~/.zshrc or ~/.bashrc):
export PATH="$PATH:$HOME/.coco/bin"
Apply immediately:
source ~/.zshrc # or source ~/.bashrc
- Verify:
coco version
Install for Windows
Use the CocolangSetup.exe (x86_64) from Releases, or install manually:
-
Remove any previous install.
-
Unpack the archive into %USERPROFILE%.coco\bin.
-
Add %USERPROFILE%.coco\bin to PATH.
Verify:
coco version