Setup
bl text
Get text content of the page or an element
Get text content of the page or an element
Usage
bl text [args...] [OPTIONS]Arguments
| Argument | Description |
|---|---|
[args...] | CSS selector, or a URL to navigate to first (optionally followed by a selector) |
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 text
# Get all page text
bl text "h1"
# Get text of a specific element
bl text https://example.com
# Navigate then get all page text
bl text https://example.com "h1"
# Navigate then get element text