# 使用 Homebrew, MacPorts, scoop 安装 leaf

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

## 安装

```sh
sudo av install brew:leaf
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install leaf
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install leaf
```

  证据: MacPorts ports tree: sysutils/leaf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/leaf
```

  证据: Scoop official bucket manifest trees: bucket/leaf.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:leaf
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/leaf>
- **版本:** 1.3.0
- **来源摘要:** General purpose reloader for all projects
- **主页:** <https://pkg.go.dev/github.com/vrongmeal/leaf>
- **仓库:** <https://github.com/vrongmeal/leaf>
- **上游文档:** <https://github.com/vrongmeal/leaf#readme>
- **许可证:** MIT
- **源码归档:** <https://github.com/vrongmeal/leaf/archive/refs/tags/v1.3.0.tar.gz>
- **最后更新:** 2026-05-23T01:03:32+09:00
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- leaf (cli)
- leaf (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-07-25
- 管理器版本: 1.3.0
- 管理器更新时间: 2026-05-23
- 本地数据: OK
- 上游仓库: https://github.com/vrongmeal/leaf
- 检测到的最新版本: v1.3.0 (当前)
## 项目历史与用法

leaf is a small Go hot-reloader for command-line development workflows. It watches a project directory and runs configured commands when files change, making it a lightweight alternative to framework-specific reloaders.

### 项目历史

The public GitHub tags show leaf reaching v1.0.0 on February 23, 2020. The project evolved quickly in early 2020 with Cobra/Viper command-line configuration, a v1.2.0 internal rewrite around process contexts, and v1.3.0 in September 2020.

### 采用历史

Adoption evidence is modest and package-manager oriented: Homebrew, MacPorts, and Scoop package it as a general-purpose reloader rather than as a tool tied to one language framework.

### 使用方式

The CLI watches the working directory, applies include/exclude filters, and runs one or more commands on file updates. Its default config path is <CWD>/.leaf.yml, which keeps it close to the project being reloaded.

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

leaf is notable as a tiny cross-project hot-reload utility in the Go ecosystem: useful for package collections because it occupies the space between language-specific dev servers and larger file-watcher automation tools.

### 时间线

- 2020-02-23: v1.0.0 tag published.
- 2020-04-21: v1.2.0 tag described a major internal rewrite around process contexts.
- 2020-09-12: v1.3.0 tag added command-line behavior refinements.

### Related projects

- Related tools include file-watcher and rebuild utilities such as entr, watchexec, reflex, air, and nodemon.

### 来源

- <https://formulae.brew.sh/formula/leaf>
- <https://github.com/vrongmeal/leaf>
- <https://github.com/vrongmeal/leaf/tags>
- <https://pkg.go.dev/github.com/vrongmeal/leaf>


## 安全说明

没有找到 leaf 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## 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: <CWD>/.leaf.yml
## 源数据库详情

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

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

- MacPorts - leaf: normalized package name match | MacPorts ports tree: sysutils/leaf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/leaf: normalized package name match | Scoop official bucket manifest trees: bucket/leaf.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [entr](https://www.automicvault.com/zh-hans/pkg/brew/entr/) - Shares av.db curated category or tags: automation, cli, developer-tools, file-watcher.
- [fsw](https://www.automicvault.com/zh-hans/pkg/brew/fsw/) - Shares av.db curated category or tags: automation, cli, developer-tools, file-watcher.
- [funzzy](https://www.automicvault.com/zh-hans/pkg/brew/funzzy/) - Shares av.db curated category or tags: automation, cli, developer-tools, file-watcher.
- [gaze](https://www.automicvault.com/zh-hans/pkg/brew/gaze/) - Shares av.db curated category or tags: automation, cli, developer-tools, file-watcher.
- [hotbuild](https://www.automicvault.com/zh-hans/pkg/brew/hotbuild/) - Shares av.db curated category or tags: cli, developer-tools, file-watcher, go.
- [watchexec](https://www.automicvault.com/zh-hans/pkg/brew/watchexec/) - Shares av.db curated category or tags: automation, cli, developer-tools, file-watcher.
- [watchman](https://www.automicvault.com/zh-hans/pkg/brew/watchman/) - Shares av.db curated category or tags: automation, cli, developer-tools, file-watcher.
- [wgo](https://www.automicvault.com/zh-hans/pkg/brew/wgo/) - Shares av.db curated category or tags: automation, cli, developer-tools, file-watcher.
- [goimports](https://www.automicvault.com/zh-hans/pkg/brew/goimports/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, go.
- [pkgsite](https://www.automicvault.com/zh-hans/pkg/brew/pkgsite/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, go.

## Combined YAML source

View the package source record on GitHub. [combined/leaf.yml](https://github.com/automic-vault/db/blob/main/combined/leaf.yml)


## 来源

- Nucleus package database
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
