# 使用 Homebrew, MacPorts 安装 http-prompt

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

## 安装

```sh
sudo av install brew:http-prompt
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install http-prompt
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install http-prompt
```

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

## 软件包事实

- **软件包键:** brew:http-prompt
- **软件包管理器:** Homebrew
- **版本:** 2.1.0
- **来源摘要:** Interactive command-line HTTP client with autocomplete and syntax highlighting
- **主页:** <https://http-prompt.com>
- **仓库:** <https://github.com/httpie/http-prompt>
- **最后更新:** 2026-07-15T11:21:03Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- http-prompt (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

HTTP Prompt is an interactive command-line HTTP and API testing client built on HTTPie and prompt_toolkit. It brought shell-style completion, syntax highlighting, session context, and OpenAPI-aware navigation to HTTPie-style request construction.

### 项目历史

PyPI records the first http-prompt release, 0.1.0, in May 2016. The project documentation credits HTTPie for the human-friendly HTTP CLI model, prompt_toolkit for interactive terminal behavior, Parsimonious for parsing, and pgcli as an inspiration.

The documentation shows the project maturing quickly during 2016: configuration and persistent context appeared in v0.4.0, the persistent-context behavior changed in v0.6.0, and OpenAPI/Swagger navigation appeared in v0.10.0.

### 采用历史

HTTP Prompt gained developer-tool visibility through the HTTPie organization, PyPI distribution, Homebrew and MacPorts packaging in the input metadata, and a GitHub repository with thousands of stars. Its adoption tracked the 2010s shift toward friendlier API CLIs for testing JSON and REST services.

### 使用方式

Users start an interactive prompt for a host, build up headers, query parameters, body fields, and authentication state, then preview or execute HTTP requests. The tool can persist session context and use an OpenAPI specification to autocomplete endpoint paths and parameters.

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

HTTP Prompt is notable as a mashup package: HTTPie syntax, prompt_toolkit interaction, a PEG parser, and pgcli-style usability applied to API testing. For package people, it represents the Python CLI era when rich terminal UX became a first-class feature rather than a GUI afterthought.

### 时间线

- 2016: Version 0.1.0 was uploaded to PyPI.
- 2016: Version 0.4.0 added user configuration and persistent context.
- 2016: Version 0.10.0 added OpenAPI/Swagger-aware navigation.
- 2018: Version 1.0.0 was published on GitHub releases.
- 2021: Version 2.1.0 was published on GitHub releases.

### Related projects

- HTTPie, prompt_toolkit, Parsimonious, and pgcli are directly credited by the project. It also sits near curl, wget, Postman-style API testing, and OpenAPI tooling.

### 来源

- Official docs, GitHub README/release metadata, and PyPI package metadata.


## 安全说明

没有找到 http-prompt 的匹配本地密钥处理 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: $XDG_CONFIG_HOME/http-prompt/config.py, ~/.config/http-prompt/config.py
- Windows: %LOCALAPPDATA%/http-prompt/config.py, ~/AppData/Local/http-prompt/config.py

## Credential files

- Unix: $XDG_DATA_HOME/http-prompt/context.hp, ~/.local/share/http-prompt/context.hp
- Windows: %LOCALAPPDATA%/http-prompt/context.hp, ~/AppData/Local/http-prompt/context.hp
## 其他软件包管理器记录

- MacPorts - http-prompt: normalized package name match | MacPorts ports tree: net/http-prompt/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/http-prompt.yml](https://github.com/mxcl/pkgdb/blob/main/combined/http-prompt.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
