Skip to content

masterbtc/neo-cli

 
 

Repository files navigation

Current TravisCI build status. License Current neo-cli version.

Prerequisites

You will need Window, Linux or macOS. Ubuntu 14 and 16 are supported. Ubuntu 17 is not supported.

Install .NET Core.

On Linux, install the LevelDB and SQLite3 dev packages. E.g. on Ubuntu:

sudo apt-get install libleveldb-dev sqlite3 libsqlite3-dev libunwind8-dev

On macOS, install the LevelDB package. E.g. install via Homebrew:

brew install --ignore-dependencies --build-from-source leveldb

On Windows, use the Neo version of LevelDB.

Download pre-compiled binaries

See also official docs. Download and unzip latest release.

dotnet neo-cli.dll

Compile from source

Clone the neo-cli repository.

cd neo-cli
dotnet restore
dotnet publish -c Release

In order to run, you need .NET Core. Download the SDK binary.

Assuming you extracted .NET in the parent folder:

../dotnet bin/Release/netcoreapp1.0/neo-cli.dll .

Build into Docker

Clone the neo-cli repository.

cd neo-cli
docker build -t neo-cli .
docker run -p 10332:10332 -p 10333:10333 --name=neo-cli-mainnet neo-cli

After start the container successfully, use the following scripts to open neo-cli interactive window:

docker exec -it neo-cli-mainnet /bin/bash
screen -r node

Logging

To enable logs in neo-cli, you need to add the ApplicationLogs plugin. Please check here for more information.

Bootstrapping the network.

In order to synchronize the network faster, please check here.

Usage

See documentation. E.g. try show state or create wallet wallet.json.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 98.0%
  • Shell 1.3%
  • Dockerfile 0.7%