# 使用 Homebrew, MacPorts, Nix, winget 安装 infisical

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

## 安装

```sh
sudo av install brew:infisical
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install infisical
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install infisical
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#infisical
```

  证据: nixpkgs package indexes: infisical from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

### Windows

- winget (92%):

```sh
winget install --id infisical.infisical -e
```

  证据: Windows Package Manager source index: infisical.infisical from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:infisical
- **软件包管理器:** Homebrew
- **版本:** 0.43.116
- **来源摘要:** CLI for Infisical
- **主页:** <https://infisical.com/docs/cli/overview>
- **仓库:** <https://github.com/Infisical/cli>
- **最后更新:** 2026-07-31T21:03:55Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- infisical (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Infisical CLI is the command-line interface for Infisical, an open-source security infrastructure platform for secrets, certificates, and privileged access management. The CLI focuses on secret retrieval, injection into processes, export, authentication, and automation.

### 项目历史

Infisical's main open-source project frames the platform around making security tooling more accessible to developer teams. The separate CLI repository presents infisical as the official command-line tool for injecting secrets into applications and managing Infisical infrastructure.

The CLI grew around developer workflow needs: local login, project initialization, .infisical.json project settings, environment-variable injection through infisical run, machine-identity authentication, export to dotenv/YAML formats, and support for Infisical Cloud or self-hosted domains.

### 采用历史

Infisical distributes the CLI through several channels: Homebrew, Scoop, winget, npm, Linux package repositories, Arch User Repository, and GitHub release binaries. The Linux repository migration from Cloudsmith to artifacts-cli.infisical.com shows that the CLI became important enough to warrant dedicated artifact hosting.

### 使用方式

Users install the CLI, run infisical login, initialize a project, and use infisical run to inject environment variables into local development, CI/CD, staging, or production commands. Non-interactive workflows can authenticate with machine identity credentials and pass an access token through INFISICAL_TOKEN.

The CLI also covers secret export and secret scanning. The usage docs warn that terminal history can retain commands that set secrets, which is a small but important operational detail for a secrets-management CLI.

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

Infisical CLI is a modern DevSecOps package: it exists so secrets-management workflows can be scripted, pinned, installed by package managers, and used in CI containers without a browser UI. For package maintainers, the important part is not only the binary but also the artifact-hosting, version-pinning, and environment-variable contract around it.

### 时间线

- 2022: Infisical platform repository created as an open-source secrets-management project.
- 2024: Infisical CLI package-manager distribution appears across Homebrew, npm, winget, and other channels.
- 2025: CLI docs describe v0.4.0 behavior for choosing Infisical Cloud regions or self-hosted instances during login.
- 2026: CLI Linux package repository migration scheduled from Cloudsmith to artifacts-cli.infisical.com.

### Related projects

- The Infisical platform repository is the server and product counterpart. HashiCorp Vault is a related secrets-management category reference named in Infisical repository topics. npm, Homebrew, Scoop, winget, AUR, and Linux package repositories are part of the CLI distribution story.

### 来源

- <https://github.com/Infisical/cli>
- <https://github.com/Infisical/infisical>
- <https://infisical.com/docs/cli/overview>
- <https://infisical.com/docs/cli/usage>


## 安全说明

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


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

- Nix - infisical: normalized package name match | nixpkgs package indexes: infisical from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- MacPorts - infisical: normalized package name match | MacPorts ports tree: security/infisical/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- winget - infisical.infisical: normalized package name match | Windows Package Manager source index: infisical.infisical from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## 来源

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