-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add experimental self-updating support (#223)
* Add experimental self-updating support * '3rd party' -> 'third party' * Remove hidden commands from REPL completion * Disable non-pyinstaller updaters
- Loading branch information
Showing
10 changed files
with
713 additions
and
42 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
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,2 @@ | ||
!!! note "PyPI package name" | ||
We are in the process of acquiring the PyPI project `zabbix-cli`. Until then, installation must be done via the alias `zabbix-cli-uio`. |
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,17 +1,49 @@ | ||
=== "uv" | ||
|
||
```bash | ||
uv tool upgrade zabbix-cli-uio | ||
``` | ||
|
||
=== "pipx" | ||
|
||
```bash | ||
pipx upgrade zabbix-cli | ||
pipx upgrade zabbix-cli-uio | ||
``` | ||
|
||
=== "pip" | ||
|
||
```bash | ||
pip install --upgrade zabbix-cli | ||
pip install --upgrade zabbix-cli-uio | ||
``` | ||
|
||
=== "Homebrew" | ||
|
||
```bash | ||
brew upgrade zabbix-cli | ||
``` | ||
|
||
=== "Binary (Automatic)" | ||
|
||
Zabbix-cli has experimental support for updating itself. You can use the `zabbix-cli update` command to download and update the application to the latest version. | ||
|
||
!!! danger "Write access required" | ||
The application must have write access to itself and the directory it resides in. | ||
|
||
```bash | ||
zabbix-cli update | ||
``` | ||
|
||
=== "Binary (Manual)" | ||
|
||
The latest binary can be downloaded from [GitHub releases page](https://github.com/unioslo/zabbix-cli/releases). Download the binary for your platform and replace the current one. | ||
|
||
To download the latest Linux binary and replace the current one: | ||
|
||
```bash | ||
curl -L -o zabbix-cli https://github.com/unioslo/zabbix-cli/releases/latest/download/zabbix-cli-ubuntu-latest-3.12 | ||
|
||
chmod +x zabbix-cli | ||
|
||
# Replace destination with the path to the current binary | ||
mv zabbix-cli /usr/local/bin/zabbix-cli | ||
``` |
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
Oops, something went wrong.