Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Bestpractice

Install Magnolia CLI globally.

  • The configuration is stored The configuration is stored globally.
  • The commands are available in the shell on all directories.
  • The global configuration can be overridden on a project level using the  Magnolia CLI root page customize-local-config command.

The instructions that follow are based on the global npm package installation.

Which versions are vailable?

The following command will list the released 

Code Block
npm info @magnolia/cli

Installing the latest version

To install the latest version (globally), run the following command in a shell:

...

Code Block
sudo npm install @magnolia/cli -g

Installing a specific version

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: 

...