Install, upgrade or uninstall Enonic CLI

Contents

The CLI is available for Mac, Linux and Windows. To install the CLI on your local device, visit our Quickstart page or follow the instructions below

Install Enonic CLI

NPM

If you have npm installed (on any OS), run the following command in your terminal:

npm install -g @enonic/cli

MacOS

Brew

  1. 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
  2. Now you can install CLI by running:

    brew install enonic

Direct download

You can download CLI directly from our repository: x64 | ARM

Linux

wget

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

Snapcraft

Open the Shell and run the following:

$ sudo snap install enonic

Direct download

You can download CLI directly from our repository: x64 | ARM | ARMv6

Windows

Scoop

  1. 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
  2. Now you can install CLI by running:

    scoop install enonic

Native installer

To install the latest available version on your PC with native installer:

  1. Download windows installer.

  2. Run it and follow the wizard instructions.

  3. If you need to update the CLI later, just run the installer once again to fetch the latest version.

Direct download

You can download CLI directly from our repository: x64 | ARMv6

Upgrade Enonic CLI

To upgrade to the latest version, run the following command:

enonic upgrade
This command will not work if you installed CLI via direct download or native Windows installer.

You can check if there’s a newer version of Enonic CLI by running the following command:

enonic latest

This will report if there’s an upgrade available and what command to run to update CLI.

$ enonic latest

Loading...
You are using the latest version of Enonic CLI: 2.8.2

Uninstall Enonic CLI

Run

enonic uninstall

to remove Enonic CLI from your system.

This command will not work if you installed CLI via direct download or native Windows installer.

Contents

Contents

AI-powered search

Juke AI