@syxs/tavily-cli
v1.0.0
Published
Unofficial Tavily command-line interface by SYXS. Search, extract, crawl, map, and research directly from your terminal.
Maintainers
Readme
Tavily CLI
Unofficial command-line interface for Tavily, built by SYXS. Search, extract, crawl, map, and run research directly from your terminal.
This is not an official Tavily package. It is maintained by SYXS.
Installation
Option 1: Local install (without npm publish)
git clone https://github.com/Lag0/tavily-cli.git
cd tavily-cli
pnpm install
pnpm run build
pnpm link --globalThen verify:
tavily --helpTo remove the global local link later:
pnpm unlink --global @syxs/tavily-cliOption 2: npm (if published)
npm install -g @syxs/tavily-cliOr run the one-shot setup flow:
TAVILY_API_KEY=tvly-your-key npx -y @syxs/tavily-cli@latest init --all --yesQuick Start
# Authenticate
export TAVILY_API_KEY=tvly-your-key
tavily login
# Check status
tavily status
# Search
tavily search "latest AI agent frameworks" --max-results 5
# Extract
tavily extract https://docs.tavily.com -o .tavily/docs.md
# Crawl
tavily crawl https://docs.tavily.com --max-depth 2 --limit 30
# Map
tavily map https://docs.tavily.com --max-depth 2
# Research
tavily research "Analyze current trends in retrieval-augmented generation" --model pro
# Diagnose local readiness
tavily doctor
tavily doctor --json --prettyCommands
search <query>: web searchextract [urls...]: content extractioncrawl <url>: site crawlingmap <url>: URL mappingresearch <input>: start research jobresearch-status <request-id>: fetch research status/resultlogin: save credentials from interactive input orTAVILY_API_KEYlogout: clear saved credentialsstatus: auth/version summarydoctor: local diagnostics with optional safe auto-remediation (--fix,--fix-check,--fix-dry-run)init: install + auth + skillssetup <skills|mcp>: install skill or MCP integrationenv: writeTAVILY_API_KEYto.env
Doctor Diagnostics
Use tavily doctor to validate local readiness before running Tavily workflows:
tavily doctorMachine-readable diagnostics:
tavily doctor --json --pretty
tavily doctor --output .tavily/doctor.jsonSafe remediation flow:
tavily doctor --fix-dry-run --json --pretty
tavily doctor --fix
tavily doctor --fix --fix-check auth.credentials_fileExit behavior for automation/CI:
- Exit
0: no required diagnostic failures - Exit
1: one or more required checks failed
Setup Skills and MCP
Install Tavily skill:
tavily setup skillsInstall Tavily remote MCP:
tavily setup mcpEquivalent direct commands:
npx [email protected] add https://github.com/lag0/tavily-cli/tree/main
npx [email protected] "npx -y [email protected] https://mcp.tavily.com/mcp" --name tavilyEnvironment Variables
TAVILY_API_KEYTAVILY_API_URL(optional, default:https://api.tavily.com)
Development
pnpm install
pnpm run type-check
pnpm run build
pnpm run test
pnpm run smokeRelease preflight gate chain:
pnpm run type-check && pnpm run test && pnpm run build && pnpm run smoke