Install the Aptos CLI on Linux
Install via Python Script
Ensure you have Python 3.6+ installed by running python3 --version.
python3 --version.In the terminal, use one of the following commands:
curl -fsSL "https://aptos.dev/scripts/install_cli.py" | python3wget -qO- "https://aptos.dev/scripts/install_cli.py" | python3(Optional) It can be helpful to add the Aptos CLI to a folder in your PATH, or to add it to your PATH directly.
Verify the script is installed by opening a new terminal and running aptos help
aptos helpInstall via Pre-Compiled Binaries (Backup Method)
Go to the Aptos CLI release page.
Click the “Assets” expandable menu for the latest release to see the pre-compiled binaries.
Download the zip file for Linux.
Unzip the downloaded file.
Move the extracted Aptos binary file into your preferred folder.
Open a terminal and navigate to your preferred folder.
Make ~/aptos an executable by running chmod +x ~/aptos.
~/aptos an executable by running chmod +x ~/aptos.Verify that this installed version works by running ~/aptos help.
~/aptos help.(Optional) It can be helpful to add the Aptos CLI to a folder in your PATH, or to add it to your PATH directly.
Last updated