docs: diem cli installation

This commit is contained in:
Mohamed Sohail 2021-11-18 11:10:05 +03:00
parent a68b4ab67d
commit 7ef16b3229
Signed by: kamikazechaser
GPG Key ID: 7DD45520C01CD85D

View File

@ -11,6 +11,7 @@
sudo apt install tmux git make jq --yes sudo apt install tmux git make jq --yes
# download latest release # download latest release
mkdir libra-release && cd libra-release
curl -sL https://api.github.com/repos/OLSF/libra/releases/latest | jq -r '.assets[].browser_download_url' | wget -i - curl -sL https://api.github.com/repos/OLSF/libra/releases/latest | jq -r '.assets[].browser_download_url' | wget -i -
# make binaries executable # make binaries executable
@ -20,7 +21,7 @@ chmod +x ...
tar -xf web-monitor.tar.gz --directory ~/.0L/web-monitor/ tar -xf web-monitor.tar.gz --directory ~/.0L/web-monitor/
# add to .bashrc # add to .bashrc
export PATH=$HOME/libra:$PATH export PATH=$HOME/libra-release:$PATH
source ~/.bashrc source ~/.bashrc
# --------------------------- # ---------------------------
@ -60,7 +61,7 @@ systemctl --user enable tower.service
# Enable systemd persistence # Enable systemd persistence
loginctl enable-linger deployer loginctl enable-linger deployer
# see backlog submmmon patch below # see backlog submission patch below
``` ```
### Debug ### Debug
@ -70,7 +71,13 @@ loginctl enable-linger deployer
tail -n 100 -f ~/logs/node.log tail -n 100 -f ~/logs/node.log
tail -n 100 -f ~/logs/tower.log tail -n 100 -f ~/logs/tower.log
# diem cli # install diem cli
cd libra
git checkout master
make client
mv target/debug/cli ~/libra-release/diem-cli
# dm commands
# check vdf proof height # check vdf proof height
node ms $ADDRESS node ms $ADDRESS
@ -94,4 +101,10 @@ git checkout submit-initial-vdf-proof
make deps make deps
# Build the source and install binaries # Build the source and install binaries
make bins make bins
mv ~/libra-release/tower ~/libra-release/towerold
mv target/release/tower ~/libra-release/tower
tmux new -s tower
tower start
``` ```