CLI referenceBrowser state & emulation
bl window
Get or set the OS browser window size, position, or state
Get or set the OS browser window size, position, or state
Usage
bl window [width] [height] [x] [y] [flags]Flags
| Flag | Description |
|---|---|
--state string | Window state: normal, maximized, minimized, fullscreen |
Global flags
| Flag | Description |
|---|---|
--headless | Hide browser window (visible by default) |
--json | Output as JSON |
-v, --verbose | Enable debug logging |
Examples
bl window
# {"state":"normal","x":0,"y":25,"width":1280,"height":720}
bl window 1920 1080
# Set window to 1920x1080
bl window 1920 1080 0 0
# Set window to 1920x1080 at position (0, 0)
bl window --state maximized
# Maximize the window