Movement CLI
Movement CLI supports Aptos Move natively. Here are the instructions to install and use Movement CLI:
Install Movement CLI
When developing on Movement, it is recommended to use the movement
CLI, or aptos
CLI version ≤ 3.5.0
- MacOs
- Linux
Options 1 - Binary Install
-
git clone https://github.com/movementlabsxyz/aptos-core/ && cd aptos-core
-
cargo build -p movement
(generates thetarget/debug/movement
executable) -
Copy
movement
into yourbin
or add it to yourPATH
depending on your system config.
For example, to copy movement
to bin
on Mac or Linux:
sudo cp target/debug/movement /usr/local/bin/
Options 2 - Install through Brew
- Make sure you have
homebrew
installed - If not, you need to install through Homebrew or you can install it by:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install Aptos CLI
brew install aptos
Binary Install
-
git clone https://github.com/movementlabsxyz/aptos-core/ && cd aptos-core
-
cargo build -p movement
(generates thetarget/debug/movement
executable) -
Copy
movement
into yourbin
or add it to yourPATH
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 --help
or
movement <subcommand> --help
Developers who would like to contribute or read the source code, please see the Movement CLI crate.