Skip to content

Introduction

Welcome to Lychee!

lychee finds broken URLs and mail addresses inside Markdown, HTML, reStructuredText, websites, and more!

Let’s go through some usage examples.

The following command recursively checks all links in all supported files inside the current directory.

Terminal window
lychee .
Terminal window
lychee https://example.com

Check Only Specific Files

Terminal window
lychee README.md
lychee test.html info.txt
lychee test.html info.txt https://example.com
Terminal window
lychee --offline path/to/directory
Terminal window
lychee https://raw.githubusercontent.com/lycheeverse/lychee/master/README.md
Terminal window
cat test.md | lychee -
echo 'https://example.com' | lychee -
Terminal window
lychee ~/projects/*/README.md

Advanced Globbing And ~ Expansion

Terminal window
lychee "~/projects/big_project/\*_/README._"
Terminal window
lychee --glob-ignore-case --verbose "~/projects/\*_/[r]eadme._"

If you have atool installed, you can check links inside .epub files as well!

Terminal window
acat -F zip {file.epub} "_.xhtml" "_.html" | lychee -