# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gotify>
- **版本:** 2.4.0
- **来源摘要:** Command-line interface for pushing messages to gotify/server
- **主页:** <https://github.com/gotify/cli>
- **仓库:** <https://github.com/gotify/cli>
- **许可证:** MIT
- **源码归档:** <https://github.com/gotify/cli/archive/refs/tags/v2.4.0.tar.gz>
- **最后更新:** 2026-07-29T16:05:04+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- gotify (cli)
- gotify (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.4.0
- 管理器更新时间: 2026-07-29
- 本地数据: OK
- 上游仓库: https://github.com/gotify/cli
- 检测到的最新版本: v2.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
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gotify
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- 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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [concord](https://pkg.so/zh-hans/brew/concord/) - Shares pkgdb curated category or tags: cli, messaging, productivity.
- [gurk](https://pkg.so/zh-hans/brew/gurk/) - Shares pkgdb curated category or tags: cli, messaging, productivity.
- [noti](https://pkg.so/zh-hans/brew/noti/) - Shares pkgdb curated category or tags: cli, notifications, productivity.
- [gitter-cli](https://pkg.so/zh-hans/brew/gitter-cli/) - Shares pkgdb curated category or tags: cli, messaging, productivity.
- [notify](https://pkg.so/zh-hans/brew/notify/) - Shares pkgdb curated category or tags: cli, notifications, productivity.
- [tmux](https://pkg.so/zh-hans/brew/tmux/) - Shares pkgdb curated category or tags: cli, productivity.
- [vim](https://pkg.so/zh-hans/brew/vim/) - Shares pkgdb curated category or tags: cli, productivity.
- [himalaya](https://pkg.so/zh-hans/brew/himalaya/) - Shares pkgdb curated category or tags: cli, productivity.
- [todoist-cli](https://pkg.so/zh-hans/brew/todoist-cli/) - Local package facts share a topical domain. Shared terms: cli, command-line, interface, line, productivity.
- [growthbook](https://pkg.so/zh-hans/npm/growthbook/) - Local package facts share a topical domain. Shared terms: cli, command-line, interface, line, productivity.

## 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
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
