hurl(1)
π hurlfmt β like, the whole page, bestie
okay so real talk, we're deep in the Hurl Manual right now, and this is the hurlfmt page β the formatter/glow-up machine for your Hurl files. Let's go π
β¨ NAME β¨
hurlfmt β format Hurl files π¦
πΈ SYNOPSIS πΈ
hurlfmt [options] [FILE...]
π DESCRIPTION π
So hurlfmt formats Hurl files, and it also converts them from and to other formats. It's giving multitasking icon π
With no FILE, it reads standard input. (Yes, it'll just sit there and wait for you to pipe something in. Main character energy.)
By default, hurlfmt outputs a formatted and colorized version of the input hurl file.
$ hurl hello.hurl
GET http://localhost:8000/hello
HTTP/1.0 200
hurlfmt can be used to convert to other format too. Watch this π₯
$ hurl hello.hurl --output json | jq
{
"entries": [
{
"request": {
"method": "GET",
"url": "http://localhost:8000/hello"
},
"response": {
"version": "HTTP/1.0",
"status": 200
}
}
]
}
And hurlfmt can also convert a curl command-line to Hurl, which is honestly so iconic of it:
$ echo "curl http://localhost:8000/custom-headers -H
'Fruit:Raspberry'" | hurlfmt --in curl
GET http://localhost:8000/custom-headers
Fruit: Raspberry
π ALL OPTIONS π
Every single one, no skipping, periodt β¨
--checkβ runs in check mode. Exits with0if the input is formatted correctly,1otherwise. You can not use this with--output. Also heads up: this option is not stable yet π--colorβ colorizes the output π You can not use this with--in-place.--in <FORMAT>β specifies the input format:hurlorcurl.--in-placeβ modifies the file in place π«Ά This can be used only with text output.--no-colorβ do not colorize the output.--out <FORMAT>β specifies the output format:hurl,jsonorhtml.-o,--output <FILE>β writes the output to FILE instead of stdout.--standaloneβ outputs a full html file with css instead of an html fragment (which is the default). This can be used only with html output.-h,--helpβ usage help. we love a helper π-V,--versionβ prints version information β
real one: --check is not stable yet, so don't build your whole personality around it just yet π
π EXIT CODES π
1β Failed to parse command-line options.2β Input File Parsing Error.
π WWW π
https://hurl.dev β go say hi π¦
π§ SEE ALSO π§
hurl(1) β iykyk, go read that one next π
okay that's the whole page bestie, no cap, nothing skipped π sign-off time: this was hurl 8.1.0, dated 27 Oct 2026 β mwah, slay, go format something pretty πΈ
π¦ where this page comes from
- arch rolling: hurl 8.1.0-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms