Page
bl content
Replace the page HTML content
Replace the page HTML content
Usage
bl content [html] [OPTIONS]Arguments
| Argument | Description |
|---|---|
[html] | HTML to set as the page content |
Options
| Option | Description |
|---|---|
--stdin | Read HTML from stdin |
--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 content "<h1>Hello World</h1>"
# Set page content directly
echo "<h1>Hello</h1>" | bl content --stdin
# Set page content from stdin