# 查看帮助
usage: cli.py [-h] {console,hostinfo,net,bridge,pool,vm,vol} ...
Libvirt CLI Tool
positional arguments:
{console,hostinfo,net,bridge,pool,vm,vol}
console Attach to VM console
hostinfo Host related operations
net Net related operations
bridge Bridge related operations
pool Storage pool related operations
vm Virtual machine related operations
vol Volumes related operations
options:
-h, --help show this help message and exit
# 连接console:
[root@localhost ~]# python cli.py console rocky9-by-cli-create
Escape character is ^] (CTRL+])
[root@test ~]#