browserlane
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

FlagDescription
--annotateAnnotate interactive elements with numbered labels
--full-pageCapture the full page instead of just the viewport
-o, --output stringOutput file path (default "screenshot.png")

Global flags

FlagDescription
--headlessHide browser window (visible by default)
--jsonOutput as JSON
-v, --verboseEnable 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)