amz amazon-cli

Amazon.in. One command.

Amazon in your terminal

amz lets you search products, compare prices, read reviews, and explore Amazon.in directly from your terminal -- with rich tables, JSON output, and zero browser needed.

Search Compare Reviews Product Details JSON Output Rich Tables

Tip: use --json for scripting or --plain for piping to other tools.


$ uv tool install git+https://github.com/sunil-dhaka/amazon-cli.git
$ amz search "sony headphones" --sort price_asc

$ amz product B0DBVVW9XF
$ amz compare B0DBVVW9XF B0DJMLWK7B
$ amz reviews B0DBVVW9XF --json | jq '.reviews[].title'
Output
tables / --plain / --json
Data Source
Amazon.in SSR (no API key needed)
Stack
Python 3.12+ / httpx / selectolax

Install

uv, pipx, pip, or from source.

uv (recommended)

uv tool install git+https://github.com/sunil-dhaka/amazon-cli.git

From source

git clone https://github.com/sunil-dhaka/amazon-cli.git
cd amazon-cli
uv sync
uv run amz --help

Quickstart

No API keys. No auth. Just search.

1

Install

One command with uv.

uv tool install git+https://github.com/sunil-dhaka/amazon-cli.git
2

Search products

Full-text search with sort and pagination.

amz search "laptop" --sort price_asc --page 2
3

Explore details

Get full specs, pricing, and reviews.

amz product B0DBVVW9XF

Export to JSON

All commands support --json for scripting and --plain for tab-separated piping.

amz search "keyboards" --json | jq '.products[].title'

Commands

Search, compare, and explore products.

search

Full-text product search with sort by relevance, price, reviews, newest, or discount. Pagination built-in.

product

Full product details: pricing, rating histogram, AI customer insights, specs, and available sizes.

compare

Side-by-side comparison of 2+ products. See price, rating, and key specs at a glance.

reviews

Customer reviews with star ratings, verified purchase badges, and helpful vote counts.

Examples

A few commands you'll reach for.

Find cheap headphones

amz search "bluetooth headphones" --sort price_asc

Pipe JSON for scripting.

amz search "laptops" --json | jq '.products[] | {title, price}'

Compare before you buy

amz compare B0DBVVW9XF B0DJMLWK7B B0CHP56CBB

Get reviews in JSON.

amz reviews B0DBVVW9XF --json | jq '.reviews[] | .title'