Package Managers
- Cargo (Rust)
- Homebrew (macOS/Linux)
- Arch Linux
- Nix/NixOS
- Scoop (Windows)
- Snap
Install via Cargo (Rust’s package manager):Or install a specific version from crates.io:
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.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 managerya- 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 inCargo.toml:
Platform-Specific Notes
macOS
macOS
Linux
Linux
Distribution PackagesMost major distributions have Yazi in their repositories:Requirements:
- glibc 2.31+ (or musl)
- Terminal with true color support
file- Better file type detectionffmpegthumbnailer- Video thumbnailsunar- Archive previewjq- JSON previewfd- Fast file searchripgrep- Fast content searchfzf- Fuzzy finder integrationzoxide- Directory jumping
Windows
Windows
Scoop (Recommended)Requirements:
- Windows 10+ (build 18363 or later for best results)
- Windows Terminal (recommended) or another terminal with ANSI support
- Image preview support is limited compared to Unix systems
- Use Windows Terminal for the best experience
- Some Unix-specific features may not be available
Android (Termux)
Android (Termux)
Install via Termux package manager:Or build from source:
Shell Integration
Yazi includes a CLI tool (ya) that supports shell completions.
- Bash
- Zsh
- Fish
- Nushell
- PowerShell
Add to your
~/.bashrc:Verify Installation
After installation, verify that Yazi is working correctly:1
Check Version
2
Check CLI Tool
3
Launch Yazi
q to quit.Installation Complete! You’re ready to start using Yazi. Continue to the Quickstart Guide to learn the basics.
Troubleshooting
Command not found
Command not found
If you get a “command not found” error:
- Make sure the installation completed successfully
- Check that the binary is in your PATH:
- If installed via cargo, add
~/.cargo/binto your PATH:
Colors not displaying correctly
Colors not displaying correctly
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
COLORTERMenvironment variable:
Image previews not working
Image previews not working
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)
Build errors
Build errors
Common build issues:
-
Rust version too old: Update Rust:
-
Missing system dependencies: Install build essentials:
-
Workspace build issues: Always use
--lockedand 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