← 返回命令列表

Linux command

basher 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Install a package

basher install [username/repository]

List installed packages

basher list

Uninstall a package

basher uninstall [username/repository]

Update a package

basher upgrade [username/repository]

Update all packages

basher upgrade --all

Link a local package

basher link [path/to/directory] [package_name]

Initialize basher

basher init

Show package information

basher package-path [username/repository]

说明

basher is a package manager for shell scripts hosted on GitHub and other git repositories. It installs shell scripts and makes their commands available in your PATH without manual downloading or symlinking. Packages are installed to ~/.basher/cellar and linked to ~/.basher/bin. The package format expects executables in bin/ or the root directory, with optional man pages and completions. Basher supports packages from GitHub, GitLab, Bitbucket, or any git URL. It handles dependencies declared in package.json and can work with bash, zsh, and other shells.

参数

install _package_
Install a package from repository.
uninstall _package_
Remove an installed package.
list
Show all installed packages.
upgrade _package_
Update a specific package.
upgrade --all
Update all installed packages.
link _directory_ _name_
Link local directory as package.
unlink _name_
Remove linked package.
init
Output shell initialization code.
commands _package_
List commands provided by a package.
package-path _package_
Show installation path.
outdated
List packages with available updates.

FAQ

What is the basher command used for?

basher is a package manager for shell scripts hosted on GitHub and other git repositories. It installs shell scripts and makes their commands available in your PATH without manual downloading or symlinking. Packages are installed to ~/.basher/cellar and linked to ~/.basher/bin. The package format expects executables in bin/ or the root directory, with optional man pages and completions. Basher supports packages from GitHub, GitLab, Bitbucket, or any git URL. It handles dependencies declared in package.json and can work with bash, zsh, and other shells.

How do I run a basic basher example?

Run `basher install [username/repository]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does install _package_ do in basher?

Install a package from repository.