Files
tldr/pages.zh/common/lychee.md

493 B
Raw Permalink Blame History

荔枝

查找损坏的 URL。 更多信息:https://lychee.cli.rs/usage/cli/.

  • 扫描网站以查找损坏的链接:

lychee {{https://example.com}}

  • 显示错误类型的详细分类:

lychee --format detailed {{https://example.com}}

  • 限制连接数量以防止 DDOS 保护:

lychee --max-concurrency {{5}} {{links.txt}}

  • 检查目录结构中的文件是否有任何损坏的 URL

grep -r "{{pattern}}" | lychee -

  • 显示帮助信息:

lychee --help