Prerequisites
Before installing Sui, ensure you have the following:Operating System
Operating System
- Linux (Ubuntu 20.04+, Debian 11+, or equivalent)
- macOS (12+, both Intel and Apple Silicon)
- Windows (via WSL2)
Development Tools
Development Tools
- Rust toolchain (1.75.0 or later)
- Git for version control
- Build tools (gcc, cmake, libssl-dev)
Recommended
Recommended
- VS Code with Move extension
- 16GB+ RAM for building from source
- 20GB+ disk space for dependencies and builds
Install Rust
Sui is written in Rust, so you’ll need the Rust toolchain:Sui requires Rust 1.75.0 or later. Update if needed:
rustup update stableInstall System Dependencies
- Ubuntu/Debian
- macOS
- Windows (WSL2)
Install Sui from Binaries
The fastest way to get started:Download from GitHub Releases
Visit the Sui releases page and download the appropriate binary for your platform.
- Linux
- macOS
Install Sui from Source
For the latest features or development:Install Using Cargo
Install directly from crates.io:Alternative Installation Methods
Homebrew (macOS)
Chocolatey (Windows)
These may not always have the latest version. Check with
sui --version.Initial Configuration
After installation, set up your Sui environment:Initialize Sui Configuration
- Create
~/.sui/sui_config/directory - Generate a new keypair
- Create a client configuration file
- Set up environment for Sui devnet
Network Configuration
Configure connections to different Sui networks:- Devnet
- Testnet
- Mainnet
- Local Network
Install IDE Support
VS Code
Install the Move language extension:Other IDEs
- Emacs: move-mode
- Vim/Neovim: Use LSP client with move-analyzer
Verify Complete Installation
Run a comprehensive check:Troubleshooting
Command not found: sui
Command not found: sui
Solution: Add Cargo bin directory to PATH:
Build fails with linker errors
Build fails with linker errors
Solution: Install required development libraries:
Ubuntu/Debian
macOS
Out of memory during build
Out of memory during build
Solution:
- Close other applications
- Use
cargo buildinstead ofcargo install(slower but less memory) - Add swap space (Linux)
- Use pre-built binaries instead
Faucet request fails
Faucet request fails
Solution:
- Check network connection:
sui client envs - Try web faucet: https://faucet.devnet.sui.io/
- Switch to a different network:
sui client switch --env testnet
SSL/TLS errors
SSL/TLS errors
Solution: Update certificates:
Ubuntu/Debian
macOS
Update Sui
To update to the latest version:- From Source
- Using Cargo
- Homebrew
Next Steps
Quickstart Tutorial
Build and deploy your first Move package
Your First Move Package
Learn Move programming basics
CLI Reference
Explore all CLI commands
Setup Dev Environment
Configure your complete dev environment