Skip to main content

Get

sends a GET request to the specify URL.

npx zap-client get <url>

Aliases

get | GET | g

Arguments

url : The url to request

Flags

Local Flags

download

-d | --download <file-name/location> Using this you can download the output

Examples

npx zap-client get https://raw.githubusercontent.com/Sas2k/Zap/main/README.md -d README.md

Global Flags

Flags

Example Use

C:\Users\user>npx zap-client get https://jsonplaceholder.typicode.com/posts/1
'statusCode: 200'
{
userId: 1,
id: 1,
title: 'sunt aut facere repellat provident occaecati excepturi optio reprehenderit',
body: 'quia et suscipit\n' +
'suscipit recusandae consequuntur expedita et cum\n' +
'reprehenderit molestiae ut ut quas totam\n' +
'nostrum rerum est autem sunt rem eveniet architecto'
}