firecrawl-download
GitHub将网站完整下载为本地文件,支持Markdown、截图等多格式。适用于离线保存文档或批量抓取内容。需认证,通过firecrawl x download命令执行,结合站点映射与抓取生成目录结构。
Trigger Scenarios
Install
npx skills add firecrawl/cli --skill firecrawl-download -g -y
SKILL.md
Frontmatter
{
"name": "firecrawl-download",
"description": "Download an entire website as local files — markdown, screenshots, or multiple formats per page. Use this skill when the user wants to save a site locally, download documentation for offline use, bulk-save pages as files, or says \"download the site\", \"save as local files\", \"offline copy\", \"download all the docs\", or \"save for reference\". Combines site mapping and scraping into organized local directories.\n",
"allowed-tools": [
"Bash(firecrawl *)",
"Bash(npx firecrawl-cli *)"
]
}
firecrawl download (invoked as firecrawl x download)
Experimental.
downloadis available under thefirecrawl xcommand group.
Prerequisite: download requires authentication (no keyless free tier); without credentials the CLI prompts an interactive login.
Maps the site origin first to discover pages, then scrapes each one into nested directories under .firecrawl/. Use --include-paths to scope a non-root URL to one section. Supported scrape options are listed below. Always pass -y to skip the confirmation prompt.
When to use
- You want to save an entire site (or section) to local files
- You need offline access to documentation or content
- Bulk content extraction with organized file structure
Quick start
# Interactive wizard (humans at a TTY only — agents must pass -y or the command blocks on a prompt)
firecrawl x download https://docs.example.com
# With screenshots
firecrawl x download https://docs.example.com --screenshot --limit 20 -y
# Multiple formats (each saved as its own file per page)
firecrawl x download https://docs.example.com --format markdown,links --screenshot --limit 20 -y
# Creates per page: index.md + links.txt + screenshot.png
# Filter to specific sections
firecrawl x download https://docs.example.com --include-paths "/features,/sdks" -y
# Skip translations
firecrawl x download https://docs.example.com --exclude-paths "/zh,/ja,/fr,/es,/pt-BR" -y
# Full combo
firecrawl x download https://docs.example.com \
--include-paths "/features,/sdks" \
--exclude-paths "/zh,/ja" \
--only-main-content \
--screenshot \
-y
Download options
| Option | Description |
|---|---|
--limit <n> |
Max pages to download |
--search <query> |
Filter URLs by search query |
--include-paths <paths> |
Only download matching paths |
--exclude-paths <paths> |
Skip matching paths |
--allow-subdomains |
Include subdomain pages |
-y |
Skip confirmation prompt (always use in automated flows) |
Supported scrape options
Only the options listed below are supported:
-f <formats>, -H, -S, --lockdown, --screenshot, --full-page-screenshot, --only-main-content, --include-tags, --exclude-tags, --wait-for, --max-age, --country, --languages
See also
- firecrawl-map — just discover URLs without downloading
- firecrawl-scrape — scrape individual pages
- firecrawl-crawl — bulk extract as JSON (not local files)
Version History
-
253abde
Current 2026-08-19 19:06
修正了命令示例(改为firecrawl x download)、补充认证要求说明、修复选项描述错误及交互式提示对Agent的影响。
- 6c50c5d 2026-07-24 11:49


