Output

Control what tgrs shows you — from minimal silent mode to detailed verbose and trace output.

Verbose Mode

Full Request & Response Details

Use -v / --verbose to see everything: request headers, response headers, timing information, and response size.

# Using -v

tgrs GET https://api.example.com/users -v

# Using --verbose

tgrs GET https://api.example.com/users --verbose

Silent Mode

Response Body Only

Use -s / --silent to suppress all extra output. Only the response body is printed — perfect for piping to other commands.

# Silent output

tgrs GET https://api.example.com/users -s

# Pipe to jq for JSON processing

tgrs GET https://api.example.com/users -s | jq '.[0].name'

JSON Output

Structured JSON Output

Use --json to get the full request and response as a structured JSON object. Ideal for CI/CD pipelines and automation scripts.

tgrs GET https://api.example.com/users --json

The JSON output includes request details, response status, headers, body, timing, and protocol information.

Trace Mode

Detailed Timing Breakdown

Use -t / --trace to see a detailed breakdown of where time was spent: DNS resolution, TCP connection, TLS handshake, time to first byte (TTFB), and total response time.

# Trace timing breakdown

tgrs GET https://api.example.com/users -t

tgrs GET https://api.example.com/users --trace

[ response headers ]

[ response body ]

Response Time184.93 ms
Prepare
8 µs
DNS Lookup
15.21 ms
TCP Handshake
37.30 ms
TLS Handshake
0 µs
Request Send
18 µs
Server Response
105.76 ms
Download
62 µs
Processing
6 µs

Dry Run

Preview Without Sending

Use -r / --dry-run to see exactly what would be sent without actually making the request. Great for debugging complex requests.

# See the request without sending it

tgrs POST https://api.example.com/users \

-H "Authorization: Bearer token123" \

name:John email:john@example.com -r

Response Headers & Body Only

Dedicated Flags

Shortcuts for showing only response headers or only the response body.

# Show only response headers

tgrs GET https://api.example.com/users --response-headers

# Show only response body

tgrs GET https://api.example.com/users --response-body

Raw Output

No Colors, No Formatting

Use --raw to disable all colors and formatting. Useful when piping output or writing to log files.

tgrs GET https://api.example.com/users --raw

Compression

Disable Decompression

tgrs automatically decompresses gzip, brotli, and deflate responses. Use --no-compressed to disable this and receive the raw compressed body.

tgrs GET https://api.example.com/data --no-compressed

Quick Reference

Output Flags

FlagAliasDescription
-v--verboseShow full request/response details
-s--silentResponse body only, no extras
-p--printFine-grained control (H/B/h/b)
-t--traceDetailed timing breakdown
--jsonStructured JSON output
-r--dry-runPreview without sending
--rawNo colors/formatting
--response-headersShow response headers only
--response-bodyShow response body only
--no-compressedDisable automatic decompression