openclawsetup 1.0.15 → 1.0.16

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 CHANGED
@@ -9,6 +9,8 @@
9
9
  - 自动创建配置文件和 workspace
10
10
  - 自动配置服务持久化(开机自启动)
11
11
  - 支持 macOS、Linux、Windows 三系统
12
+ - 安装/更新/卸载重装显示进度与预计剩余时间(基于网络测速,可能有误差)
13
+ - 云服务器自动检测公网 IP 并输出访问指引
12
14
  - 无需任何交互,全自动完成
13
15
 
14
16
  ## 快速开始
@@ -17,18 +19,18 @@
17
19
 
18
20
  **macOS / Linux:**
19
21
  ```bash
20
- curl -fsSL https://unpkg.com/openclawsetup/install.sh | bash
22
+ curl -fsSL https://unpkg.com/openclawsetup@latest/install.sh | bash
21
23
  ```
22
24
 
23
25
  **Windows PowerShell:**
24
26
  ```powershell
25
- irm https://unpkg.com/openclawsetup/install.ps1 | iex
27
+ irm https://unpkg.com/openclawsetup@latest/install.ps1 | iex
26
28
  ```
27
29
 
28
30
  ### 方式二:npx(需要已安装 Node.js 18+)
29
31
 
30
32
  ```bash
31
- npx openclawsetup
33
+ npx --yes openclawsetup@latest
32
34
  ```
33
35
 
34
36
  如果提示 `npx: command not found`,说明未安装 Node.js,请使用方式一。
@@ -59,48 +61,58 @@ npx openclawsetup
59
61
 
60
62
  ```bash
61
63
  # macOS/Linux - 一键脚本
62
- curl -fsSL https://unpkg.com/openclawsetup/install.sh | bash
64
+ curl -fsSL https://unpkg.com/openclawsetup@latest/install.sh | bash
63
65
 
64
66
  # 或者 npx(需要 Node.js)
65
- npx openclawsetup
67
+ npx --yes openclawsetup@latest
66
68
  ```
67
69
 
68
70
  ### 指定端口
69
71
 
70
72
  ```bash
71
73
  # macOS/Linux
72
- OPENCLAW_PORT=8080 npx openclawsetup
74
+ OPENCLAW_PORT=8080 npx --yes openclawsetup@latest
73
75
 
74
76
  # Windows PowerShell
75
- $env:OPENCLAW_PORT=8080; npx openclawsetup
77
+ $env:OPENCLAW_PORT=8080; npx --yes openclawsetup@latest
76
78
 
77
79
  # Windows CMD
78
- set OPENCLAW_PORT=8080 && npx openclawsetup
80
+ set OPENCLAW_PORT=8080 && npx --yes openclawsetup@latest
79
81
  ```
80
82
 
81
83
  ### 指定 Token
82
84
 
83
85
  ```bash
84
86
  # macOS/Linux
85
- GATEWAY_TOKEN="my-secret-token" npx openclawsetup
87
+ GATEWAY_TOKEN="my-secret-token" npx --yes openclawsetup@latest
86
88
 
87
89
  # Windows PowerShell
88
- $env:GATEWAY_TOKEN="my-secret-token"; npx openclawsetup
90
+ $env:GATEWAY_TOKEN="my-secret-token"; npx --yes openclawsetup@latest
89
91
 
90
92
  # Windows CMD
91
- set GATEWAY_TOKEN=my-secret-token && npx openclawsetup
93
+ set GATEWAY_TOKEN=my-secret-token && npx --yes openclawsetup@latest
92
94
  ```
93
95
 
94
96
  ### 命令行参数方式
95
97
 
96
98
  ```bash
97
- npx openclawsetup --port 8080 --token my-secret-token
99
+ npx --yes openclawsetup@latest --port 8080 --token my-secret-token
98
100
  ```
99
101
 
100
102
  ### 仅安装不启动
101
103
 
102
104
  ```bash
103
- npx openclawsetup --skip-start
105
+ npx --yes openclawsetup@latest --skip-start
106
+
107
+ ### 已安装用户:更新或重装
108
+
109
+ ```bash
110
+ # 检查并更新
111
+ npx --yes openclawsetup@latest --update
112
+
113
+ # 卸载后重新安装(会清除配置)
114
+ npx --yes openclawsetup@latest --reinstall
115
+ ```
104
116
  ```
105
117
 
106
118
  ## 安装后
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "openclawsetup",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "一键安装 OpenClaw - 自动完成基础部署,无需交互",
5
5
  "type": "module",
6
6
  "bin": {
7
- "openclawsetup": "./bin/cli.mjs"
7
+ "openclawsetup": "bin/cli.mjs"
8
8
  },
9
9
  "scripts": {
10
10
  "start": "node bin/cli.mjs"
@@ -36,6 +36,9 @@ $env:OPENCLAW_PORT=8080; npx --yes openclawsetup@latest
36
36
  set OPENCLAW_PORT=8080 && npx --yes openclawsetup@latest
37
37
  ```
38
38
 
39
+ ### 安装过程说明
40
+ 安装/更新/卸载重装过程中会显示进度与预计剩余时间(基于网络测速,可能有误差)。
41
+
39
42
  ### 已安装用户:更新或重装
40
43
 
41
44
  ```bash
@@ -58,6 +61,7 @@ npx --yes openclawsetup@latest --reinstall
58
61
  http://127.0.0.1:18789/?token=<你的token>
59
62
  ```
60
63
  Token 在安装完成时会显示。
64
+ 若为云服务器,会自动检测公网 IP 并展示 SSH 隧道命令;未显示时请手动替换 `<服务器IP>`。
61
65
 
62
66
  3. **配置聊天渠道(可选)**
63
67
  ```bash
@@ -72,7 +76,7 @@ npx --yes openclawsetup@latest --reinstall
72
76
  **原因**:未安装 Node.js
73
77
  **解决**:使用一键脚本安装(会自动安装 Node.js)
74
78
  ```bash
75
- curl -fsSL https://unpkg.com/openclawsetup/install.sh | bash
79
+ curl -fsSL https://unpkg.com/openclawsetup@latest/install.sh | bash
76
80
  ```
77
81
 
78
82
  ---