Skip to content

An open-source cross-platform alternative to AirDrop

docs(cli): document Homebrew installation and updates (#3572)

Shlomo0c7af9c410db
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index d8db2252..93c0e23e 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -69,7 +69,8 @@ Git based distribution:
| [Winget][] | [Winget Repo][] | [@sitiom][], [@Tienisto], Github Actions |
| [Scoop][] | [Scoop Repo][] | [@sitiom][], [@Tienisto], Github Actions |
| [Chocolatey][] | [Chocolatey Repo][] | [@brogers5][] |
-| [Homebrew][] | [Homebrew Repo][] | [@Tienisto][], Github Actions |
+| [Homebrew][] | [Homebrew Repo][] | [@Tienisto][], Homebrew autobump |
+| Homebrew (`localsend-cli`) | [Homebrew CLI Repo][] | [@ShlomoCode][], Homebrew autobump |
| [Flathub][] | [Flathub Repo][] | [@proletarius101][], [@Tienisto][], Github Actions |
| [AUR][] | [AUR Repo][] | [@Nixuge][] |
| [Nixpkgs][] | [Nixpkgs Repo][] | [@sikmir][], [@linsui][] |
@@ -84,6 +85,7 @@ Git based distribution:
[chocolatey repo]: https://github.com/brogers5/chocolatey-package-localsend/tree/main
[homebrew]: https://formulae.brew.sh/cask/localsend
[homebrew repo]: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/l/localsend.rb
+[homebrew cli repo]: https://github.com/Homebrew/homebrew-core/blob/main/Formula/l/localsend-cli.rb
[flathub]: https://flathub.org/apps/details/org.localsend.localsend_app
[flathub repo]: https://github.com/flathub/org.localsend.localsend_app
[aur]: https://aur.archlinux.org/packages/localsend-bin
@@ -121,6 +123,7 @@ Binary distribution:
| DMG | [@Tienisto][] | |
[@Tienisto]: https://github.com/Tienisto
+[@ShlomoCode]: https://github.com/ShlomoCode
[@TheGB0077]: https://github.com/TheGB0077
[@sitiom]: https://github.com/sitiom
[@Nixuge]: https://github.com/Nixuge
diff --git a/README.md b/README.md
index 52679699..b708bc27 100644
--- a/README.md
+++ b/README.md
@@ -169,6 +169,21 @@ To compile LocalSend from the source code, follow these steps:
## Command Line Interface
The LocalSend CLI is a terminal client built on LocalSend Protocol v2.
+
+On macOS and Linux, install the CLI with [Homebrew](https://brew.sh):
+
+```shell
+brew update
+brew install localsend-cli
+```
+
+To upgrade an existing installation:
+
+```shell
+brew update
+brew upgrade localsend-cli
+```
+
Run `localsend-cli --help` to see every available option and hotkey.
Use the `send` command with one or more files, directories, or a mixture of both:
diff --git a/support/readme/README_ZH.md b/support/readme/README_ZH.md
index b031c57c..b0ed5ac6 100644
--- a/support/readme/README_ZH.md
+++ b/support/readme/README_ZH.md
@@ -157,6 +157,21 @@ LocalSend 使用安全通信协议,允许设备通过 REST API 进行通信。
## 命令行界面
LocalSend CLI 是一个基于 LocalSend 协议 v2 的终端客户端。
+
+在 macOS 和 Linux 上,使用 [Homebrew](https://brew.sh) 安装 CLI:
+
+```shell
+brew update
+brew install localsend-cli
+```
+
+如需升级已安装的 CLI:
+
+```shell
+brew update
+brew upgrade localsend-cli
+```
+
运行 `localsend-cli --help` 查看所有可用选项和快捷键。
使用 `send` 命令发送一个或多个文件、目录,或两者混合: