A fast, async link checker
Finds broken URLs and mail addresses inside Markdown, HTML, `reStructuredText`, websites and more!
Usage: lychee [OPTIONS] <inputs>...
The inputs (where to get links to check from). These can be: files (e.g. `README.md`), file globs (e.g. `"~/git/*/README.md"`), remote URLs (e.g. `https://example.com/README.md`) or standard input (`-`). NOTE: Use `--` to separate inputs from options that allow multiple arguments
-c, --config <CONFIG_FILE>
Configuration file to use
Set verbosity level; more output per occurrence (e.g. `-v` or `-vv`)
Less output per occurrence (e.g. `-q` or `-qq`)
Do not show progress bar.
This is recommended for non-interactive shells (e.g. for continuous integration)
Use request cache stored on disk at `.lycheecache`
--max-cache-age <MAX_CACHE_AGE>
Discard all cached requests older than this duration
Don't perform any link checking. Instead, dump all the links extracted from inputs that would be checked
Don't perform any link extraction and checking. Instead, dump all input sources from which links would be collected
Specify the use of a specific web archive. Can be used in combination with `--suggest`
[possible values: wayback]
Suggest link replacements for broken links, using a web archive. The web archive can be specified with `--archive`
-m, --max-redirects <MAX_REDIRECTS>
Maximum number of allowed redirects
--max-retries <MAX_RETRIES>
Maximum number of retries per request
--max-concurrency <MAX_CONCURRENCY>
Maximum number of concurrent network requests
Number of threads to utilize. Defaults to number of cores available to the system
-u, --user-agent <USER_AGENT>
Proceed for server connections considered insecure (invalid TLS)
Only test links with the given schemes (e.g. https). Omit to check links with any other scheme. At the moment, we support http, https, file, and mailto
Only check local files and block network requests
URLs to check (supports regex). Has preference over all excludes
Exclude URLs and mail addresses from checking (supports regex)
--exclude-file <EXCLUDE_FILE>
Deprecated; use `--exclude-path` instead
--exclude-path <EXCLUDE_PATH>
Exclude file path from getting checked
-E, --exclude-all-private
Exclude all private IPs from checking.
Equivalent to `--exclude-private --exclude-link-local --exclude-loopback`
Exclude private IP address ranges from checking
Exclude link-local IP address range from checking
Exclude loopback IP address range and localhost from checking
Exclude all mail addresses from checking (deprecated; excluded by default)
Also check email addresses
Remap URI matching pattern to different URI
--fallback-extensions <FALLBACK_EXTENSIONS>
Test the specified file extensions for URIs when checking files locally.
Multiple extensions can be separated by commas. Extensions will be checked in
Example: --fallback-extensions html,htm,php,asp,aspx,jsp,cgi
A List of accepted status codes for valid links
The following accept range syntax is supported: [start]..[=]end|code. Some valid
Use "lychee --accept '200..=204, 429, 500' <inputs>..." to provide a comma-
separated list of accepted status codes. This example will accept 200, 201,
202, 203, 204, 429, and 500 as valid status codes.
[default: 100..=103,200..=299]
Enable the checking of fragments in links
Website timeout in seconds from connect to response finished
-r, --retry-wait-time <RETRY_WAIT_TIME>
Minimum wait time in seconds between retries of failed requests
Base URL or website root directory to check relative URLs e.g. https://example.com or `/path/to/public`
--basic-auth <BASIC_AUTH>
Basic authentication support. E.g. `http://example.com username:password`
--github-token <GITHUB_TOKEN>
GitHub API token to use when checking github.com links, to avoid rate limiting
Skip missing input files (default is to error if they don't exist)
Find links in verbatim sections like `pre`- and `code` blocks
Ignore case when expanding filesystem path glob inputs
Output file of status report
Output format of final status report (compact, detailed, json, markdown)
When HTTPS is available, treat HTTP links as errors
--cookie-jar <COOKIE_JAR>
Tell lychee to read cookies from the given file. Cookies will be stored in the cookie jar and sent with requests. New cookies will be stored in the cookie jar and existing cookies will be updated
Print help (see a summary with '-h')