x-search-cli
v0.1.0
Published
A small CLI for querying X through xAI X Search.
Readme
x-search-cli
A small CLI for querying X through xAI's X Search tool.
Install
npm install -g x-search-cliFor local development:
pnpm install
pnpm build
npm install -g .Authorize
x-search auth loginThe API key is stored at:
~/.config/x-search-cli/config.jsonCheck or remove the saved local authorization:
x-search auth status
x-search auth logoutSearch
x-search "What are people saying about xAI on X?"By default, x-search shows a progress indicator while searching and prints
only the natural-language answer, with Markdown rendered for the terminal.
Use JSON output when you need raw Markdown and sources:
x-search "What are people saying about xAI on X?" --jsonRestrict the X Search date range:
x-search "launch reactions" --from 2026-05-01 --to 2026-05-17Use another xAI Responses model:
x-search "What are people saying about xAI on X?" --model grok-4.3