# links

URL: /bengal/cli/inspect/links/
Section: inspect
Description: Check internal and external links

---

> For a complete page index, fetch /bengal/llms.txt.

Open LLM text
(/bengal/cli/inspect/links/index.txt)

Share with AI

Ask Claude
(https://claude.ai/new?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fbengal%2Fcli%2Finspect%2Flinks%2Findex.txt)

Ask ChatGPT
(https://chatgpt.com/?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fbengal%2Fcli%2Finspect%2Flinks%2Findex.txt)

Ask Gemini
(https://gemini.google.com/app?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fbengal%2Fcli%2Finspect%2Flinks%2Findex.txt)

Ask Copilot
(https://copilot.microsoft.com/?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fbengal%2Fcli%2Finspect%2Flinks%2Findex.txt)

Command

#
`bengal inspect links`

Check internal and external links

13Options

## Usage

```
bengal inspect links [OPTIONS]
```

## Options

Option
Type
Description

`--exclude`

`STRING`

URL patterns to exclude, comma-separated (regex supported)

`--exclude-domain`

`STRING`

Domains to exclude, comma-separated

`--external-only`

flag

`BOOLEAN`

Only check external links

`--ignore-status`

`STRING`

Status codes/ranges to ignore, comma-separated

`--internal-only`

flag

`BOOLEAN`

Only check internal links

`--max-concurrency`

`INTEGER`

Maximum concurrent HTTP requests

Default:`0`

`--output-file`

`STRING`

Output file (for JSON format)

`--output-format`

`STRING`

Output format: console or json

Default:`console`

`--per-host-limit`

`INTEGER`

Maximum concurrent requests per host

Default:`0`

`--retries`

`INTEGER`

Number of retry attempts

Default:`0`

`--retry-backoff`

`NUMBER`

Base backoff time for exponential backoff

Default:`0.0`

`--source`

`STRING`

Source directory path

`--timeout`

`NUMBER`

Request timeout in seconds

Default:`0.0`
