Installing Enonic CLI
Contents
The CLI is available for Mac, Linux and Windows. To install the CLI on your local device, visit our downloads page or follow the instructions below
MacOS installation
-
Enonic CLI is available from the Homebrew package service. With Homebrew installed, run the following command in your terminal app to add enonic to homebrew known repositories:
brew tap enonic/cli
-
Now you can install CLI by running:
brew install enonic
-
If you later want to update the CLI, simply run:
brew upgrade enonic
Linux installation
Install with script
Open the Shell and run the following:
wget -qO- https://repo.enonic.com/public/com/enonic/cli/installer/cli-linux/1.0.0/cli-linux-1.0.0.sh | sh
Install via direct download
If you know exact version you need, you can download CLI binary directly from our repository:
curl -O https://repo.enonic.com/public/com/enonic/cli/enonic/1.1.1/enonic_1.1.1_Linux_64-bit.tar.gz
Windows installation
There are two ways to install CLI on windows
Install using Scoop
-
After having Scoop command-line installer installed, open command prompt and add CLI github repo to scoop known repositories with the following command:
scoop bucket add enonic https://github.com/enonic/cli-scoop.git
-
Now you can install CLI by running:
scoop install enonic
-
Updating CLI is done with the following comand:
scoop update enonic
Windows native installer
To download the latest available CLI and install it on your PC with native installer:
-
Download windows installer.
-
Run it and follow the wizard instructions.
-
If you need to update the CLI later, just run the installer once again to fetch the latest version.
Upgrading Enonic CLI
To update, start by running the enonic latest
command. This will report if there are upgrades available, and also how to update for your specific OS.
$ enonic latest Loading... You are using the latest version of Enonic CLI: 1.3.0