← 返回命令列表

Linux command

ya 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Install a plugin

ya pkg add [owner/repo]

Update all installed packages

ya pkg upgrade

Delete a package

ya pkg delete [owner/repo]

List installed packages

ya pkg list

Install packages from package.toml

ya pkg install

Publish a message

ya pub [receiver] [args]

Emit a command

ya emit [command] [args]

Show version

ya --version

说明

ya (yazi-cli) is the command-line companion tool for Yazi, a fast terminal file manager written in Rust. It provides package management for plugins and themes, and enables communication with running Yazi instances. The package manager downloads plugins and flavors from GitHub repositories. Packages are specified in owner/repo format (e.g., yazi-rs/plugins). Installed packages are tracked in ~/.config/yazi/package.toml. The pub and emit commands allow external scripts to interact with a running Yazi instance, enabling automation and integration with other tools. These verify that the receiver exists and has the necessary capabilities. ya is installed alongside the main yazi file manager binary.

FAQ

What is the ya command used for?

ya (yazi-cli) is the command-line companion tool for Yazi, a fast terminal file manager written in Rust. It provides package management for plugins and themes, and enables communication with running Yazi instances. The package manager downloads plugins and flavors from GitHub repositories. Packages are specified in owner/repo format (e.g., yazi-rs/plugins). Installed packages are tracked in ~/.config/yazi/package.toml. The pub and emit commands allow external scripts to interact with a running Yazi instance, enabling automation and integration with other tools. These verify that the receiver exists and has the necessary capabilities. ya is installed alongside the main yazi file manager binary.

How do I run a basic ya example?

Run `ya pkg add [owner/repo]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more ya examples?

This page includes 8 examples for ya, plus related commands for nearby Linux tasks.