Installing Neo-CLI
You can choose one of the following ways to install Neo-CLI:
-
Install the official Neo-CLI released package
-
or publish Neo-CLI source code from GitHub into an executable file. If you use macOS, this way is highly recommended.
This document will describe the two installation ways.
Hardware requirements
The following table lists the minimum and recommended hardware requirements for the computer running Neo-CLI.
Minimum | Recommended | Optimum | |
---|---|---|---|
System | Windows 10 Ubuntu 16.04/18.04 CentOS 7.4/7.6 | Windows 10 Ubuntu 16.04/18.04 CentOS 7.4/7.6 | Windows 10 Ubuntu 16.04/18.04 CentOS 7.4/7.6 |
CPU | Dual core | Quad core | Eight core |
Memory | 8G | 16G | 32G |
Hard Disk | 50G SSD hard drive | 100G SSD hard drive | 500G SSD hard drive |
Installing the Neo-CLI package
-
Download the latest Neo-CLI package according to your operating system on Github and unzip it.
-
On Linux, install the LevelDB and SQLite3 dev packages. For example, on ubuntu 18.04 run the following:
sudo apt-get install libleveldb-dev sqlite3 libsqlite3-dev libunwind8-dev
If using Windows, you can skip this step as those files are already included in the installation package.
Publishing from Neo-CLI source code
You can download and compile the Neo-CLI source directly from Github.
Setting up Neo-CLI on Windows
Installing required files
-
On Windows 10 install .NET Core and .NET Framework .
-
Git clone Neo-CLI source code from Github or using the following command:
$ git clone https://github.com/neo-project/neo-node/tree/master-2.x
-
Download LevelDB and unzip the package for later use.
Building the executable file
Run the following command in the command line:
cd neo-cli
dotnet restore
dotnet publish -c release -r win10-x64
//Enter the directory where the compiled files are stored and copy the libleveldb.dll downloaded before to here.
Setting up Neo-CLI on Linux
Installing required files
-
On Linux (ubuntu 18.04) install .NET Core Runtime .
-
Git clone Neo-CLI source code from Github or using the following command:
$ git clone https://github.com/neo-project/neo-node/tree/master-2.x
-
Run the following command to install levelDB:
sudo apt-get install libleveldb-dev sqlite3 libsqlite3-dev
Building the executable file
Run the following command in the command line:
cd neo-cli
dotnet restore
dotnet publish -c release -r linux-x64
Setting up Neo-CLI on macOS
Installing required files
-
Git clone Neo-CLI source code from Github or use the following commands:
$ git clone -b master-2.x https://github.com/neo-project/neo-node.git
-
Download LevelDB and unzip the package for later use.
-
Install Visual Studio for Mac .
Building the executable file
Run the following in the command line:
cd neo-cli
dotnet restore
dotnet publish -c release -r osx-x64
//Enter the directory where the compiled files are stored and copy the libleveldb.dll downloaded before to here.