-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: sxyazi <sxyazi@gmail.com>
- Loading branch information
1 parent
29af4e2
commit 6aff946
Showing
7 changed files
with
141 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
--- | ||
sidebar_position: 8 | ||
description: Data Distribution Service | ||
--- | ||
|
||
# CLI | ||
|
||
Yazi provides a command-line tool called `ya`, which is used to assist with tasks like plugin management, flavor management, DDS message publishing and subscribing, among other features. | ||
|
||
It is an essential component of Yazi. Most distributions include it by default when installing Yazi, but if yours doesn't, you'll need to build it from source. Just be sure that the versions of both `ya` and `yazi` are exactly the same. | ||
|
||
## Package Manager | ||
|
||
You can manage your plugins and flavors using the `ya pack` subcommand. For example, to install the plugin from https://github.com/owner/my-plugin.yazi, run: | ||
|
||
```sh | ||
ya pack -a owner/my-plugin | ||
``` | ||
|
||
`ya pack` also supports installing a subdirectory from a monorepo as a package. For example, to install the package from https://github.com/yazi-rs/plugins/tree/main/git.yazi, run: | ||
|
||
```sh | ||
ya pack -a yazi-rs/plugins:git | ||
``` | ||
|
||
and it will automatically clone them from GitHub, copy them to your plugins directory, and update the `package.toml` to lock their versions: | ||
|
||
```toml | ||
# ~/.config/yazi/package.toml | ||
[plugin] | ||
deps = [ | ||
{ use = "owner/my-plugin", rev = "0573024" }, | ||
{ use = "yazi-rs/plugins:git", rev = "9a1129c" } | ||
] | ||
``` | ||
|
||
To list all the plugins managed by `ya pack`: | ||
|
||
```sh | ||
ya pack -l | ||
``` | ||
|
||
To install all the plugins with locked versions from `package.toml` on a new system: | ||
|
||
```sh | ||
ya pack -i | ||
``` | ||
|
||
To upgrade all the plugins to the latest version: | ||
|
||
```sh | ||
ya pack -u | ||
``` | ||
|
||
If you want to pin a plugin to a specific version so that it doesn't get upgraded when running `ya pack -u`, add an `=` qualifier before the hash in `rev`: | ||
|
||
```diff | ||
[plugin] | ||
deps = [ | ||
- { use = "owner/my-plugin", rev = "9a1129c" } | ||
+ { use = "owner/my-plugin", rev = "=9a1129c" } | ||
] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_position: 8 | ||
sidebar_position: 9 | ||
description: A few helpful tips for using Yazi. | ||
--- | ||
|
||
|