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 codes
bdy target exec command target-identifier "SELECT 1" --exit-code$Run a command on a target and print its output
bdy tg exec command target-identifier "ls -la"$Run SQL on a MySQL target
bdy tg exec command target-identifier "SELECT 1"$Start a command in background and return the execution id
bdy tg exec command target-identifier "ls -la" --async$Run a command from a file
bdy tg exec command target-identifier --file ./query.sql$Print the result with execution metadata as JSON
bdy tg exec command target-identifier "SELECT 1" --format json$