/restui

a CLI tool that can send HTTP requests with TUI.

Primary LanguageScalaMIT LicenseMIT

ResTui - TUI Rest API Client

a CLI tool that can send HTTP requests with TUI.

ResTui

Features

  • Multiple collections can be created to manage requests.
  • Environment variables can be set in .env files.
  • Intuitive keyboard only control

Installation

$ brew install harehare/tap/restui

Build

$ sbt "graalvm-native-image:packageBin"
$ sbt assembly

Usage

$ restui
ResTui v0.1.0 -- ResTui is http request management tool

USAGE

  $ restui [(-c, --config file)] [(-e, --env file)]

OPTIONS

  (-c, --config file)
    An existing file.

    This setting is optional. Default: '~/.config/restui/collections.json'.

  (-e, --env file)
    An existing file.

    This setting is optional. Default: 'None'.

Environment

Environment variables defined in the .env file can be used to replace request URLs, query parameters, headers, and body values in the form ${ENV}. .env files are specified with the --env or -e option.

ResTui

Keymap

Key Description
, , , Move
Ctrl + r Send
a Add
c Copy
e Edit
m Change (Method, Body)
Ctrl + d Delete
d Duplicate
s Save
Ctrl + r, q Quit

Configuration

You can change the command to use with environment variables.

RESTUI_PBCOPY=pbcopy
RESTUI_EDITOR=vim

License

MIT