Tabs
bl tab
Manage browser tabs (new, close, switch)
Manage browser tabs (new, close, switch)
Usage
bl tab [OPTIONS]
bl tab <command>Options
| Option | Description |
|---|---|
--headless | Hide browser window (visible by default) |
--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 |
bl tab new
Open a new browser tab
Usage
bl tab new [url] [OPTIONS]Arguments
| Argument | Description |
|---|---|
[url] | URL to navigate the new tab to (omit for a blank tab) |
Options
| Option | Description |
|---|---|
--headless | Hide browser window (visible by default) |
--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 tab new
# Open a blank new tab
bl tab new https://example.com
# Open a new tab and navigate to URLbl tab close
Close a browser tab by index (default: current tab)
Usage
bl tab close [index] [OPTIONS]Arguments
| Argument | Description |
|---|---|
[index] | Index of the tab to close (default: current tab) |
Options
| Option | Description |
|---|---|
--headless | Hide browser window (visible by default) |
--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 tab close
# Close the current tab
bl tab close 1
# Close the tab at index 1bl tab switch
Switch to a browser tab by index or URL substring
Usage
bl tab switch <target> [OPTIONS]Arguments
| Argument | Description |
|---|---|
<target> | Tab index, or a substring to match against tab URLs |
Options
| Option | Description |
|---|---|
--headless | Hide browser window (visible by default) |
--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 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