browserlane
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

FlagDescription
--state stringWindow state: normal, maximized, minimized, fullscreen

Global flags

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