@yyy9527/openclaw-manager 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/package.json +2 -2
- package/scripts/openclaw_ctl.sh +6 -6
package/README.md
CHANGED
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
cp config/openclaw.env.example config/openclaw.env
|
|
24
24
|
cp .env.example .env
|
|
25
25
|
npm run setup
|
|
26
|
-
npm run
|
|
26
|
+
npm run deploy
|
|
27
27
|
npm run status
|
|
28
28
|
npm run help
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
> 首次执行 `npm run
|
|
31
|
+
> 首次执行 `npm run deploy` 需要拉取官方镜像,可能耗时较长(取决于网络)。
|
|
32
32
|
> clawhub 在 macOS 安装后,只有把 skills 安装到 `OPENCLAW_HOME_ROOT` 可见目录并挂载到容器,才能持久化并在容器内生效。
|
|
33
33
|
|
|
34
34
|
## 3. 常用命令
|
|
35
35
|
|
|
36
36
|
- `npm run help`:查看友好的 CLI 帮助
|
|
37
37
|
- `npm run setup`:初始化环境(幂等)
|
|
38
|
-
- `npm run
|
|
38
|
+
- `npm run deploy`:按配置启动全部实例
|
|
39
39
|
- `npm run start` / `npm run stop` / `npm run restart`
|
|
40
40
|
- `npm run status`:查看实例状态
|
|
41
41
|
- `npm run list:claw`:列出当前配置的 claw 名称
|
|
@@ -61,9 +61,9 @@ npm run help
|
|
|
61
61
|
脚本入口支持统一全局参数:
|
|
62
62
|
|
|
63
63
|
```bash
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
openclaw-manager --help
|
|
65
|
+
openclaw-manager --config ./config/openclaw.dev.env status
|
|
66
|
+
openclaw-manager --config ./config/openclaw.prod.env --env-file ./.env.prod apply-config
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
如果通过 `npm run` 使用,也可以把参数透传给底层脚本(注意 `--`):
|
|
@@ -181,8 +181,8 @@ npm run set-model:qwen
|
|
|
181
181
|
|
|
182
182
|
```bash
|
|
183
183
|
npm pack
|
|
184
|
-
npx openclaw-manager --help
|
|
185
|
-
npx
|
|
184
|
+
npx @yyy9527/openclaw-manager --help
|
|
185
|
+
npx @yyy9527/openclaw-manager status
|
|
186
186
|
```
|
|
187
187
|
|
|
188
188
|
发布前建议:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yyy9527/openclaw-manager",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "OpenClaw multi-instance manager for macOS with docker, TUI, and collaboration workflow.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"ctl": "bash ./scripts/openclaw_ctl.sh",
|
|
22
22
|
"help": "bash ./scripts/openclaw_ctl.sh --help",
|
|
23
23
|
"setup": "bash ./scripts/setup_env.sh",
|
|
24
|
-
"
|
|
24
|
+
"deploy": "bash ./scripts/install_openclaw.sh",
|
|
25
25
|
"start": "bash ./scripts/openclaw_ctl.sh start",
|
|
26
26
|
"stop": "bash ./scripts/openclaw_ctl.sh stop",
|
|
27
27
|
"restart": "bash ./scripts/openclaw_ctl.sh restart",
|
package/scripts/openclaw_ctl.sh
CHANGED
|
@@ -14,7 +14,7 @@ usage() {
|
|
|
14
14
|
OpenClaw Manager CLI(多实例运维入口)
|
|
15
15
|
|
|
16
16
|
用法:
|
|
17
|
-
|
|
17
|
+
openclaw-manager [--config <path>] [--env-file <path>] <command> [args]
|
|
18
18
|
|
|
19
19
|
全局参数:
|
|
20
20
|
-h, --help 显示帮助
|
|
@@ -23,7 +23,7 @@ OpenClaw Manager CLI(多实例运维入口)
|
|
|
23
23
|
|
|
24
24
|
命令:
|
|
25
25
|
setup
|
|
26
|
-
install
|
|
26
|
+
install | deploy
|
|
27
27
|
start | stop | restart | status
|
|
28
28
|
logs [service]
|
|
29
29
|
list-claw
|
|
@@ -40,8 +40,8 @@ OpenClaw Manager CLI(多实例运维入口)
|
|
|
40
40
|
self-test
|
|
41
41
|
|
|
42
42
|
示例:
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
openclaw-manager --config ./config/openclaw.dev.env status
|
|
44
|
+
openclaw-manager --env-file ./.env.prod start-claw master
|
|
45
45
|
EOF
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -238,7 +238,7 @@ case "${command}" in
|
|
|
238
238
|
setup)
|
|
239
239
|
"${PROJECT_ROOT}/scripts/setup_env.sh"
|
|
240
240
|
;;
|
|
241
|
-
install)
|
|
241
|
+
install|deploy)
|
|
242
242
|
run_install
|
|
243
243
|
;;
|
|
244
244
|
start)
|
|
@@ -269,7 +269,7 @@ case "${command}" in
|
|
|
269
269
|
;;
|
|
270
270
|
chat-claw)
|
|
271
271
|
claw_name="${2:-}"
|
|
272
|
-
[ -n "${claw_name}" ] || { echo "用法:
|
|
272
|
+
[ -n "${claw_name}" ] || { echo "用法: openclaw-manager chat-claw <name>" >&2; exit 1; }
|
|
273
273
|
chat_with_claw "${claw_name}"
|
|
274
274
|
;;
|
|
275
275
|
status-claw)
|