curl 的强大功能,httpie 的易用性。
如果你喜欢 HTTPie 的界面,但又怀念 curl 的功能,那么 curlie 正是你想要的。Curlie 是 curl 的一个前端,它增添了 httpie 的易用性,同时不牺牲功能和性能。所有 curl 选项都通过语法糖和受 httpie 启发的输出格式来呈现。
使用 homebrew:
brew install curlie使用 webi:
# macOS / Linux
curl -sS https://webinstall.dev/curlie | bash# Windows
curl.exe -A "MS" https://webinstall.dev/curlie | powershell使用 eget:
# Ubuntu/Debian
eget rs/curlie -a deb --to=curlie.deb
sudo dpkg -i curlie.deb使用 macports:
sudo port install curlie使用 pkg:
pkg install curlie使用go:
go install github.com/rs/curlie@latest使用 scoop:
scoop install curlie使用 mise:
mise use -g curlie@latest或者下载一个二进制包。
简介:
curlie [CURL_OPTIONS...] [METHOD] URL [ITEM [ITEM]]简单的 GET 请求:
自定义方法、请求头和 JSON 数据:
在交互式运行时,curlie 会为 JSON 提供美化输出。要强制美化输出,请传入 --pretty。
使用 goreleaser 构建,以测试所有平台都能正确编译。
goreleaser build --clean --snapshot或者仅针对当前平台构建。
goreleaser build --clean --snapshot --single-targetcurl 类似,但与 httpie 不同,请求头写入 stderr 而不是 stdout。--curl 选项可打印执行的 curl 命令。所有源代码均根据 MIT 许可证 授权。
暂无开放 Issues,或尚未同步最近议题。