Install Specific Aptos CLI Versions (Advanced)
Using existing releases
Section titled “Using existing releases”Using the Aptos CLI script
Section titled “Using the Aptos CLI script”If you are already using the installation script for Mac and Linux, you can install a specific version of the Aptos CLI using the following command:
curl -fsSL "https://aptos.dev/scripts/install_cli.sh" | sh -s -- --cli-version 7.9.0Using asdf
Section titled “Using asdf”If you are already using asdf, you can install a specific version of the Aptos CLI using the following command:
asdf install aptos 7.9.0Using mise
Section titled “Using mise”If you are already using mise, you can install a specific version of the Aptos CLI using the following command:
mise install aptos@7.9.0Installation from source code
Section titled “Installation from source code”If you need a specific version of the Aptos CLI, you can build it directly from the Aptos source code. This installation method is primarily used to interact with specific features on Devnet which may not have made it to Testnet / Mainnet yet. You may also want to follow these steps if you are running an architecture which does not play well with the existing releases / pre-compiled binaries.
If you do not need this advanced method, you can find the normal install steps here.
Install on macOS / Linux
Section titled “Install on macOS / Linux”-
Checkout the Aptos source code.
Terminal window git clone https://github.com/aptos-labs/aptos-core.git -
Ensure you have cargo installed.
-
Build the Aptos CLI:
Terminal window cargo build --package aptos --profile cliThe binary will be available at
target/cli/aptos. -
(Optional) Move this executable to a place in your PATH.
-
Verify the installation worked.
Terminal window target/cli/aptos helpThese help instructions also serve as a useful detailed guide for specific commands.
Install on Windows
Section titled “Install on Windows”-
Checkout the Aptos source code.
Terminal window git clone https://github.com/aptos-labs/aptos-core.git -
Ensure you have cargo installed.
-
Build the Aptos CLI.
Terminal window cargo build --package aptos --profile cliThe binary will be available at
target\cli\aptos.exe. -
(Optional) Move this executable to a place in your PATH.
-
Verify the installation worked.
Terminal window target\cli\aptos.exe helpThese help instructions also serve as a useful detailed guide for specific commands.