CLI referenceCapture
bl screenshot
Capture a screenshot (optionally navigate to URL first)
Capture a screenshot (optionally navigate to URL first)
Usage
bl screenshot [url] [flags]Flags
| Flag | Description |
|---|---|
--annotate | Annotate interactive elements with numbered labels |
--full-page | Capture the full page instead of just the viewport |
-o, --output string | Output file path (default "screenshot.png") |
Global flags
| Flag | Description |
|---|---|
--headless | Hide browser window (visible by default) |
--json | Output as JSON |
-v, --verbose | Enable debug logging |
Examples
bl screenshot -o shot.png
# Screenshots the current page
bl screenshot https://example.com -o shot.png
# Navigates to URL first, then screenshots
bl screenshot -o full.png --full-page
# Capture the entire page (not just the viewport)