Movement CLI
Install and use the Movement CLI
Movement CLI supports Aptos Move natively. Here are the instructions to install and use movement CLI.
Prerequisites
Install Rust and Cargo
Having Rust and Cargo is a prerequisite to installing the movement CLI.
The easiest way to get Cargo is to install the current stable release of Rust by using rustup. Installing Rust using rustup will also install cargo.
On Linux and macOS systems, this is done as follows:
curl https://sh.rustup.rs -sSf | shQuick Install Movement Precompiled Binaries
curl -LO https://github.com/movementlabsxyz/homebrew-movement-cli/releases/download/bypass-homebrew/movement-macos-arm64.tar.gz && mkdir -p temp_extract && tar -xzf movement-macos-arm64.tar.gz -C temp_extract && chmod +x temp_extract/movement && sudo mv temp_extract/movement /usr/local/bin/movement && rm -rf temp_extractInstall Movement CLI Manually
When developing on Movement, it is recommended to use the movement CLI.
Binary Install
git clone https://github.com/movementlabsxyz/aptos-core/ && cd aptos-corecargo build -p movementCopy movement into your bin or add it to your PATH depending on your system config.
For example, to copy movement to bin on Mac or Linux:
sudo cp target/debug/movement /usr/local/bin/Use Movement CLI
Movement CLI commands are analogous to those of Aptos CLI. Simply replace aptos with movement.
So aptos move build becomes movement move build.
For help within the CLI tool:
movement --helpor
movement <subcommand> --helpDevelopers who would like to contribute or read the source code, please see the Movement CLI crate.