# 使用 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
- **版本:** 1.3.0
- **来源摘要:** General purpose reloader for all projects
- **主页:** <https://pkg.go.dev/github.com/vrongmeal/leaf>
- **仓库:** <https://github.com/vrongmeal/leaf>
- **最后更新:** 2026-07-27T15:17:52+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- leaf (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.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
## 其他软件包管理器记录

- 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


## Combined YAML source

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


## 来源

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