Install Sui CLI
Let's install the Sui CLI (command-line tools). It's not difficult—just follow the steps.
What is Sui CLI?
Sui CLI is a tool for interacting with the Sui blockchain from your terminal.
- Build and deploy Move contracts
- Send transactions
- Inspect objects
- Get test tokens from the Faucet
It supports all these development tasks.
Install Suiup
We'll use Suiup, the official Sui CLI version manager. It works like rustup for Rust, making it easy to manage multiple versions.
macOS / Linux
-
Open your terminal and run the following command
curl -sSfL https://raw.githubusercontent.com/MystenLabs/suiup/main/install.sh | sh -
Close and reopen your terminal
(If
suiupis not found, check that~/.local/binis in your PATH) -
Verify the installation
suiup --version
Windows (PowerShell)
On Windows, you download suiup.exe from Releases and place it in a folder that's in your PATH.
-
Download
suiupGo to Suiup Releases and download the Windows zip file. Choose the correct version for your CPU (most PCs are
x86_64, some like Surface arearm64).- Example:
suiup-Windows-msvc-x86_64.zip/suiup-Windows-msvc-arm64.zip
- Example:
-
Extract the zip and get
suiup.exe -
Create a
binfolderRun the following command.
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\bin" -
Move
suiup.exetobin -
Add to PATH
Run the following command.
$userPath = [Environment]::GetEnvironmentVariable("Path", "User")
if (-not $userPath) { $userPath = "" }
if ($userPath -notlike "*$env:USERPROFILE\bin*") {
[Environment]::SetEnvironmentVariable("Path", "$userPath;$env:USERPROFILE\bin", "User")
} -
Close and reopen PowerShell
-
Verify the installation
suiup --version
Install Sui CLI
Once Suiup is ready, install Sui CLI. Since we're using Devnet in this tutorial, install the Devnet version.
suiup install sui@devnet -y
sui@devnet— For development (used in this tutorial)sui@testnet— For testingsui@mainnet— For production
Note: If you omit the version like suiup install sui, testnet is selected by default.
Verify Installation
After installation, check the version.
sui --version
If you see a version number, you're all set.
sui 1.x.x-xxxxxxx
You can also check installed versions with suiup show.
suiup show
If you see command not found, try closing and reopening your terminal. If that doesn't work, check your path settings.
What You Did
- Understood what Sui CLI does
- Installed Suiup
- Installed Sui CLI (Devnet version)
- Verified installation with
sui --version