Skip to content

ryanfowler/fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

851 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fetch

A modern HTTP(S) client for the command line.

Example of fetch with an image and JSON responses

Features

  • Response formatting - Automatic formatting and syntax highlighting for JSON, XML, HTML, CSS, CSV, MessagePack, Protocol Buffers, and more
  • Image rendering - Display images directly in your terminal
  • gRPC support - Make gRPC calls with automatic JSON-to-protobuf conversion
  • Authentication - Built-in support for Basic Auth, Bearer Token, AWS Signature V4, and mTLS
  • Compression - Automatic gzip and zstd response body decompression
  • Configuration - Global and per-host configuration file support

Quick Start

Install

# Install fetch from the shell script (macOS or Linux)
curl -fsSL https://raw.githubusercontent.com/ryanfowler/fetch/main/install.sh | bash

# Or install fetch with homebrew (macOS or Linux)
brew install ryanfowler/tap/fetch

# Or install fetch with Go
go install github.com/ryanfowler/fetch@latest

Usage

# Make a request for JSON
fetch httpbin.org/json

# Make a request for an image
fetch picsum.photos/1024/1024

Documentation

License

fetch is released under the MIT License.

About

fetch is a modern HTTP(S) client for the command line

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •