需系统已安装 curl,curlie 只是其前端;请求头输出到 stderr 而非 stdout,重定向时注意;JSON 美化仅在交互运行时默认开启,管道场景需加 --pretty
brew install curlieREADME 未说明;作为 curl 前端,需系统已安装 curl,本身为 Go 编译的单一二进制
给 curl 加上 httpie 式易用语法和格式化输出的前端工具
把 curl 的强大能力和 httpie 的易用语法结合起来的命令行 HTTP 客户端,用更直观的方式发请求、看响应,省去记 curl 参数。
核心能力
- 保留全部 curl 选项,用 httpie 风格语法糖调用
- 交互运行时自动美化 JSON 输出,可用 --pretty 强制
- 输出不缓冲,边接收边格式化,便于调试流式数据
- 用 --curl 打印实际执行的 curl 命令
- 请求头写到 stderr,与 httpie 行为不同
容易踩的坑
- v1.8.2curlie-v1.8.2最新正式版2025-03-07 · 2025-03-07 08:54 UTC
Changelog
- 56211bad5a53e7cbd64217ef87951de4c6e8b570 Remove sboms
- v1.7.2curlie-v1.7.22023-10-23 · 2023-10-23 16:11 UTC
查看更新说明
Changelog
- c589190 Revert "fix headers/body order (#55)" (#74)
- v1.7.1curlie-v1.7.12023-05-08 · 2023-05-08 14:16 UTC
查看更新说明
Changelog
- 961dad4 fix: update curl long values (#70)
- e63e657 fix headers/body order (#55)
- 571cdca Update install method for Homebrew (#57)
- 3c6ae67 Bump golang.org/x/crypto from 0.0.0-20180524125353-159ae71589f3 to 0.1.0 (#66)
- b6df908 Bump golang.org/x/sys from 0.0.0-20191026070338-33540a1f6037 to 0.1.0 (#65)
- 2f14808 Remove macOS binary of curlie (#61)
- 631fca5 Document --pretty (#56)
- d2e7549 doc: add webinstall.dev instructions (#58)
- v1.6.9curlie-v1.6.92022-04-04 · 2022-04-04 15:05 UTC
查看更新说明
Changelog
- 64cde54 Update curl long args
- de80616 Add install alternative via Scoop (#50)
- 7a482df Add install variant via
go install(#48)
- v1.6.8curlie-v1.6.82022-04-04 · 2022-04-04 14:29 UTC
查看更新说明
Changelog
- 64cde54 Update curl long args
- de80616 Add install alternative via Scoop (#50)
- 7a482df Add install variant via
go install(#48)
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
Curlie
If you like the interface of HTTPie but miss the features of curl, curlie is what you are searching for. Curlie is a frontend to curl that adds the ease of use of httpie, without compromising on features and performance. All curl options are exposed with syntax sugar and output formatting inspired from httpie.
Install
Using homebrew:
brew install curlie
Using webi:
# macOS / Linux
curl -sS https://webinstall.dev/curlie | bash
# Windows
curl.exe -A "MS" https://webinstall.dev/curlie | powershell
Using eget:
# Ubuntu/Debian
eget rs/curlie -a deb --to=curlie.deb
sudo dpkg -i curlie.deb
Using macports:
sudo port install curlie
Using pkg:
pkg install curlie
Using go:
go install github.com/rs/curlie@latest
Using scoop:
scoop install curlie
Using mise:
mise use -g curlie@latest
Or download a binary package.
Usage
Synopsis:
curlie [CURL_OPTIONS...] [METHOD] URL [ITEM [ITEM]]
Simple GET:

Custom method, headers and JSON data:

When running interactively, curlie provides pretty-printed output for json. To force pretty-printed output, pass --pretty.
Build
Build with goreleaser to test that all platforms compile properly.
goreleaser build --clean --snapshot
Or for your current platform only.
goreleaser build --clean --snapshot --single-target
Differences with httpie
- Like
curlbut unlikehttpie, headers are written onstderrinstead ofstdout. - Output is not buffered, all the formatting is done on the fly so you can easily debug streamed data.
- Use the
--curloption to print executed curl command.
License
All source code is licensed under the MIT License.