Capture
bl screenshot
Capture a screenshot (optionally navigate to URL first)
Capture a screenshot (optionally navigate to URL first)
Usage
bl screenshot [url] [OPTIONS]Arguments
| Argument | Description |
|---|---|
[url] | URL to navigate to before capturing |
Options
| Option | Description |
|---|---|
-o, --output <value> | Output file path (default screenshot.png) |
--full-page | Capture the full page instead of just the viewport |
--annotate | Annotate interactive elements with numbered labels |
--json | Output as JSON |
--session <value> | Run this command in the named session (env: BL_SESSION; default: "default") |
Global options
| Option | Description |
|---|---|
-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)