Download a suitable binary from the releases page below and install Coco with the following steps based on your system type.
Visual Studio Code Extension
Cocolang has extended language support for Visual Studio Code through the official extension available at the link below
Install for Linux, macOS & WSL
1. Download the Cocolang Release for your platform
You can download your platform's appropriate release tar.gz
file from the releases pages. Alternatively, you can install it wget
or curl
using the link for the appropriate release.
2. Remove any existing installation of Coco
The following command removes any previously existing version of Cocolang from the ~/.coco/bin
directory, which is the default install directory. If you had previously installed it at an alternate location, use the appropriate path to remove the installation
rm -rf ~/.coco/bin
3. Unarchive the download
Run the following command to create the ~/.coco/bin
and untar the .tar.gz
file into it. This must be done from the directory in which the archive exists.
mkdir -p ~/.coco/bin && tar -C ~/.coco/bin -xzf coco-0.2.0-macos-arm64.tar.gz
4. Set the environment PATH
Add the following line to one of ~/.bashrc
or ~/.zshrc
or other similar shell source files to add the installation path to the shell.
export PATH=$PATH:~/.coco/bin
The changes made to the PATH
of the shell may not be applied until the shell is restarted. To apply the changes immediately, run the following command
source ~/.zshrc
5. Verify the installation
Run the following command to verify that Cocolang has been installed on your system
coco version
Similarly, run the following command to verify the LogicLab install. LogicLab also requires the initialisation of a lab environment to start the lab REPL. Refer to the LogicLab Documentation
logiclab version
Install for Windows
Download the CocolangSetup.exe
for Windows (x86_64) from the releases pages and run it. You may need to execute it with elevated privileges.
Manual Installation
- Remove any existing installation of Cocolang or LogicLab
- Untar the tar archive and move the executable files to
%USERPROFILE%/.coco/bin
- Add the
%USERPROFILE%/.coco/bin
to thePATH
- Run
coco version
andlogiclab -h
commands to verify the installation