Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Install Move-Stylus CLI

Prerequisites

To install the Move-Stylus CLI, you need to have Rust and git installed on your machine.

Installation

For the moment, the only way to install the Stylus CLI is by building it from source. You can do this by cloning the Stylus repository and using Cargo to build and install the CLI.

Install cargo-stylus

RUSTFLAGS="-C link-args=-rdynamic" cargo install --force --version 0.6.3 cargo-stylus

Cloning the Repository

git clone https://github.com/rather-labs/move-stylus/

Building and Installing the compiler and CLI

cd move-stylus
cargo install --locked --path crates/move-cli

Verify Installation

After the installation is complete, you can verify that the Move-Stylus CLI is installed correctly by checking its version:

move-stylus --version

You should see output similar to:

move-stylus 0.1.0

Note

You may need to restart your terminal or add Cargo’s bin directory to your PATH if the command is not found. The default location for Cargo’s bin directory is $HOME/.cargo/bin.