CLI Reference

Command-line interface for Jiro. Serve, diagnose, search, and configure from the terminal.

Installation

The Jiro CLI is included with the Python package. Requires Python 3.10+.

Install globally with pip: - pip install jirosearch

Verify the installation: - jiro --version

The CLI provides commands for serving, searching, diagnosing, and configuring Jiro.

bash
bash

Commands

Complete list of all Jiro CLI commands:

Commands

NameTypeDescription
jiro serve
commandStart the Jiro API server. Accepts --host, --port, --workers, and --license-token flags.
jiro search <query>
commandSearch the web. Accepts --engine, --pages, --safe, and --base-url flags.
jiro ai <query>
commandAI-powered search with multi-step reasoning. Accepts --model flag.
jiro scrape <url>
commandScrape and extract content from a URL. Accepts --format (markdown/text) flag.
jiro doctor
commandRun built-in diagnostics. Checks Python, dependencies, Redis, config, and package integrity.
jiro status
commandShow server status, version, credit balance, and enterprise license info.
jiro mcp setup
commandConfigure MCP for your AI coding client. Accepts --client flag.
jiro mcp serve
commandStart the MCP server for stdio transport. Used by MCP clients.
jiro bench
commandRun performance benchmarks. Accepts --iterations, --engine, and --concurrent flags.
jiro --version
commandShow version information (e.g., `jiro v0.2.15`).
jiro --help
commandShow help for all commands or a specific command.

jiro serve

Start the Jiro API server. The server listens for incoming requests and proxies them to the configured search engines.

By default, the server starts on 0.0.0.0:8000. Use flags to customise the bind address, port, and worker count.

bash

jiro ai

AI-powered search with multi-step reasoning. Runs multiple searches, analyses results, and synthesises a comprehensive answer.

Ideal for research questions, comparisons, and multi-faceted topics.

bash

jiro doctor

Run built-in diagnostics to check system health. Verifies Python version, dependencies, Redis connection, configuration validity, and package integrity.

Use this command when troubleshooting issues or after upgrading.

bash

jiro status

Show server status, version, credit balance, and enterprise license information.

bash

jiro bench

Run performance benchmarks to measure throughput, latency, and engine response times.

bash

Global Flags

Flags available on all commands:

Global Flags

NameTypeDescription
--base-url
stringBase URL of the Jiro server. Default: `http://localhost:8000`. Overrides JIRO_BASE_URL env var.
--api-key
stringAPI key for authentication. Overrides JIRO_API_KEY env var.
--format
stringOutput format. Options: `json`, `text`, `table`. Default: `json`.
--verbose
booleanEnable verbose output. Shows request/response details.
--no-color
booleanDisable coloured output.

Need help?

Check our error codes or reach out to the team.