Skip to main content
Yazi is available through multiple package managers and can also be built from source. Choose the installation method that works best for your platform.

Package Managers

Install via Cargo (Rust’s package manager):
Due to Cargo’s limitations, you must use cargo install --locked --git (not cargo install yazi-fm) to build from the repository. The crates on crates.io require cargo install --force yazi-build due to workspace constraints.
Or install a specific version from crates.io:

Building from Source

Yazi is written in Rust. To build from source, you’ll need the Rust toolchain installed.
1

Install Rust

If you don’t have Rust installed, get it from rustup.rs:
2

Clone the Repository

Clone the Yazi repository from GitHub:
3

Build the Project

Build both the file manager and CLI tool:
The compiled binaries will be in target/release/:
  • yazi - The file manager
  • ya - The CLI tool
4

Install the Binaries

Copy the binaries to your system:
Or install directly with cargo:

Build Profiles

The project includes several build profiles in Cargo.toml:
To build with a specific profile:

Platform-Specific Notes

Homebrew (Recommended)
Requirements:
  • macOS 10.15+ (Catalina or later)
  • Terminal with true color support
Terminal Recommendations:
  • kitty - Best image preview support (Kitty protocol)
  • iTerm2 - Built-in inline images protocol
  • WezTerm - Cross-platform with image support
Distribution PackagesMost major distributions have Yazi in their repositories:
Requirements:
  • glibc 2.31+ (or musl)
  • Terminal with true color support
Optional Dependencies:
  • file - Better file type detection
  • ffmpegthumbnailer - Video thumbnails
  • unar - Archive preview
  • jq - JSON preview
  • fd - Fast file search
  • ripgrep - Fast content search
  • fzf - Fuzzy finder integration
  • zoxide - Directory jumping
Scoop (Recommended)
Requirements:
  • Windows 10+ (build 18363 or later for best results)
  • Windows Terminal (recommended) or another terminal with ANSI support
Notes:
  • Image preview support is limited compared to Unix systems
  • Use Windows Terminal for the best experience
  • Some Unix-specific features may not be available
Install via Termux package manager:
Or build from source:

Shell Integration

Yazi includes a CLI tool (ya) that supports shell completions.
Add to your ~/.bashrc:

Verify Installation

After installation, verify that Yazi is working correctly:
1

Check Version

You should see output like:
2

Check CLI Tool

Verify the CLI tool is also installed.
3

Launch Yazi

Yazi should open in your current directory. Press q to quit.
Installation Complete! You’re ready to start using Yazi. Continue to the Quickstart Guide to learn the basics.

Troubleshooting

If you get a “command not found” error:
  1. Make sure the installation completed successfully
  2. Check that the binary is in your PATH:
  3. If installed via cargo, add ~/.cargo/bin to your PATH:
Yazi requires a terminal with true color (24-bit color) support.Test your terminal:
It should output truecolor or 24bit. If not:
  • Use a modern terminal emulator (kitty, iTerm2, WezTerm, Windows Terminal)
  • Set the COLORTERM environment variable:
Image preview support depends on your terminal. See the Image Preview documentation for detailed setup instructions.Quick check - your terminal protocol:
  • kitty: Full support built-in
  • iTerm2/WezTerm: Full support built-in
  • Foot/Windows Terminal: Sixel support built-in
  • Other terminals: Use Überzug++ (X11/Wayland) or Chafa (fallback)
Common build issues:
  1. Rust version too old: Update Rust:
  2. Missing system dependencies: Install build essentials:
  3. Workspace build issues: Always use --locked and build from git:

Next Steps

Quickstart Guide

Learn the basics in under 2 minutes

Configuration

Customize Yazi to match your workflow

Keybindings

Learn all keyboard shortcuts

Image Preview

Set up image previews for your terminal