1.0.0 • Published 3 years ago

fesh v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
3 years ago

fetch interface for the Terminal

CLI interface to make HTTP requests using axios

fesh <Command> [options] url

fesh P \
  -b '{"firstName":"Armando", "lastName":"Garcia-Jacquier"}' \
  -h '{"X-Custom-Header": "foobar"}' \
  http://localhost:8000/users/

If multiple query params present in URL wrap in quotes Alternitevely they can be passed as an object wrapped in quotes

fesh G 'http://localhost:8000/users?page=1&count=10'

Request Methods

  • GET alias G
    • Accepts Headers --headers or -h as a JSON object wrapped in quotes
    • Accepts Query Params --query or -q as a JSON object wrapped in quotes
    • Accepts Verbose mode --verbose or -v
  • POST alias P
    • Accepts Headers --headers or -h as a JSON object wrapped in quotes
    • Accepts Query Params --query or -q as a JSON object wrapped in quotes
    • Accepts Body --body or -b as a JSON object wrapped in quotes
    • Accepts Verbose mode --verbose or -v
  • PUT alias U
    • Accepts Headers --headers or -h as a JSON object wrapped in quotes
    • Accepts Query Params --query or -q as a JSON object wrapped in quotes
    • Accepts Body --body or -b as a JSON object wrapped in quotes
    • Accepts Verbose mode --verbose or -v