bdy target exec command
$bdy target exec command|cmd [options] <identifier> [command]
Execute a command on a target Required scopes: TARGET_USE
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$