Skip to main content

Overview

yazi is the main command to launch the Yazi terminal file manager. It provides a blazing fast file browsing and management experience built in Rust.

Synopsis

Arguments

path
Set the current working entry. You can specify 1 to 9 paths to open in multiple tabs.

Options

path
Write the current working directory path to this file on exit.This is useful for shell integration, allowing your shell to change to the directory you navigated to in Yazi.
path
Write the selected files to this file when the open event is fired.This allows Yazi to be used as a file picker for other applications.
boolean
default:"false"
Clear the cache directory before starting.Yazi caches previews and metadata. Use this option to clear stale cache data.
number
Use the specified client ID. Must be a globally unique number.This allows running multiple Yazi instances that can communicate with each other via DDS (Data Distribution Service).
string
Report the specified local events to stdout.Events should be comma-separated. This is useful for integrating Yazi with other tools.
string
Report the specified remote events to stdout.Events should be comma-separated. Remote events are those received from other Yazi instances via DDS.
boolean
default:"false"
Print debug information.Enables debug logging for troubleshooting.
boolean
default:"false"
Print version information and exit.

Examples

Basic Usage

Shell Integration

File Chooser Mode

Multiple Instances

Environment Variables

Yazi respects several environment variables:
  • YAZI_ID / YAZI_PID - Set automatically, contains the instance ID for IPC
  • YAZI_FILE_ONE - Path to the first selected file
  • Various XDG_* variables for config/cache/state directories

Exit Codes

  • 0 - Success
  • 1 - Error occurred

See Also

  • ya - CLI utility for interacting with Yazi instances
  • emit - Send commands to running instances
  • pub-sub - Pub/sub messaging between instances
  • package - Package management commands