curlie — The Power of curl, the Ease of HTTPie
curlie is a thin wrapper around curl written in Go that speaks HTTPie-style arguments, inheriting every curl feature (HTTP/3, SSH, FTP, GSSAPI) while giving a friendly terminal UX.
Installation avec revue préalable
Cet actif nécessite une revue. Le prompt copié demande un dry-run, affiche les écritures, puis continue seulement après confirmation.
npx -y tokrepo@latest install bd2e4178-389d-11f1-9bc6-00163e2b0d79 --target codexDry-run d'abord, confirmez les écritures, puis lancez cette commande.
What it is
curlie is a thin wrapper around curl written in Go. It translates HTTPie-style command-line arguments into curl calls, combining curl's comprehensive protocol support (HTTP/3, SSH, FTP, GSSAPI) with HTTPie's intuitive syntax for headers, JSON bodies, and query parameters. The output is colored and formatted for readability.
curlie targets developers who like HTTPie's UX but need curl's full feature set. Since curlie delegates to the system's curl binary, every curl feature and flag works transparently.
How it saves time or tokens
curlie eliminates the mental overhead of curl's verbose flag syntax. Posting JSON with curl requires -H 'Content-Type: application/json' -d '{...}'. With curlie, you write curlie POST url key=value. Headers use Header:Value syntax instead of -H 'Header: Value'. The colored, formatted output makes API responses readable without piping through jq.
How to use
- Install curlie via
brew install curlieon macOS or download the binary from GitHub releases. - Use HTTPie-style syntax:
curlie GET urlfor requests,key=valuefor JSON fields,Header:Valuefor headers. - Any curl flag works directly:
curlie --http3 urlorcurlie -k urlfor insecure connections.
Example
# Simple GET with colored output
curlie example.com/api/users
# POST JSON data (HTTPie syntax)
curlie POST api.example.com/users name=alice role=admin
# Custom headers
curlie GET api.example.com/data Authorization:'Bearer token123'
# Any curl flag works
curlie --http3 example.com
curlie -k https://self-signed.example.com
# Download a file
curlie -o output.json api.example.com/export
Related on TokRepo
- API Tools — API testing and development tools
- Automation Tools — CLI tools for developer workflows
Common pitfalls
- curlie requires curl to be installed on your system. It is a wrapper, not a replacement. The curl version determines which protocols and features are available.
- Some HTTPie syntax differs slightly in curlie. Check the curlie README for edge cases, especially around file uploads and form data.
- Colored output may not render correctly in all terminals or when piping to other commands. Use
--plainfor plain text output in scripts.
Questions fréquentes
curlie delegates to the system curl binary, inheriting every curl feature including HTTP/3, FTPS, GSSAPI, and proxy support. HTTPie is a standalone Python tool with its own HTTP implementation. curlie gives you curl's power with HTTPie's syntax.
Yes. Any curl flag works with curlie. Flags like --http3, -k, -o, --proxy, and others pass through directly to the underlying curl binary.
Yes, if your system curl supports HTTP/3. Run curlie --http3 url to use HTTP/3. The availability depends on how curl was compiled on your system.
curlie starts faster than HTTPie because it is a compiled Go binary rather than a Python program. For the actual HTTP request, performance is identical to curl since curlie delegates to curl.
Yes. curlie detects JSON responses and formats them with syntax highlighting and indentation automatically. This makes API response inspection faster without piping through jq.
Sources citées (3)
- curlie GitHub— curlie wraps curl with HTTPie-style arguments
- HTTPie Documentation— HTTPie command-line syntax for HTTP requests
- curl Official Site— curl protocol support and feature set
En lien sur TokRepo
Fil de discussion
Actifs similaires
curl — The Command Line Tool for Transferring Data with URLs
curl is the most widely used command-line tool for transferring data with URL syntax. It supports HTTP, HTTPS, FTP, SFTP, and 25+ other protocols. Installed on billions of devices, curl and libcurl are foundational internet infrastructure.
Httpstat — Visualize curl Response Timing Statistics
Httpstat is a command-line tool that visualizes curl HTTP response timing, showing DNS lookup, TCP connection, TLS handshake, server processing, and transfer time in a clear breakdown.
Semantic UI — Human-Friendly UI Component Framework
Semantic UI is a front-end component framework that uses human-friendly HTML class names to create responsive, themeable layouts. It provides over 50 UI components designed around natural language principles.
ntfy — Simple Push Notifications via HTTP PUT/POST
ntfy (notify) lets you send push notifications to your phone or desktop using simple HTTP requests. No app registration, no API keys — just curl a URL.