Magnolia 5.6 reached end of life on June 25, 2020. This branch is no longer supported, see End-of-life policy.
...
Bestpractice |
---|
Install Magnolia CLI globally.
|
The instructions that follow are based on the global npm package installation.
The following command will list the released
Code Block |
---|
npm info @magnolia/cli |
To install the latest version (globally), run the following command in a shell:
...
Code Block |
---|
sudo npm install @magnolia/cli -g |
To install the latest version (globally), for example 2.1.0, run the following command in a shell:
Code Block |
---|
npm install @magnolia/cli@2.1.0 -g |
Depending on your permissions and the Node.js installation location, you may have to execute the above command with root permissions. On Linux or OS-X to run this command as root use:
Code Block |
---|
sudo npm install @magnolia/cli@2.1.0 -g |
If the installation is successful, the output in the shell should be similar to this:
...