xh logo

xh ducaale

Use this command to install xh:
winget install --id=ducaale.xh -e

xh is a friendly and fast tool for sending HTTP requests. It reimplements as much as possible of HTTPie's excellent design, with a focus on improved performance.

README

xh

Version info Packaging status

xh is a friendly and fast tool for sending HTTP requests. It reimplements as much as possible of HTTPie's excellent design, with a focus on improved performance.

asciicast

Installation

via cURL (Linux & macOS)

curl -sfL https://raw.githubusercontent.com/ducaale/xh/master/install.sh | sh

via Powershell (Windows)

iwr -useb https://raw.githubusercontent.com/ducaale/xh/master/install.ps1 | iex

via a package manager

OSMethodCommand
AnyCargo*cargo install xh --locked
AnyHuberhuber install xh
Android (Termux)pkgpkg install xh
Android (Magisk/KernelSU)MMRL**mmrl install xhhttp
Alpine Linuxapk***apk add xh
Arch LinuxPacmanpacman -S xh
Debian & UbuntuApt****sudo apt install xh
FreeBSDFreshPortspkg install xh
NetBSDpkgsrcpkgin install xh
Linux & macOSNixpkgsnix-env -iA nixpkgs.xh
Linux & macOSFloxflox install xh
Linux & macOSHomebrewbrew install xh
Linux & macOSHermithermit install xh
macOSMacPortssudo port install xh
WindowsScoopscoop install xh
WindowsChocolateychoco install xh
WindowsWingetwinget add ducaale.xh

* Make sure that you have Rust 1.74 or later installed

** You will need to install the MMRL CLI

*** The xh package is available in Edge and will be in v3.17+. It is built with native-tls only.

**** You will need to add the apt repository from https://apt.cli.rs/

via pre-built binaries

The release page contains prebuilt binaries for Linux, macOS and Windows.

Usage

Usage: xh [OPTIONS] <[METHOD] URL> [REQUEST_ITEM]...

Arguments:
  <[METHOD] URL>     The request URL, preceded by an optional HTTP method
  [REQUEST_ITEM]...  Optional key-value pairs to be included in the request.

Options:
  -j, --json                             (default) Serialize data items from the command line as a JSON object
  -f, --form                             Serialize data items from the command line as form fields
      --multipart                        Like --form, but force a multipart/form-data request even without files
      --raw                         Pass raw request data without extra processing
      --pretty 
Versions
0.24.1
0.24.0
0.23.1
0.23.0
0.22.2
0.22.0
0.21.0
0.20.1
Website