hurl(1)

πŸ“¦
version 8.1.0 Β· 4 versions
, in arch rolling

πŸ’… 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 with 0 if the input is formatted correctly, 1 otherwise. 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: hurl or curl.
  • --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, json or html.
  • -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