Prerequisites
- Rust: Version 1.75.0 or later
- Git: For cloning the repository
- System dependencies: Build tools for your platform
Platform-Specific Dependencies
- macOS
- Linux (Ubuntu/Debian)
- Linux (Fedora/RHEL)
Install Rust
If you don’t have Rust installed:Installation Methods
Method 1: Install from Crates.io (Recommended)
Install the latest stable release from crates.io:sui binary to ~/.cargo/bin/.
Method 2: Build from Source
For the latest development version:Method 3: Install Specific Version
To install a specific version:Verify Installation
Check that the CLI is installed correctly:First-Time Setup
After installation, initialize the Sui client:~/.sui/sui_config/ and prompts you to:
- Select a network environment (mainnet, testnet, devnet, or local)
- Generate a new keypair
Manual Configuration
To set up without prompts:Network Environments
Add network environments:Update the CLI
From Crates.io
From Source
Uninstall
To remove the Sui CLI:Troubleshooting
Command Not Found
Ifsui command is not found, ensure ~/.cargo/bin is in your PATH:
Build Failures
-
Ensure Rust is up to date:
-
Clean build artifacts:
-
Retry installation with verbose output:
OpenSSL Errors (Linux)
If you encounter OpenSSL-related errors:Next Steps
- Create your first address: sui client new-address
- Build a Move package: sui move
- Start a local network: sui start