Skip to main content
This guide covers installation methods for the Sui CLI.

Prerequisites

  • Rust: Version 1.75.0 or later
  • Git: For cloning the repository
  • System dependencies: Build tools for your platform

Platform-Specific Dependencies

Install Rust

If you don’t have Rust installed:
Verify installation:

Installation Methods

Install the latest stable release from crates.io:
This installs the 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:
You should see output like:

First-Time Setup

After installation, initialize the Sui client:
This creates the default configuration directory at ~/.sui/sui_config/ and prompts you to:
  1. Select a network environment (mainnet, testnet, devnet, or local)
  2. 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:
To remove configuration and data:

Troubleshooting

Command Not Found

If sui command is not found, ensure ~/.cargo/bin is in your PATH:
For zsh:

Build Failures

  1. Ensure Rust is up to date:
  2. Clean build artifacts:
  3. Retry installation with verbose output:

OpenSSL Errors (Linux)

If you encounter OpenSSL-related errors:

Next Steps