hrt
is a CLI http client, that uses yaml
configs to manage your request collections.
It's aim is to make testing easier, with having a config per project/repository containing the needed requests.
My goal is to provide a simplified alternative to tools such as Insomnia and httpie. This tool is still in its development stage and serves as a learning project for me.
- Simple yaml configuration for organizing your request collection(s)
- Specify headers, body and method for each request
- Bearer Token and Basic Auth support
- Support for local and global config files
- Option to create a default config file
- Various option flags for running requests
- Usage of specific TLS certificate, adding new CA chains to existing one or skipping certificate verification
- Global timeout option
- Verbose outputs showing request and TLS details
- Option to run every request from the active collection file right after each other
For more information on how to use hrt
, you can run hrt -h
in your terminal or refer to the documentation page.
You can use the one-line installer script to download and install the latest binary for Linux:
curl -fsSL https://raw.githubusercontent.com/majermarci/hrt/main/install.sh | sudo bash
Or you can download the latest binary from the releases page and install manually. This is only supported for Linux systems. For an x86_64 OS you can use the following commands:
curl -L https://github.com/majermarci/hrt/releases/latest/download/hrt-linux-amd64 -o hrt
chmod +x hrt
sudo install -m 755 hrt /usr/local/bin
If Go is installed on your system, you can install the app using the following command:
go install github.com/majermarci/hrt/cmd/hrt@latest
Tip: Make sure that your $PATH
contains the Go bin directory ($HOME/go/bin
by default).
Requirements:
- Go 1.21+
- GNU Make
git clone https://github.com/majermarci/hrt.git
cd hrt/
make build
sudo install -m 755 bin/hrt /usr/local/bin