Assuming you have Rust/Cargo installed, run this command in a terminal:
cargo install xreq
It will make the xreq command available in your PATH if you've allowed the PATH to be modified when installing Rust. cargo uninstall xreq uninstalls.
xreq
PATH
cargo uninstall xreq
Back to the crate overview.