This section details how to install Lisk Commander for a given distribution. If you have satisfied the requirements from the Pre-Installation section, you can proceed with the type of installation you would like to perform from the table below.
Install Lisk Commander via NPM
To install the latest version of Lisk Commander as a global command, please proceed with the following:
npm install --global --production lisky
Upon successful completion, NPM will add the Lisk Commander executable to your PATH.
Install Lisk Commander from Source (GitHub)
Clone the Lisk Commander repository using Git and install the dependencies:
git clone https://github.com/LiskHQ/lisky.git cd lisky git checkout master npm install npm run build
Adding the Lisk Commander executable to your PATH
Risk of conflict
If you have installed Lisk Commander globally via NPM (see Install Lisk Commander via NPM), following the instructions in this section is not recommended as they will introduce conflicts.
If you would like to add the
lisky executable to your PATH you have two options: option 1 will install the current state of the code you are installing globally, while option 2 will only link to the code and therefore automatically reflect changes you make going forward.
1. Install globally
Running this command from within the repository will add Lisk Commander to your global NPM packages, and add the
lisky executable to your PATH. Be aware that any previous globally installed Lisk Commander version will get overridden with this local version.
npm install --global --production
Note that you will have to repeat this process for each subsequent build of Lisk Commander.
2. Create a symlink
The other option is to ask NPM to create a symlink in the global folder that links to the package.
This will also add Lisk Commander to your PATH, but you won't have to repeat the process if you pull or create a new build. Be aware that any previous globally installed
lisky version will get overridden with this local version.