Download Aptos CLI Binaries
The aptos tool is a command line interface (CLI) for developing on the Aptos blockchain, debugging Move contracts, and conducting node operations. This document describes how to install the aptos CLI tool using precompiled binaries that reduce variables in setting up your environment. Also see:
- Installing the Aptos CLI for alternatives to using the precompiled binaries.
- Installing the Move Prover for an optional tool to validate your Move code.
- Using Aptos CLI for detailed instructions on employing the Aptos CLI.
Binary releases are recommended for most users, otherwise see Building Aptos From Source
Linux
Linux
These instructions have been tested on Ubuntu 20.04.
-
Go to the Aptos CLI release page.
-
Click the Assets expandable menu for the latest release.
-
You will see the zip files with the filename of the format:
aptos-cli-<version>-<platform>. These are the platform-specific pre-compiled binaries of the CLI. Download the zip file for your platform, dismissing any warnings. -
Unzip the downloaded file. This will extract the
aptosCLI binary file into your default downloads folder. -
Move this extracted
aptosbinary file into your preferred local folder.ヒントUpgrading? Remember to look in the default download folder When you update the CLI binary with the latest version, note that the newer version binary will be downloaded to your default Downloads folder. Remember to move this newer version binary from the Downloads folder to
~/bin/aptosfolder (overwriting the older version). -
Make this
~/bin/aptosan executable by running this command:chmod +x ~/bin/aptos.
-
Type
~/bin/aptos helpto read help instructions. -
Add
~/binto your path in your.bashrcor.zshrcfile for future use.
Windows 10, 11 and Windows Server 2022+
Windows 10, 11 and Windows Server 2022+
These instructions have been tested on Windows 11 and Windows Server 2022. Windows support is new and some features may be not complete. Open GitHub issues for bugs.
- Go to the Aptos CLI release page.
- Click the Assets expandable menu for the latest release.
- You will see the zip files with the filename of the format:
aptos-cli-<version>-<platform>. These are the platform-specific pre-compiled binaries of the CLI. Download the zip file for your platform, dismissing any warnings. - Unzip the downloaded file. This will extract the
aptosCLI binary file into your default downloads folder. For example, on Windows it is the\Users\user\Downloadsfolder. - Move this extracted
aptosbinary file into your preferred local folder.Upgrading? Remember to look in the default download folderWhen you update the CLI binary with the latest version, note that the newer version binary will be downloaded to your default Downloads folder. Remember to move this newer version binary from the Downloads folder to your preferred location.
- Open a PowerShell terminal via the windows start menu
- In the PowerShell terminal, you can get help instructions by running the command with help. For example
.\Downloads\aptos-cli-0.3.5-Windows-x86_64\aptos.exe helpto read help instructions.