nodebbs 0.0.2 → 0.0.3
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 +83 -99
- package/dist/commands/clean/index.d.ts +11 -0
- package/dist/commands/clean/index.js +93 -0
- package/dist/commands/db/backup.d.ts +9 -0
- package/dist/commands/db/backup.js +78 -0
- package/dist/commands/db/generate.d.ts +3 -0
- package/dist/commands/db/generate.js +9 -3
- package/dist/commands/db/index.d.ts +3 -0
- package/dist/commands/db/index.js +9 -3
- package/dist/commands/db/migrate.d.ts +3 -0
- package/dist/commands/db/migrate.js +8 -2
- package/dist/commands/db/push.d.ts +3 -0
- package/dist/commands/db/push.js +8 -2
- package/dist/commands/db/reset.d.ts +3 -0
- package/dist/commands/db/reset.js +10 -4
- package/dist/commands/db/seed.d.ts +3 -0
- package/dist/commands/db/seed.js +9 -3
- package/dist/commands/logs/api.d.ts +3 -0
- package/dist/commands/logs/api.js +8 -2
- package/dist/commands/logs/db.d.ts +3 -0
- package/dist/commands/logs/db.js +8 -2
- package/dist/commands/logs/index.d.ts +3 -0
- package/dist/commands/logs/index.js +8 -2
- package/dist/commands/logs/redis.d.ts +3 -0
- package/dist/commands/logs/redis.js +8 -2
- package/dist/commands/logs/web.d.ts +3 -0
- package/dist/commands/logs/web.js +9 -3
- package/dist/commands/restart/index.d.ts +3 -0
- package/dist/commands/restart/index.js +10 -2
- package/dist/commands/shell/api.d.ts +3 -0
- package/dist/commands/shell/api.js +9 -3
- package/dist/commands/shell/db.d.ts +3 -0
- package/dist/commands/shell/db.js +9 -3
- package/dist/commands/shell/redis.d.ts +3 -0
- package/dist/commands/shell/redis.js +9 -3
- package/dist/commands/shell/web.d.ts +3 -0
- package/dist/commands/shell/web.js +9 -3
- package/dist/commands/{dev → start}/index.d.ts +2 -2
- package/dist/commands/start/index.js +110 -0
- package/dist/commands/status/index.d.ts +3 -0
- package/dist/commands/status/index.js +8 -2
- package/dist/commands/stop/index.d.ts +1 -0
- package/dist/commands/stop/index.js +7 -1
- package/dist/templates/env +61 -0
- package/dist/utils/docker.js +3 -11
- package/dist/utils/env.js +19 -9
- package/dist/utils/selection.d.ts +5 -0
- package/dist/utils/selection.js +24 -0
- package/dist/utils/template.d.ts +11 -0
- package/dist/utils/template.js +18 -0
- package/oclif.manifest.json +380 -89
- package/package.json +21 -21
- package/dist/commands/deploy/index.d.ts +0 -8
- package/dist/commands/deploy/index.js +0 -95
- package/dist/commands/dev/index.js +0 -59
- package/dist/commands/setup/index.d.ts +0 -5
- package/dist/commands/setup/index.js +0 -12
package/oclif.manifest.json
CHANGED
|
@@ -1,13 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
-
"
|
|
3
|
+
"clean": {
|
|
4
4
|
"aliases": [],
|
|
5
5
|
"args": {},
|
|
6
|
-
"description": "
|
|
7
|
-
"flags": {
|
|
6
|
+
"description": "清理 Docker 缓存和残留资源",
|
|
7
|
+
"flags": {
|
|
8
|
+
"all": {
|
|
9
|
+
"char": "a",
|
|
10
|
+
"description": "清理所有 (构建缓存、无用镜像、网络)",
|
|
11
|
+
"name": "all",
|
|
12
|
+
"allowNo": false,
|
|
13
|
+
"type": "boolean"
|
|
14
|
+
},
|
|
15
|
+
"cache": {
|
|
16
|
+
"description": "清理构建缓存",
|
|
17
|
+
"name": "cache",
|
|
18
|
+
"allowNo": false,
|
|
19
|
+
"type": "boolean"
|
|
20
|
+
},
|
|
21
|
+
"images": {
|
|
22
|
+
"description": "清理无用镜像 (dangling)",
|
|
23
|
+
"name": "images",
|
|
24
|
+
"allowNo": false,
|
|
25
|
+
"type": "boolean"
|
|
26
|
+
},
|
|
27
|
+
"force": {
|
|
28
|
+
"char": "f",
|
|
29
|
+
"description": "跳过确认提示",
|
|
30
|
+
"name": "force",
|
|
31
|
+
"allowNo": false,
|
|
32
|
+
"type": "boolean"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
8
35
|
"hasDynamicHelp": false,
|
|
9
36
|
"hiddenAliases": [],
|
|
10
|
-
"id": "
|
|
37
|
+
"id": "clean",
|
|
11
38
|
"pluginAlias": "nodebbs",
|
|
12
39
|
"pluginName": "nodebbs",
|
|
13
40
|
"pluginType": "core",
|
|
@@ -17,18 +44,40 @@
|
|
|
17
44
|
"relativePath": [
|
|
18
45
|
"dist",
|
|
19
46
|
"commands",
|
|
20
|
-
"
|
|
21
|
-
"
|
|
47
|
+
"clean",
|
|
48
|
+
"index.js"
|
|
22
49
|
]
|
|
23
50
|
},
|
|
24
|
-
"db": {
|
|
51
|
+
"db:backup": {
|
|
25
52
|
"aliases": [],
|
|
26
53
|
"args": {},
|
|
27
|
-
"description": "
|
|
28
|
-
"flags": {
|
|
54
|
+
"description": "备份数据库 (PostgreSQL)",
|
|
55
|
+
"flags": {
|
|
56
|
+
"env": {
|
|
57
|
+
"char": "e",
|
|
58
|
+
"description": "部署环境 (production, lowmem, basic)",
|
|
59
|
+
"name": "env",
|
|
60
|
+
"hasDynamicHelp": false,
|
|
61
|
+
"multiple": false,
|
|
62
|
+
"options": [
|
|
63
|
+
"production",
|
|
64
|
+
"lowmem",
|
|
65
|
+
"basic"
|
|
66
|
+
],
|
|
67
|
+
"type": "option"
|
|
68
|
+
},
|
|
69
|
+
"output": {
|
|
70
|
+
"char": "o",
|
|
71
|
+
"description": "输出文件路径",
|
|
72
|
+
"name": "output",
|
|
73
|
+
"hasDynamicHelp": false,
|
|
74
|
+
"multiple": false,
|
|
75
|
+
"type": "option"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
29
78
|
"hasDynamicHelp": false,
|
|
30
79
|
"hiddenAliases": [],
|
|
31
|
-
"id": "db",
|
|
80
|
+
"id": "db:backup",
|
|
32
81
|
"pluginAlias": "nodebbs",
|
|
33
82
|
"pluginName": "nodebbs",
|
|
34
83
|
"pluginType": "core",
|
|
@@ -39,17 +88,31 @@
|
|
|
39
88
|
"dist",
|
|
40
89
|
"commands",
|
|
41
90
|
"db",
|
|
42
|
-
"
|
|
91
|
+
"backup.js"
|
|
43
92
|
]
|
|
44
93
|
},
|
|
45
|
-
"db:
|
|
94
|
+
"db:generate": {
|
|
46
95
|
"aliases": [],
|
|
47
96
|
"args": {},
|
|
48
|
-
"description": "
|
|
49
|
-
"flags": {
|
|
97
|
+
"description": "生成 Prisma Client (db:generate)",
|
|
98
|
+
"flags": {
|
|
99
|
+
"env": {
|
|
100
|
+
"char": "e",
|
|
101
|
+
"description": "部署环境 (production, lowmem, basic)",
|
|
102
|
+
"name": "env",
|
|
103
|
+
"hasDynamicHelp": false,
|
|
104
|
+
"multiple": false,
|
|
105
|
+
"options": [
|
|
106
|
+
"production",
|
|
107
|
+
"lowmem",
|
|
108
|
+
"basic"
|
|
109
|
+
],
|
|
110
|
+
"type": "option"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
50
113
|
"hasDynamicHelp": false,
|
|
51
114
|
"hiddenAliases": [],
|
|
52
|
-
"id": "db:
|
|
115
|
+
"id": "db:generate",
|
|
53
116
|
"pluginAlias": "nodebbs",
|
|
54
117
|
"pluginName": "nodebbs",
|
|
55
118
|
"pluginType": "core",
|
|
@@ -60,17 +123,31 @@
|
|
|
60
123
|
"dist",
|
|
61
124
|
"commands",
|
|
62
125
|
"db",
|
|
63
|
-
"
|
|
126
|
+
"generate.js"
|
|
64
127
|
]
|
|
65
128
|
},
|
|
66
|
-
"db
|
|
129
|
+
"db": {
|
|
67
130
|
"aliases": [],
|
|
68
131
|
"args": {},
|
|
69
|
-
"description": "
|
|
70
|
-
"flags": {
|
|
132
|
+
"description": "数据库管理命令",
|
|
133
|
+
"flags": {
|
|
134
|
+
"env": {
|
|
135
|
+
"char": "e",
|
|
136
|
+
"description": "部署环境 (production, lowmem, basic)",
|
|
137
|
+
"name": "env",
|
|
138
|
+
"hasDynamicHelp": false,
|
|
139
|
+
"multiple": false,
|
|
140
|
+
"options": [
|
|
141
|
+
"production",
|
|
142
|
+
"lowmem",
|
|
143
|
+
"basic"
|
|
144
|
+
],
|
|
145
|
+
"type": "option"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
71
148
|
"hasDynamicHelp": false,
|
|
72
149
|
"hiddenAliases": [],
|
|
73
|
-
"id": "db
|
|
150
|
+
"id": "db",
|
|
74
151
|
"pluginAlias": "nodebbs",
|
|
75
152
|
"pluginName": "nodebbs",
|
|
76
153
|
"pluginType": "core",
|
|
@@ -81,17 +158,31 @@
|
|
|
81
158
|
"dist",
|
|
82
159
|
"commands",
|
|
83
160
|
"db",
|
|
84
|
-
"
|
|
161
|
+
"index.js"
|
|
85
162
|
]
|
|
86
163
|
},
|
|
87
|
-
"db:
|
|
164
|
+
"db:migrate": {
|
|
88
165
|
"aliases": [],
|
|
89
166
|
"args": {},
|
|
90
|
-
"description": "
|
|
91
|
-
"flags": {
|
|
167
|
+
"description": "执行数据库迁移 (db:migrate)",
|
|
168
|
+
"flags": {
|
|
169
|
+
"env": {
|
|
170
|
+
"char": "e",
|
|
171
|
+
"description": "部署环境 (production, lowmem, basic)",
|
|
172
|
+
"name": "env",
|
|
173
|
+
"hasDynamicHelp": false,
|
|
174
|
+
"multiple": false,
|
|
175
|
+
"options": [
|
|
176
|
+
"production",
|
|
177
|
+
"lowmem",
|
|
178
|
+
"basic"
|
|
179
|
+
],
|
|
180
|
+
"type": "option"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
92
183
|
"hasDynamicHelp": false,
|
|
93
184
|
"hiddenAliases": [],
|
|
94
|
-
"id": "db:
|
|
185
|
+
"id": "db:migrate",
|
|
95
186
|
"pluginAlias": "nodebbs",
|
|
96
187
|
"pluginName": "nodebbs",
|
|
97
188
|
"pluginType": "core",
|
|
@@ -102,17 +193,31 @@
|
|
|
102
193
|
"dist",
|
|
103
194
|
"commands",
|
|
104
195
|
"db",
|
|
105
|
-
"
|
|
196
|
+
"migrate.js"
|
|
106
197
|
]
|
|
107
198
|
},
|
|
108
|
-
"db:
|
|
199
|
+
"db:push": {
|
|
109
200
|
"aliases": [],
|
|
110
201
|
"args": {},
|
|
111
|
-
"description": "
|
|
112
|
-
"flags": {
|
|
202
|
+
"description": "推送数据库 schema (db:push)",
|
|
203
|
+
"flags": {
|
|
204
|
+
"env": {
|
|
205
|
+
"char": "e",
|
|
206
|
+
"description": "部署环境 (production, lowmem, basic)",
|
|
207
|
+
"name": "env",
|
|
208
|
+
"hasDynamicHelp": false,
|
|
209
|
+
"multiple": false,
|
|
210
|
+
"options": [
|
|
211
|
+
"production",
|
|
212
|
+
"lowmem",
|
|
213
|
+
"basic"
|
|
214
|
+
],
|
|
215
|
+
"type": "option"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
113
218
|
"hasDynamicHelp": false,
|
|
114
219
|
"hiddenAliases": [],
|
|
115
|
-
"id": "db:
|
|
220
|
+
"id": "db:push",
|
|
116
221
|
"pluginAlias": "nodebbs",
|
|
117
222
|
"pluginName": "nodebbs",
|
|
118
223
|
"pluginType": "core",
|
|
@@ -123,26 +228,31 @@
|
|
|
123
228
|
"dist",
|
|
124
229
|
"commands",
|
|
125
230
|
"db",
|
|
126
|
-
"
|
|
231
|
+
"push.js"
|
|
127
232
|
]
|
|
128
233
|
},
|
|
129
|
-
"
|
|
234
|
+
"db:reset": {
|
|
130
235
|
"aliases": [],
|
|
131
236
|
"args": {},
|
|
132
|
-
"description": "
|
|
237
|
+
"description": "重置数据库 (db:reset) - 危险操作!",
|
|
133
238
|
"flags": {
|
|
134
|
-
"
|
|
135
|
-
"char": "
|
|
136
|
-
"description": "
|
|
137
|
-
"name": "
|
|
239
|
+
"env": {
|
|
240
|
+
"char": "e",
|
|
241
|
+
"description": "部署环境 (production, lowmem, basic)",
|
|
242
|
+
"name": "env",
|
|
138
243
|
"hasDynamicHelp": false,
|
|
139
244
|
"multiple": false,
|
|
245
|
+
"options": [
|
|
246
|
+
"production",
|
|
247
|
+
"lowmem",
|
|
248
|
+
"basic"
|
|
249
|
+
],
|
|
140
250
|
"type": "option"
|
|
141
251
|
}
|
|
142
252
|
},
|
|
143
253
|
"hasDynamicHelp": false,
|
|
144
254
|
"hiddenAliases": [],
|
|
145
|
-
"id": "
|
|
255
|
+
"id": "db:reset",
|
|
146
256
|
"pluginAlias": "nodebbs",
|
|
147
257
|
"pluginName": "nodebbs",
|
|
148
258
|
"pluginType": "core",
|
|
@@ -152,14 +262,14 @@
|
|
|
152
262
|
"relativePath": [
|
|
153
263
|
"dist",
|
|
154
264
|
"commands",
|
|
155
|
-
"
|
|
156
|
-
"
|
|
265
|
+
"db",
|
|
266
|
+
"reset.js"
|
|
157
267
|
]
|
|
158
268
|
},
|
|
159
|
-
"
|
|
269
|
+
"db:seed": {
|
|
160
270
|
"aliases": [],
|
|
161
271
|
"args": {},
|
|
162
|
-
"description": "
|
|
272
|
+
"description": "填充种子数据 (db:seed)",
|
|
163
273
|
"flags": {
|
|
164
274
|
"env": {
|
|
165
275
|
"char": "e",
|
|
@@ -173,18 +283,11 @@
|
|
|
173
283
|
"basic"
|
|
174
284
|
],
|
|
175
285
|
"type": "option"
|
|
176
|
-
},
|
|
177
|
-
"rebuild": {
|
|
178
|
-
"char": "r",
|
|
179
|
-
"description": "重新构建镜像",
|
|
180
|
-
"name": "rebuild",
|
|
181
|
-
"allowNo": false,
|
|
182
|
-
"type": "boolean"
|
|
183
286
|
}
|
|
184
287
|
},
|
|
185
288
|
"hasDynamicHelp": false,
|
|
186
289
|
"hiddenAliases": [],
|
|
187
|
-
"id": "
|
|
290
|
+
"id": "db:seed",
|
|
188
291
|
"pluginAlias": "nodebbs",
|
|
189
292
|
"pluginName": "nodebbs",
|
|
190
293
|
"pluginType": "core",
|
|
@@ -194,15 +297,29 @@
|
|
|
194
297
|
"relativePath": [
|
|
195
298
|
"dist",
|
|
196
299
|
"commands",
|
|
197
|
-
"
|
|
198
|
-
"
|
|
300
|
+
"db",
|
|
301
|
+
"seed.js"
|
|
199
302
|
]
|
|
200
303
|
},
|
|
201
304
|
"logs:api": {
|
|
202
305
|
"aliases": [],
|
|
203
306
|
"args": {},
|
|
204
307
|
"description": "查看 API 服务日志",
|
|
205
|
-
"flags": {
|
|
308
|
+
"flags": {
|
|
309
|
+
"env": {
|
|
310
|
+
"char": "e",
|
|
311
|
+
"description": "部署环境 (production, lowmem, basic)",
|
|
312
|
+
"name": "env",
|
|
313
|
+
"hasDynamicHelp": false,
|
|
314
|
+
"multiple": false,
|
|
315
|
+
"options": [
|
|
316
|
+
"production",
|
|
317
|
+
"lowmem",
|
|
318
|
+
"basic"
|
|
319
|
+
],
|
|
320
|
+
"type": "option"
|
|
321
|
+
}
|
|
322
|
+
},
|
|
206
323
|
"hasDynamicHelp": false,
|
|
207
324
|
"hiddenAliases": [],
|
|
208
325
|
"id": "logs:api",
|
|
@@ -223,7 +340,21 @@
|
|
|
223
340
|
"aliases": [],
|
|
224
341
|
"args": {},
|
|
225
342
|
"description": "查看数据库日志",
|
|
226
|
-
"flags": {
|
|
343
|
+
"flags": {
|
|
344
|
+
"env": {
|
|
345
|
+
"char": "e",
|
|
346
|
+
"description": "部署环境 (production, lowmem, basic)",
|
|
347
|
+
"name": "env",
|
|
348
|
+
"hasDynamicHelp": false,
|
|
349
|
+
"multiple": false,
|
|
350
|
+
"options": [
|
|
351
|
+
"production",
|
|
352
|
+
"lowmem",
|
|
353
|
+
"basic"
|
|
354
|
+
],
|
|
355
|
+
"type": "option"
|
|
356
|
+
}
|
|
357
|
+
},
|
|
227
358
|
"hasDynamicHelp": false,
|
|
228
359
|
"hiddenAliases": [],
|
|
229
360
|
"id": "logs:db",
|
|
@@ -244,7 +375,21 @@
|
|
|
244
375
|
"aliases": [],
|
|
245
376
|
"args": {},
|
|
246
377
|
"description": "查看所有服务日志",
|
|
247
|
-
"flags": {
|
|
378
|
+
"flags": {
|
|
379
|
+
"env": {
|
|
380
|
+
"char": "e",
|
|
381
|
+
"description": "部署环境 (production, lowmem, basic)",
|
|
382
|
+
"name": "env",
|
|
383
|
+
"hasDynamicHelp": false,
|
|
384
|
+
"multiple": false,
|
|
385
|
+
"options": [
|
|
386
|
+
"production",
|
|
387
|
+
"lowmem",
|
|
388
|
+
"basic"
|
|
389
|
+
],
|
|
390
|
+
"type": "option"
|
|
391
|
+
}
|
|
392
|
+
},
|
|
248
393
|
"hasDynamicHelp": false,
|
|
249
394
|
"hiddenAliases": [],
|
|
250
395
|
"id": "logs",
|
|
@@ -265,7 +410,21 @@
|
|
|
265
410
|
"aliases": [],
|
|
266
411
|
"args": {},
|
|
267
412
|
"description": "查看 Redis 日志",
|
|
268
|
-
"flags": {
|
|
413
|
+
"flags": {
|
|
414
|
+
"env": {
|
|
415
|
+
"char": "e",
|
|
416
|
+
"description": "部署环境 (production, lowmem, basic)",
|
|
417
|
+
"name": "env",
|
|
418
|
+
"hasDynamicHelp": false,
|
|
419
|
+
"multiple": false,
|
|
420
|
+
"options": [
|
|
421
|
+
"production",
|
|
422
|
+
"lowmem",
|
|
423
|
+
"basic"
|
|
424
|
+
],
|
|
425
|
+
"type": "option"
|
|
426
|
+
}
|
|
427
|
+
},
|
|
269
428
|
"hasDynamicHelp": false,
|
|
270
429
|
"hiddenAliases": [],
|
|
271
430
|
"id": "logs:redis",
|
|
@@ -285,8 +444,22 @@
|
|
|
285
444
|
"logs:web": {
|
|
286
445
|
"aliases": [],
|
|
287
446
|
"args": {},
|
|
288
|
-
"description": "查看 Web
|
|
289
|
-
"flags": {
|
|
447
|
+
"description": "查看 Web 前端日志",
|
|
448
|
+
"flags": {
|
|
449
|
+
"env": {
|
|
450
|
+
"char": "e",
|
|
451
|
+
"description": "部署环境 (production, lowmem, basic)",
|
|
452
|
+
"name": "env",
|
|
453
|
+
"hasDynamicHelp": false,
|
|
454
|
+
"multiple": false,
|
|
455
|
+
"options": [
|
|
456
|
+
"production",
|
|
457
|
+
"lowmem",
|
|
458
|
+
"basic"
|
|
459
|
+
],
|
|
460
|
+
"type": "option"
|
|
461
|
+
}
|
|
462
|
+
},
|
|
290
463
|
"hasDynamicHelp": false,
|
|
291
464
|
"hiddenAliases": [],
|
|
292
465
|
"id": "logs:web",
|
|
@@ -306,8 +479,22 @@
|
|
|
306
479
|
"restart": {
|
|
307
480
|
"aliases": [],
|
|
308
481
|
"args": {},
|
|
309
|
-
"description": "重启所有服务",
|
|
310
|
-
"flags": {
|
|
482
|
+
"description": "重启所有服务 (docker compose restart)",
|
|
483
|
+
"flags": {
|
|
484
|
+
"env": {
|
|
485
|
+
"char": "e",
|
|
486
|
+
"description": "部署环境 (production, lowmem, basic)",
|
|
487
|
+
"name": "env",
|
|
488
|
+
"hasDynamicHelp": false,
|
|
489
|
+
"multiple": false,
|
|
490
|
+
"options": [
|
|
491
|
+
"production",
|
|
492
|
+
"lowmem",
|
|
493
|
+
"basic"
|
|
494
|
+
],
|
|
495
|
+
"type": "option"
|
|
496
|
+
}
|
|
497
|
+
},
|
|
311
498
|
"hasDynamicHelp": false,
|
|
312
499
|
"hiddenAliases": [],
|
|
313
500
|
"id": "restart",
|
|
@@ -324,14 +511,28 @@
|
|
|
324
511
|
"index.js"
|
|
325
512
|
]
|
|
326
513
|
},
|
|
327
|
-
"
|
|
514
|
+
"shell:api": {
|
|
328
515
|
"aliases": [],
|
|
329
516
|
"args": {},
|
|
330
|
-
"description": "
|
|
331
|
-
"flags": {
|
|
517
|
+
"description": "进入 API 服务 shell",
|
|
518
|
+
"flags": {
|
|
519
|
+
"env": {
|
|
520
|
+
"char": "e",
|
|
521
|
+
"description": "部署环境 (production, lowmem, basic)",
|
|
522
|
+
"name": "env",
|
|
523
|
+
"hasDynamicHelp": false,
|
|
524
|
+
"multiple": false,
|
|
525
|
+
"options": [
|
|
526
|
+
"production",
|
|
527
|
+
"lowmem",
|
|
528
|
+
"basic"
|
|
529
|
+
],
|
|
530
|
+
"type": "option"
|
|
531
|
+
}
|
|
532
|
+
},
|
|
332
533
|
"hasDynamicHelp": false,
|
|
333
534
|
"hiddenAliases": [],
|
|
334
|
-
"id": "
|
|
535
|
+
"id": "shell:api",
|
|
335
536
|
"pluginAlias": "nodebbs",
|
|
336
537
|
"pluginName": "nodebbs",
|
|
337
538
|
"pluginType": "core",
|
|
@@ -341,18 +542,32 @@
|
|
|
341
542
|
"relativePath": [
|
|
342
543
|
"dist",
|
|
343
544
|
"commands",
|
|
344
|
-
"
|
|
345
|
-
"
|
|
545
|
+
"shell",
|
|
546
|
+
"api.js"
|
|
346
547
|
]
|
|
347
548
|
},
|
|
348
|
-
"shell:
|
|
549
|
+
"shell:db": {
|
|
349
550
|
"aliases": [],
|
|
350
551
|
"args": {},
|
|
351
|
-
"description": "
|
|
352
|
-
"flags": {
|
|
552
|
+
"description": "进入数据库 shell (psql)",
|
|
553
|
+
"flags": {
|
|
554
|
+
"env": {
|
|
555
|
+
"char": "e",
|
|
556
|
+
"description": "部署环境 (production, lowmem, basic)",
|
|
557
|
+
"name": "env",
|
|
558
|
+
"hasDynamicHelp": false,
|
|
559
|
+
"multiple": false,
|
|
560
|
+
"options": [
|
|
561
|
+
"production",
|
|
562
|
+
"lowmem",
|
|
563
|
+
"basic"
|
|
564
|
+
],
|
|
565
|
+
"type": "option"
|
|
566
|
+
}
|
|
567
|
+
},
|
|
353
568
|
"hasDynamicHelp": false,
|
|
354
569
|
"hiddenAliases": [],
|
|
355
|
-
"id": "shell:
|
|
570
|
+
"id": "shell:db",
|
|
356
571
|
"pluginAlias": "nodebbs",
|
|
357
572
|
"pluginName": "nodebbs",
|
|
358
573
|
"pluginType": "core",
|
|
@@ -363,17 +578,31 @@
|
|
|
363
578
|
"dist",
|
|
364
579
|
"commands",
|
|
365
580
|
"shell",
|
|
366
|
-
"
|
|
581
|
+
"db.js"
|
|
367
582
|
]
|
|
368
583
|
},
|
|
369
|
-
"shell:
|
|
584
|
+
"shell:redis": {
|
|
370
585
|
"aliases": [],
|
|
371
586
|
"args": {},
|
|
372
|
-
"description": "
|
|
373
|
-
"flags": {
|
|
587
|
+
"description": "进入 Redis shell (redis-cli)",
|
|
588
|
+
"flags": {
|
|
589
|
+
"env": {
|
|
590
|
+
"char": "e",
|
|
591
|
+
"description": "部署环境 (production, lowmem, basic)",
|
|
592
|
+
"name": "env",
|
|
593
|
+
"hasDynamicHelp": false,
|
|
594
|
+
"multiple": false,
|
|
595
|
+
"options": [
|
|
596
|
+
"production",
|
|
597
|
+
"lowmem",
|
|
598
|
+
"basic"
|
|
599
|
+
],
|
|
600
|
+
"type": "option"
|
|
601
|
+
}
|
|
602
|
+
},
|
|
374
603
|
"hasDynamicHelp": false,
|
|
375
604
|
"hiddenAliases": [],
|
|
376
|
-
"id": "shell:
|
|
605
|
+
"id": "shell:redis",
|
|
377
606
|
"pluginAlias": "nodebbs",
|
|
378
607
|
"pluginName": "nodebbs",
|
|
379
608
|
"pluginType": "core",
|
|
@@ -384,17 +613,31 @@
|
|
|
384
613
|
"dist",
|
|
385
614
|
"commands",
|
|
386
615
|
"shell",
|
|
387
|
-
"
|
|
616
|
+
"redis.js"
|
|
388
617
|
]
|
|
389
618
|
},
|
|
390
|
-
"shell:
|
|
619
|
+
"shell:web": {
|
|
391
620
|
"aliases": [],
|
|
392
621
|
"args": {},
|
|
393
|
-
"description": "进入
|
|
394
|
-
"flags": {
|
|
622
|
+
"description": "进入 Web 前端 shell",
|
|
623
|
+
"flags": {
|
|
624
|
+
"env": {
|
|
625
|
+
"char": "e",
|
|
626
|
+
"description": "部署环境 (production, lowmem, basic)",
|
|
627
|
+
"name": "env",
|
|
628
|
+
"hasDynamicHelp": false,
|
|
629
|
+
"multiple": false,
|
|
630
|
+
"options": [
|
|
631
|
+
"production",
|
|
632
|
+
"lowmem",
|
|
633
|
+
"basic"
|
|
634
|
+
],
|
|
635
|
+
"type": "option"
|
|
636
|
+
}
|
|
637
|
+
},
|
|
395
638
|
"hasDynamicHelp": false,
|
|
396
639
|
"hiddenAliases": [],
|
|
397
|
-
"id": "shell:
|
|
640
|
+
"id": "shell:web",
|
|
398
641
|
"pluginAlias": "nodebbs",
|
|
399
642
|
"pluginName": "nodebbs",
|
|
400
643
|
"pluginType": "core",
|
|
@@ -405,17 +648,38 @@
|
|
|
405
648
|
"dist",
|
|
406
649
|
"commands",
|
|
407
650
|
"shell",
|
|
408
|
-
"
|
|
651
|
+
"web.js"
|
|
409
652
|
]
|
|
410
653
|
},
|
|
411
|
-
"
|
|
654
|
+
"start": {
|
|
412
655
|
"aliases": [],
|
|
413
656
|
"args": {},
|
|
414
|
-
"description": "
|
|
415
|
-
"flags": {
|
|
657
|
+
"description": "启动 NodeBBS (部署模式)",
|
|
658
|
+
"flags": {
|
|
659
|
+
"env": {
|
|
660
|
+
"char": "e",
|
|
661
|
+
"description": "部署环境 (production, lowmem, basic)",
|
|
662
|
+
"name": "env",
|
|
663
|
+
"hasDynamicHelp": false,
|
|
664
|
+
"multiple": false,
|
|
665
|
+
"options": [
|
|
666
|
+
"production",
|
|
667
|
+
"lowmem",
|
|
668
|
+
"basic"
|
|
669
|
+
],
|
|
670
|
+
"type": "option"
|
|
671
|
+
},
|
|
672
|
+
"build": {
|
|
673
|
+
"char": "b",
|
|
674
|
+
"description": "重新构建并启动服务 (跳过健康检查和数据初始化)",
|
|
675
|
+
"name": "build",
|
|
676
|
+
"allowNo": false,
|
|
677
|
+
"type": "boolean"
|
|
678
|
+
}
|
|
679
|
+
},
|
|
416
680
|
"hasDynamicHelp": false,
|
|
417
681
|
"hiddenAliases": [],
|
|
418
|
-
"id": "
|
|
682
|
+
"id": "start",
|
|
419
683
|
"pluginAlias": "nodebbs",
|
|
420
684
|
"pluginName": "nodebbs",
|
|
421
685
|
"pluginType": "core",
|
|
@@ -425,15 +689,29 @@
|
|
|
425
689
|
"relativePath": [
|
|
426
690
|
"dist",
|
|
427
691
|
"commands",
|
|
428
|
-
"
|
|
429
|
-
"
|
|
692
|
+
"start",
|
|
693
|
+
"index.js"
|
|
430
694
|
]
|
|
431
695
|
},
|
|
432
696
|
"status": {
|
|
433
697
|
"aliases": [],
|
|
434
698
|
"args": {},
|
|
435
699
|
"description": "查看服务状态",
|
|
436
|
-
"flags": {
|
|
700
|
+
"flags": {
|
|
701
|
+
"env": {
|
|
702
|
+
"char": "e",
|
|
703
|
+
"description": "部署环境 (production, lowmem, basic)",
|
|
704
|
+
"name": "env",
|
|
705
|
+
"hasDynamicHelp": false,
|
|
706
|
+
"multiple": false,
|
|
707
|
+
"options": [
|
|
708
|
+
"production",
|
|
709
|
+
"lowmem",
|
|
710
|
+
"basic"
|
|
711
|
+
],
|
|
712
|
+
"type": "option"
|
|
713
|
+
}
|
|
714
|
+
},
|
|
437
715
|
"hasDynamicHelp": false,
|
|
438
716
|
"hiddenAliases": [],
|
|
439
717
|
"id": "status",
|
|
@@ -461,6 +739,19 @@
|
|
|
461
739
|
"name": "volumes",
|
|
462
740
|
"allowNo": false,
|
|
463
741
|
"type": "boolean"
|
|
742
|
+
},
|
|
743
|
+
"env": {
|
|
744
|
+
"char": "e",
|
|
745
|
+
"description": "部署环境 (production, lowmem, basic)",
|
|
746
|
+
"name": "env",
|
|
747
|
+
"hasDynamicHelp": false,
|
|
748
|
+
"multiple": false,
|
|
749
|
+
"options": [
|
|
750
|
+
"production",
|
|
751
|
+
"lowmem",
|
|
752
|
+
"basic"
|
|
753
|
+
],
|
|
754
|
+
"type": "option"
|
|
464
755
|
}
|
|
465
756
|
},
|
|
466
757
|
"hasDynamicHelp": false,
|
|
@@ -480,5 +771,5 @@
|
|
|
480
771
|
]
|
|
481
772
|
}
|
|
482
773
|
},
|
|
483
|
-
"version": "0.0.
|
|
774
|
+
"version": "0.0.3"
|
|
484
775
|
}
|