CLI Evidence: List
list(有数据)
$ abx list
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━┓
┃ ID ┃ Template ┃ Status ┃ Region ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━┩
│ sbx-list-001 │ python-base │ running │ cn-hangzhou │
│ sbx-list-002 │ node-web │ stopped │ cn-shanghai │
└──────────────┴─────────────┴─────────┴─────────────┘
Exit code: 0
--json list
$ abx --json list
[
{
"ID": "sbx-list-001",
"Template": "python-base",
"Status": "running",
"Region": "cn-hangzhou"
},
{
"ID": "sbx-list-002",
"Template": "node-web",
"Status": "stopped",
"Region": "cn-shanghai"
}
]
Exit code: 0
list --status running
$ abx list --status running
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━┓
┃ ID ┃ Template ┃ Status ┃ Region ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━┩
│ sbx-list-001 │ python-base │ running │ cn-hangzhou │
└──────────────┴─────────────┴─────────┴─────────────┘
Exit code: 0
list(空)
$ abx list
No sandboxes found.
Exit code: 0