CLI
Install the Piloterr CLI SDK and make your first API call.
The official Piloterr command-line interface, with one command per endpoint.
Requirements
- Node.js 20+
Install
npm install --global @piloterr/cli
piloterr --helpnpx @piloterr/cli --helpGet your API key
Copy your API key from the Piloterr dashboard and set it in the PILOTERR_API_KEY environment variable, which the SDK reads by default. Keep it out of source control.
export PILOTERR_API_KEY="YOUR_API_KEY"$env:PILOTERR_API_KEY = "YOUR_API_KEY"Usage
piloterr amazon-product --query B09DFCB66Spiloterr amazon-product --help # parameters of one command
piloterr endpoints # every command and its HTTP path
piloterr endpoints search # filter the listpiloterr website-screenshot --url https://example.com -o screenshot.pngecho '{"query": "B09DFCB66S"}' | piloterr amazon-product --params -
piloterr amazon-product --params params.json --compactpiloterr request get /v1/usage
piloterr request post /v1/some/new/endpoint --params body.jsonpiloterr amazon-product --query B09DFCB66S | jq .Exit codes
0: success1: API or network failure2: invalid usage, such as an unknown command, a missing API key or a missing parameter
Links
- Package:
@piloterr/cli - Source code: github.com/piloterr/piloterr-cli
- API reference