# 使用 Homebrew, scoop, Nix, winget 安装 ipinfo-cli

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

## 安装

```sh
sudo av install brew:ipinfo-cli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ipinfo-cli
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#ipinfo
```

  证据: nixpkgs package indexes: pkgs/by-name/ip/ipinfo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/ipinfo-cli
```

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

- winget (92%):

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

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

## 软件包事实

- **软件包键:** brew:ipinfo-cli
- **软件包管理器:** Homebrew
- **版本:** 3.3.2
- **来源摘要:** Official CLI for the IPinfo IP Address API
- **主页:** <https://ipinfo.io/>
- **仓库:** <https://github.com/ipinfo/cli>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ipinfo (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

IPinfo CLI is the official command-line interface for the IPinfo.io API, combining IP and ASN lookups, bulk enrichment, summaries, mapping, CIDR and range tools, and standalone helper binaries.

### 项目历史

The GitHub repository was created in 2020 and IPinfo announced the official CLI in April 2021. The announcement framed it as a way to query nearly all IPinfo APIs more efficiently from the terminal, including IP lookups, ASN lookups, summaries, maps, grep-like IP extraction, and range listing.

The repository README expanded the tool into both the main `ipinfo` command and a suite of related binaries such as `grepip`, `matchip`, `prips`, CIDR/range converters, `randip`, and `mmdb` tooling.

### 采用历史

The CLI was packaged for many installation paths from the start: Homebrew, a Debian/Ubuntu PPA, one-shot deb and script installers, FreeBSD ports, Arch AUR, Scoop, Docker, Go install, and release archives.

Its adoption follows the growth of IP intelligence workflows: developers and security teams can move from web/API calls to shell pipelines while still using the same IPinfo data source and account token.

### 使用方式

Common usage includes one-off IP and ASN lookups, bulk enrichment from files or standard input, summarizing up to 1000 IPs, opening maps for IP locations, filtering IPs from text, and generating IP lists from CIDR or range input.

The config and token data live under `~/.config/ipinfo` on Unix-like systems according to the README's Docker persistence example and supplied curation.

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

This package matters because it turns a SaaS IP intelligence API into a normal Unix command with package-manager installs, subcommands, and pipeline-friendly utilities.

It also creates a naming collision with the older Kyberdigi `ipinfo` formula. Homebrew resolves that by naming this formula `ipinfo-cli` while the executable remains `ipinfo`.

### 时间线

- 2020: GitHub repository created.
- 2021: ipinfo-1.0.0 release and official CLI announcement.
- 2021: Early companion binaries such as grepip were released alongside the main command.
- 2026: ipinfo-3.3.2 release published on GitHub.

### Related projects

- IPinfo.io provides the API and data products queried by the CLI.
- grepip, matchip, prips, CIDR/range conversion tools, randip, and mmdb tools are shipped as related command-line utilities in the same ecosystem.
- Kyberdigi ipinfo is unrelated despite the similar package name.

### 来源

- <https://github.com/ipinfo/cli>
- <https://github.com/ipinfo/cli/releases>
- <https://ipinfo.io/blog/meet-the-official-ipinfo-cli>


## 安全说明

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: ~/.config/ipinfo

## Credential files

- Unix: ~/.config/ipinfo
## 其他软件包管理器记录

- Scoop - main/ipinfo-cli: normalized package name match | Scoop official bucket manifest trees: bucket/ipinfo-cli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- Nix - ipinfo: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/ip/ipinfo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- winget - ipinfo.ipinfo: installed executable or alias match | Windows Package Manager source index: ipinfo.ipinfo from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## 来源

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