Tabs

bl tab

Manage browser tabs (new, close, switch)

Manage browser tabs (new, close, switch)

Usage

bl tab [OPTIONS]
bl tab <command>

Options

OptionDescription
--headlessHide browser window (visible by default)
--jsonOutput as JSON
--session <value>Run this command in the named session (env: BL_SESSION; default: "default")

Global options

OptionDescription
-v, --verboseEnable debug logging

bl tab new

Open a new browser tab

Usage

bl tab new [url] [OPTIONS]

Arguments

ArgumentDescription
[url]URL to navigate the new tab to (omit for a blank tab)

Options

OptionDescription
--headlessHide browser window (visible by default)
--jsonOutput as JSON
--session <value>Run this command in the named session (env: BL_SESSION; default: "default")

Global options

OptionDescription
-v, --verboseEnable debug logging

Examples

bl tab new
# Open a blank new tab

bl tab new https://example.com
# Open a new tab and navigate to URL

bl tab close

Close a browser tab by index (default: current tab)

Usage

bl tab close [index] [OPTIONS]

Arguments

ArgumentDescription
[index]Index of the tab to close (default: current tab)

Options

OptionDescription
--headlessHide browser window (visible by default)
--jsonOutput as JSON
--session <value>Run this command in the named session (env: BL_SESSION; default: "default")

Global options

OptionDescription
-v, --verboseEnable debug logging

Examples

bl tab close
# Close the current tab

bl tab close 1
# Close the tab at index 1

bl tab switch

Switch to a browser tab by index or URL substring

Usage

bl tab switch <target> [OPTIONS]

Arguments

ArgumentDescription
&lt;target&gt;Tab index, or a substring to match against tab URLs

Options

OptionDescription
--headlessHide browser window (visible by default)
--jsonOutput as JSON
--session <value>Run this command in the named session (env: BL_SESSION; default: "default")

Global options

OptionDescription
-v, --verboseEnable debug logging

Examples

bl tab switch 1
# Switch to the tab at index 1

bl tab switch google.com
# Switch to the tab containing "google.com" in its URL

On this page