<!-- GENERATED FILE — do not edit. Rebuilt by scripts/docs_site/generate_reference.py from openprogram/interfaces/cli/parser.py. -->


# 机器

管理 OpenProgram 能连接的机器；项目是其中一台机器上的一个文件夹

```text
usage: openprogram machines [-h] verb ...
```

## `machines list`

列出机器

| 参数 | 说明 |
|---|---|
| `--kinds` | 同时列出连接方式及其设置项 |

## `machines add`

添加或替换一台机器

| 参数 | 说明 |
|---|---|
| `id` | 简短 ID：小写字母、数字、'-' 或 '_'；之后不能更改 |
| `--name` `NAME` | 显示名称（默认：ID） |
| `METHOD [KEY=VALUE ...]` | 怎样连接这台机器：先写连接方式（ssh、docker、osworld 等），再用 KEY=VALUE 写设置项；`machines list --kinds` 会列出它们 |

## `machines remove`

删除一台机器

| 参数 | 说明 |
|---|---|
| `id` | 机器 ID |

## `machines enable`

启用一台机器

| 参数 | 说明 |
|---|---|
| `id` | 机器 ID |

## `machines disable`

停用一台机器：任何功能都不再使用它，它上面的项目也不再运行

| 参数 | 说明 |
|---|---|
| `id` | 机器 ID |

## `machines test`

检查一台机器能否响应

| 参数 | 说明 |
|---|---|
| `id` | 机器 ID |
