docs
Search…
docs
Introduction
Getting started
Meet the network using CLI
Your first transaction
Run smart contract
Run your own node
Ledger Support
Architecture
Staking
Move VM
Oracles
PegZone
Useful Resources
Dfinance Website
Wallet
Move Book
Block Explorer
Swagger UI
Community
VSCode Move IDE
Powered By
GitBook
Getting started
Here is a guide on how to install
dncli
command line interface and connect to
dfinance
.
Installation using precompiled binaries
First of all download the latest version of
dncli
for your system from
release pages
.
Install downloaded
dncli
binary.
For Mac OS/Linux:
1
mv <downloaded binary path> ./dncli
2
chmod +x ./dncli
3
mv ./dncli /usr/local/bin/dncli
Copied!
For Windows:
1.
Go to
"Program Files"
directory.
2.
Create there
"dn"
directory.
3.
Rename the downloaded file to
"dncli"
and put it into
"dn"
directory.
Now
"cmd"
and execute:
1
setx path "%path%;%ProgramFiles%\dn"
Copied!
Now restart
"cmd"
.
Check that installation successful done by running the command:
1
dncli version
Copied!
Your should see your current version of
dncli
in output.
Configuration
Let's configure
dncli
and after go to the next step:
1
dncli config chain-id dn-testnet
2
dncli config output json
3
dncli config indent true
4
dncli config trust-node true
5
dncli config compiler tcp://pub.dfinance.co:50051
6
dncli config node https://rpc.dfinance.co:443
7
dncli config keyring-backend file
Copied!
These configurations will connect your local
dncli
with remote nodes.
Check that
dncli
configurated correctly:
1
dncli status
Copied!
Installation from sources
Before we start you should have a correct 'GOPATH', 'GOROOT' environment variables, also installed
Golang
.
Required:
golang 1.13.8 or later.
protoc - here is
installation instruction
.
Build and Install using Makefile
Clone dfinance node repository to suitable place
1
git clone https://github.com/dfinance/dnode.git
Copied!
Build and install
dncli
as binary using Makefile
1
make install-dncli
Copied!
So after this command
dncli
will be available from console
1
dncli version --long
Copied!
Build without Makefile
And let's build
dncli
:
1
GO111MODULE=on go build -o dncli cmd/dncli/main.go
Copied!
Command must execute fine, after it you can run
dncli
:
1
./dncli version --long
Copied!
Previous
Introduction
Next
Meet the network using CLI
Last modified
1yr ago
Copy link
Contents
Installation using precompiled binaries
Configuration
Installation from sources
Build and Install using Makefile
Build without Makefile