首页/数据 & AI/tavily-cli
T

tavily-cli

by @tavily-aiv
4.5(93)

Tavily命令行工具,提供强大的网络搜索、内容提取、网站爬取、URL发现及深度研究功能,助力高效获取网络信息。

web-searchinformation-retrievalcli-toolsdata-extractionai-searchGitHub
安装方式
npx skills add tavily-ai/skills --skill tavily-cli
compare_arrows

Before / After 效果对比

1
使用前

过去进行网络搜索、内容提取或网站爬取时,需要分别使用不同的工具和脚本,操作流程复杂且效率不高。

使用后

Tavily CLI技能提供统一命令行接口,一站式完成网页搜索、内容提取和网站爬取,极大简化数据获取流程。

SKILL.md

tavily-cli

Tavily CLI

Web search, content extraction, site crawling, URL discovery, and deep research. Returns JSON optimized for LLM consumption.

Run tvly --help or tvly <command> --help for full option details.

Prerequisites

Must be installed and authenticated. Check with tvly --status.

tavily v0.1.0

> Authenticated via OAuth (tvly login)

If not ready:

curl -fsSL https://cli.tavily.com/install.sh | bash

Or manually: uv tool install tavily-cli / pip install tavily-cli

Then authenticate:

tvly login --api-key tvly-YOUR_KEY
# or: export TAVILY_API_KEY=tvly-YOUR_KEY
# or: tvly login  (opens browser for OAuth)

Workflow

Follow this escalation pattern — start simple, escalate when needed:

  • Search — No specific URL. Find pages, answer questions, discover sources.

  • Extract — Have a URL. Pull its content directly.

  • Map — Large site, need to find the right page. Discover URLs first.

  • Crawl — Need bulk content from an entire site section.

  • Research — Need comprehensive, multi-source analysis with citations.

Need Command When

Find pages on a topic tvly search No specific URL yet

Get a page's content tvly extract Have a URL

Find URLs within a site tvly map Need to locate a specific subpage

Bulk extract a site section tvly crawl Need many pages (e.g., all /docs/)

Deep research with citations tvly research Need multi-source synthesis

For detailed command reference, use the individual skill for each command (e.g., tavily-search, tavily-crawl) or run tvly <command> --help.

Output

All commands support --json for structured, machine-readable output and -o to save to a file.

tvly search "react hooks" --json -o results.json
tvly extract "https://example.com/docs" -o docs.md
tvly crawl "https://docs.example.com" --output-dir ./docs/

Tips

  • Always quote URLs — shell interprets ? and & as special characters.

  • Use --json for agentic workflows — every command supports it.

  • Read from stdin with -echo "query" | tvly search -

  • Exit codes: 0 = success, 2 = bad input, 3 = auth error, 4 = API error.

Weekly Installs281Repositorytavily-ai/skillsGitHub Stars95First Seen2 days agoSecurity AuditsGen Agent Trust HubPassSocketPassSnykFailInstalled oncodex275cursor275opencode274kimi-cli273gemini-cli273amp273

用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量7.0K
评分4.5 / 5.0
版本
更新日期2026年5月22日
对比案例1 组

用户评分

4.5(93)
5
16%
4
49%
3
30%
2
4%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code

时间线

创建2026年3月18日
最后更新2026年5月22日