Interaction

bl keyboard

Type or insert text at the current focus (no selector)

Type or insert text at the current focus (no selector)

Usage

bl keyboard [OPTIONS]
bl keyboard <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 keyboard type

Type text at the current focus, generating key events

Usage

bl keyboard type <text> [OPTIONS]

Arguments

ArgumentDescription
&lt;text&gt;Text to type

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 keyboard type "hello world"
# Type into the focused element

bl keyboard inserttext

Insert text at the current focus WITHOUT key events (IME/paste-like)

Usage

bl keyboard inserttext <text> [OPTIONS]

Arguments

ArgumentDescription
&lt;text&gt;Text to insert

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 keyboard inserttext "héllo"
# Insert without keydown/keyup events

On this page