# 使用 Homebrew, apk 安装 gotify

查看 gotify 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:gotify
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gotify
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add gotify
```

  证据: Alpine Linux edge package indexes: gotify from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

## 软件包事实

- **软件包键:** brew:gotify
- **软件包管理器:** Homebrew
- **版本:** 2.4.0
- **来源摘要:** Command-line interface for pushing messages to gotify/server
- **主页:** <https://github.com/gotify/cli>
- **仓库:** <https://github.com/gotify/cli>
- **最后更新:** 2026-07-29T16:05:04+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gotify (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.4.0
## 项目历史与用法

Gotify-CLI is the official command-line companion for gotify/server, a self-hosted push-notification system. It lets shell scripts and terminal users push messages to a Gotify server without writing raw HTTP requests.

### 项目历史

The gotify/server repository began in January 2018 and published its initial 1.0.0 release in February 2018. The gotify/cli repository followed in November 2018, with v1.2.0 published days later, giving the Gotify ecosystem a dedicated terminal client.

The CLI README describes a focused feature set: storing the server URL and application token in a config file, an initialization wizard, piping support, simple push commands, and a watch command that sends notifications when command output changes.

### 采用历史

Gotify-CLI adoption follows the self-hosted-notification audience for gotify/server. The README documents manual binary installation, Arch AUR packaging, and Homebrew installation, while also noting that curl or HTTPie can push messages directly for users who do not need the dedicated client.

### 使用方式

Users initialize the CLI with gotify init, then send messages with gotify push, pipe standard input into push, or use gotify watch around another command. The config stores the Gotify URL and an application token, so scripts can push notifications without repeating credentials on every command line.

Release notes show maintenance around operational details such as dependency updates, environment-token overrides, and TLS trust configuration. That fits the CLI's role in scripts, cron jobs, and local monitoring workflows where reliability and noninteractive operation matter.

### 为什么软件包爱好者会关心

For package nerds, Gotify-CLI is a tidy example of a self-hosted service exposing a first-party CLI while still keeping the HTTP API simple enough for curl. Its package value is convenience, credential storage, and script ergonomics rather than protocol exclusivity.

### 时间线

- 2018: gotify/server repository created.
- 2018: gotify/server v1.0.0 released.
- 2018: gotify/cli repository created and v1.2.0 released.
- 2019: gotify/cli v2.0.0 and v2.1.x releases published.
- 2023: v2.2.3 added GOTIFY_TOKEN override support and fixed a no-config push panic.
- 2024: v2.3.2 added SSL_CERT_FILE support for TLS verification.

### Related projects

- gotify/server is the required backend service for Gotify-CLI.
- curl and HTTPie are documented alternatives for direct HTTP message submission.

### 来源

- <https://formulae.brew.sh/formula/gotify>
- <https://github.com/gotify/cli>
- <https://github.com/gotify/cli#readme>
- <https://github.com/gotify/cli/releases>
- <https://github.com/gotify/server>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: $XDG_CONFIG_HOME/gotify/cli.json, ~/.config/gotify/cli.json, ~/.gotify/cli.json

## Credential files

- Unix: $XDG_CONFIG_HOME/gotify/cli.json, ~/.config/gotify/cli.json, ~/.gotify/cli.json
## 其他软件包管理器记录

- apk - gotify - 2.9.1-r4: normalized package name match | Alpine Linux edge package indexes: gotify from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A simple server for sending and receiving messages in real-time per WebSocket | https://gotify.net
- apk - gotify-openrc - 2.9.1-r4: normalized package name match | Alpine Linux edge package indexes: gotify-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A simple server for sending and receiving messages in real-time per WebSocket (OpenRC init scripts) | https://gotify.net


## Combined YAML source

View the package source record on GitHub. [combined/gotify.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gotify.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
