bdy target exec
$bdy target exec [options] [command]
Run commands on a target and manage executions
Examples
Return the execution state using semantic exit codesbdy target exec command target-identifier "SELECT 1" --exit-code$
Run a command on a target and print its outputbdy tg exec command target-identifier "ls -la"$
Run SQL on a MySQL targetbdy tg exec command target-identifier "SELECT 1"$
Start a command in background and return the execution idbdy tg exec command target-identifier "ls -la" --async$
Run a command from a filebdy tg exec command target-identifier --file ./query.sql$
Print the result with execution metadata as JSONbdy tg exec command target-identifier "SELECT 1" --format json$
Cancel running executionbdy tg exec kill exec-id$
Cancel running execution and automatically confirmbdy tg exec kill exec-id -f$
List executions of a targetbdy tg exec ls target-identifier$
List last 5 executionsbdy tg exec ls target-identifier --limit 5$
Return the execution state using semantic exit codesbdy target exec logs exec-id --exit-code$
Show logs of executionbdy tg exec logs exec-id$
Show logs of execution starting from line 100bdy tg exec logs exec-id --offset 100$
Return log records as JSONLbdy target exec logs execution-id --format jsonl$
Return the execution state using semantic exit codesbdy target exec status exec-id --exit-code$
Show status of executionbdy tg exec status exec-id$