Skip to content

Building the Lexe CLI from source

Lexe provides precompiled binaries for the Lexe CLI, but it can also be built from source if your platform is not supported or you prefer the extra security.

Steps

Install rustup:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

#  default host triple: default
#    default toolchain: stable
#              profile: default
# modify PATH variable: yes

Clone the lexe-public monorepo

git clone https://github.com/lexe-app/lexe-public
cd lexe-public

Build the CLI and copy it to somewhere in PATH, for example /usr/local/bin:

cargo build --release -p lexe-cli --bin lexe
sudo cp target/release/lexe /usr/local/bin

Run the CLI:

lexe --help

Update the CLI frequently to ensure your node receives the latest updates:

cd lexe-public
git pull
cargo build --release -p lexe-cli --bin lexe
sudo cp target/release/lexe /usr/local/bin

See the Quickstart section for remaining setup.