curlie

rsMIT更新放缓

把 curl 的强大能力和 httpie 的易用语法结合起来的命令行 HTTP 客户端,用更直观的方式发请求、看响应,省去记 curl 参数。

The power of curl, the ease of use of httpie.

v1.8.2发布于 2025-03-07 08:54 UTC3,732star +1 / 7 天120fork同步于 2026-11-10 17:41 UTC

怎么上手

由 README 提炼,执行前请确认
brew install curlie
硬件要求按 README 说明

README 未说明;作为 curl 前端,需系统已安装 curl,本身为 Go 编译的单一二进制

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

给 curl 加上 httpie 式易用语法和格式化输出的前端工具

把 curl 的强大能力和 httpie 的易用语法结合起来的命令行 HTTP 客户端,用更直观的方式发请求、看响应,省去记 curl 参数。

核心能力

  • 保留全部 curl 选项,用 httpie 风格语法糖调用
  • 交互运行时自动美化 JSON 输出,可用 --pretty 强制
  • 输出不缓冲,边接收边格式化,便于调试流式数据
  • 用 --curl 打印实际执行的 curl 命令
  • 请求头写到 stderr,与 httpie 行为不同

容易踩的坑

需系统已安装 curl,curlie 只是其前端;请求头输出到 stderr 而非 stdout,重定向时注意;JSON 美化仅在交互运行时默认开启,管道场景需加 --pretty

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v1.8.2
  1. v1.8.2curlie-v1.8.2最新正式版2025-03-07 · 2025-03-07 08:54 UTC

    Changelog

    • 56211bad5a53e7cbd64217ef87951de4c6e8b570 Remove sboms
  2. v1.7.2curlie-v1.7.22023-10-23 · 2023-10-23 16:11 UTC
    查看更新说明

    Changelog

    • c589190 Revert "fix headers/body order (#55)" (#74)
  3. 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)
  4. 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)
  5. 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)

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    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:

    Simple GET request example

    Custom method, headers and JSON data:

    Custom PUT request with headers and JSON data example

    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 curl but unlike httpie, headers are written on stderr instead of stdout.
    • Output is not buffered, all the formatting is done on the fly so you can easily debug streamed data.
    • Use the --curl option to print executed curl command.

    License

    All source code is licensed under the MIT License.