Skip to main content

Prerequisites

Before installing Sui, ensure you have the following:
  • Linux (Ubuntu 20.04+, Debian 11+, or equivalent)
  • macOS (12+, both Intel and Apple Silicon)
  • Windows (via WSL2)
  • Rust toolchain (1.75.0 or later)
  • Git for version control
  • Build tools (gcc, cmake, libssl-dev)

Install Rust

Sui is written in Rust, so you’ll need the Rust toolchain:
Verify installation:
Sui requires Rust 1.75.0 or later. Update if needed: rustup update stable

Install System Dependencies

Install Sui from Binaries

The fastest way to get started:
1

Download from GitHub Releases

Visit the Sui releases page and download the appropriate binary for your platform.
2

Verify Installation

Expected output:

Install Sui from Source

For the latest features or development:
1

Clone the Repository

For a specific version: git checkout mainnet-v1.68.0
2

Build the Sui Binary

Or build from local checkout:
Building from source can take 15-30 minutes and requires significant RAM.
3

Verify Installation

Install Using Cargo

Install directly from crates.io:
Add --branch testnet or --branch devnet to install network-specific versions.

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:
1

Initialize Sui Configuration

On first run, this will:
  • Create ~/.sui/sui_config/ directory
  • Generate a new keypair
  • Create a client configuration file
  • Set up environment for Sui devnet
2

Check Active Address

Output:
3

Get Test Tokens (Devnet)

This will request test SUI tokens from the devnet faucet.
4

Check Balance

Expected output:

Network Configuration

Configure connections to different Sui networks:
View configured environments:

Install IDE Support

VS Code

Install the Move language extension:
1

Install Extension

Search for “move-analyzer” in VS Code extensions marketplace and install.
2

Configure Move Analyzer

The extension uses the Move analyzer binary. Install it:
3

Enable in VS Code

Create .vscode/settings.json in your project:

Other IDEs

  • Emacs: move-mode
  • Vim/Neovim: Use LSP client with move-analyzer

Verify Complete Installation

Run a comprehensive check:
If all commands execute successfully, you’re ready to start developing!

Troubleshooting

Solution: Add Cargo bin directory to PATH:
Solution: Install required development libraries:
Ubuntu/Debian
macOS
Solution:
  • Close other applications
  • Use cargo build instead of cargo install (slower but less memory)
  • Add swap space (Linux)
  • Use pre-built binaries instead
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
Solution: Update certificates:
Ubuntu/Debian
macOS

Update Sui

To update to the latest version:

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