# 使用 Homebrew 安装 anyenv

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

## 安装

```sh
sudo av install brew:anyenv
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install anyenv
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:anyenv
- **软件包管理器:** Homebrew
- **版本:** 1.1.5
- **来源摘要:** All in one for **env
- **主页:** <https://anyenv.github.io/>
- **仓库:** <https://github.com/anyenv/anyenv>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- anyenv (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

anyenv is a wrapper for rbenv-style environment managers. It exists for developers who use several language-specific '*env' tools and do not want to clone and shell-initialize each one by hand.

### 项目历史

The official README describes anyenv as 'All in one for **env' and a simple wrapper around rbenv-style environment managers. It installs managers such as rbenv, pyenv, and nodenv through manifest scripts, then lets the individual manager handle language/runtime installation.

The companion anyenv-install repository defines the manifest format. A manifest is just a shell script using install_env and optional install_plugin calls, which keeps anyenv's core small and pushes per-manager installation rules into a separate manifest directory.

### 采用历史

anyenv is most common among shell users who already accept the rbenv/pyenv/nodenv style of shims and per-user runtime directories. The input facts show Homebrew packaging, and the official README starts with Homebrew setup for macOS users before describing manual git checkout.

The project is intentionally niche: it does not replace each language manager's ecosystem, it reduces the installation and shell-profile repetition around using many of them.

### 使用方式

A user installs anyenv, runs anyenv init, initializes the manifest directory with anyenv install --init, and then installs managers with commands such as anyenv install rbenv, anyenv install pyenv, and anyenv install nodenv. After restarting the shell, the installed manager commands are available.

Configuration centers on ANYENV_DEFINITION_ROOT, the directory containing install manifests. If not set, official docs fall back to ${XDG_CONFIG_HOME}/anyenv/anyenv-install or ${HOME}/.config/anyenv/anyenv-install.

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

anyenv is package-manager glue for package-manager people: it manages managers. Its interesting bit is not a runtime resolver, but the small manifest protocol that bootstraps many language-specific env tools from one command.

It is also a reminder that shell initialization is real packaging surface. anyenv's value is partly that it centralizes PATH and init setup, avoiding a growing dotfile pile of independent *env snippets.

### 时间线

- 2010s: anyenv adopts the rbenv-style manager pattern as a wrapper around multiple '*env' tools.
- 2020s: The repository reaches the v1.1.x tag series and remains documented through anyenv.github.io and GitHub README.
- 2026: Homebrew package facts list anyenv as an available formula.

### Related projects

- rbenv, pyenv, and nodenv are examples shown in the official usage docs.
- anyenv-install is the official manifest repository used by anyenv install --init.
- anyenv-update and anyenv-git are plugins listed by the official README.

### 来源

- Official anyenv README, anyenv.github.io, anyenv-install README, and source_facts.package-manager.


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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}/anyenv/anyenv-install, ${HOME}/.config/anyenv/anyenv-install

## Combined YAML source

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


## 来源

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