CLI Evidence: Exec
exec 基本命令
$ abx exec sbx-ev-001 "echo hello"
hello
Exit code: 0
--json exec
$ abx --json exec sbx-ev-001 "echo hello"
{
"stdout": "hello\n",
"stderr": "",
"exit_code": 0,
"execution_time": 0.1
}
Exit code: 0
exec 非零退出码
$ abx exec sbx-ev-001 bad_cmd
Exit code: 127
stderr:
command not found
exec --timeout --cwd
$ abx exec --timeout 10 --cwd /tmp sbx-ev-001 ls
file1
file2
Exit code: 0