Skip to content

-> Wollok CLI via Node

Install Node version 20 from the official link by clicking on the “Download Node.js (LTS)” option. Then run the installer and select Next, leaving all options at default. If in doubt, we recommend watching this tutorial

If version 20 is not the official version when you want to download the installer, you can go to this page and select the latest Node version 20 for your operating system. Once this step is complete, it will show you the installation mechanism.

Installation

Let’s verify that we have node installed on our system. From any folder, open the terminal, which can be Powershell, CMD command line, or Git Bash:

Ventana de terminal
node -v
# should return version number 20.x.y

We should also have npm (Node’s package manager) installed:

Ventana de terminal
npm -v
# should return the version number

Now we install wollok by running:

Ventana de terminal
npm i -g wollok-ts-cli

Let’s verify that we have Wollok CLI installed. In the terminal, type:

Ventana de terminal
wollok --version

Verify wollok ts cli

Install Node version 20 from this link. The simplest option is to use nvm (Node Version Manager), an executable that allows you to manage different Node versions on your local machine. Select the latest version that appears for Node 20, the Linux operating system, and the nvm variant.

Install node Mac

Let’s verify that we have node installed on our system. From any folder, open a terminal with Ctrl + Alt + T:

Ventana de terminal
node -v
# should return version number 20.x.y

We should also have npm (Node’s package manager) installed:

Ventana de terminal
npm -v
# should return the version number

Now we install wollok by running:

Ventana de terminal
npm i -g wollok-ts-cli

Let’s verify that we have Wollok CLI installed. In the terminal, type:

Ventana de terminal
wollok --version

Verify Linux wollok ts cli

Install Node version 20 from this link. The simplest option is to use brew or nvm (Node Version Manager), an executable that allows you to manage different Node versions on your local machine. Select the latest version that appears for Node 20, the macOS operating system, and the nvm or brew variant.

Install node Mac

Let’s verify that we have node installed on our system. From any folder, open a terminal with ⌘ (Cmd) + Space or by searching for Terminal in the Launchpad:

Ventana de terminal
node -v
# should return version number 20.x.y

We should also have npm (Node’s package manager) installed:

Ventana de terminal
npm -v
# should return the version number

Now we install wollok by running:

Ventana de terminal
npm i -g wollok-ts-cli

Let’s verify that we have Wollok CLI installed. In the terminal, type:

Ventana de terminal
wollok --version

If you have already installed Wollok CLI and want to update it, first check what version you have installed. In the terminal, type:

Ventana de terminal
wollok --version

In a console, run the following command:

Ventana de terminal
npm i -g wollok-ts-cli

Then verify if you have a new version number:

Ventana de terminal
wollok --version