ljw 1 год назад
Родитель
Сommit
24b7338153
2 измененных файлов с 26 добавлено и 1 удалено
  1. 13 0
      README.md
  2. 13 1
      README_EN.md

+ 13 - 0
README.md

@@ -39,6 +39,8 @@
39
     - 自动获取ID服务器和KEY
39
     - 自动获取ID服务器和KEY
40
     - 自动获取地址簿
40
     - 自动获取地址簿
41
     - 游客通过临时分享链接直接远程到设备
41
     - 游客通过临时分享链接直接远程到设备
42
+- CLI
43
+    - 重置管理员密码
42
 
44
 
43
 ## 使用前准备
45
 ## 使用前准备
44
 
46
 
@@ -147,6 +149,17 @@
147
 2. PC端文档 `<youer server[:port]>/swagger/index.html`
149
 2. PC端文档 `<youer server[:port]>/swagger/index.html`
148
    ![api_swag](docs/api_swag.png)
150
    ![api_swag](docs/api_swag.png)
149
 
151
 
152
+### CLI
153
+```bash
154
+# 查看帮助
155
+./apimain -h
156
+```
157
+
158
+#### 重置管理员密码
159
+```bash
160
+./apimain reset-admin-pwd <pwd>
161
+```
162
+
150
 ## 安装与运行
163
 ## 安装与运行
151
 
164
 
152
 ### 相关配置
165
 ### 相关配置

+ 13 - 1
README_EN.md

@@ -38,7 +38,8 @@ desktop software that provides self-hosted solutions.
38
     - Automatically obtain ID server and KEY
38
     - Automatically obtain ID server and KEY
39
     - Automatically obtain address book
39
     - Automatically obtain address book
40
     - Visitors are remotely to the device via a temporary sharing link
40
     - Visitors are remotely to the device via a temporary sharing link
41
-
41
+- CLI
42
+    - Reset admin password
42
 ## Prerequisites
43
 ## Prerequisites
43
 
44
 
44
 ### [Rustdesk](https://github.com/rustdesk/rustdesk)
45
 ### [Rustdesk](https://github.com/rustdesk/rustdesk)
@@ -153,6 +154,17 @@ installation are `admin` `admin`, please change the password immediately.
153
 2. PC client docs: `<your server[:port]>/swagger/index.html`
154
 2. PC client docs: `<your server[:port]>/swagger/index.html`
154
    ![api_swag](docs/api_swag.png)
155
    ![api_swag](docs/api_swag.png)
155
 
156
 
157
+### CLI
158
+```bash
159
+# help
160
+./apimain -h
161
+```
162
+
163
+#### Reset admin password
164
+```bash
165
+./apimain reset-admin-pwd <pwd>
166
+```
167
+
156
 ## Installation and Setup
168
 ## Installation and Setup
157
 
169
 
158
 ### Configuration
170
 ### Configuration