@nocobase/cli 2.2.0-beta.8 → 2.3.0-alpha.1
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/assets/env-proxy/nginx/app.conf.tpl +23 -0
- package/assets/env-proxy/nginx/nocobase.conf.tpl +5 -0
- package/assets/env-proxy/nginx/snippets/dist-location.conf +5 -0
- package/assets/env-proxy/nginx/snippets/gzip.conf +17 -0
- package/assets/env-proxy/nginx/snippets/log-format-http.conf +13 -0
- package/assets/env-proxy/nginx/snippets/maps-http.conf +14 -0
- package/assets/env-proxy/nginx/snippets/mime-types.conf +98 -0
- package/assets/env-proxy/nginx/snippets/proxy-location.conf +18 -0
- package/assets/env-proxy/nginx/snippets/spa-location.conf +6 -0
- package/assets/env-proxy/nginx/snippets/uploads-location.conf +21 -0
- package/dist/commands/app/start.js +4 -1
- package/dist/commands/env/info.js +11 -1
- package/dist/commands/init.js +11 -1
- package/dist/commands/install.js +61 -130
- package/dist/commands/proxy/caddy/generate.js +93 -7
- package/dist/commands/proxy/nginx/generate.js +98 -7
- package/dist/commands/revision/create.js +1 -1
- package/dist/commands/source/download.js +18 -14
- package/dist/lib/app-managed-resources.js +3 -2
- package/dist/lib/auth-store.js +68 -0
- package/dist/lib/cli-config.js +54 -1
- package/dist/lib/docker-image.js +94 -6
- package/dist/lib/env-config.js +5 -0
- package/dist/lib/env-proxy-config.js +48 -0
- package/dist/lib/env-proxy.js +193 -59
- package/dist/lib/prompt-catalog-terminal.js +32 -19
- package/dist/lib/prompt-web-ui.js +13 -2
- package/dist/lib/proxy-caddy.js +77 -9
- package/dist/lib/proxy-nginx.js +71 -11
- package/dist/locale/en-US.json +38 -38
- package/dist/locale/zh-CN.json +38 -38
- package/package.json +3 -2
package/dist/locale/zh-CN.json
CHANGED
|
@@ -93,20 +93,20 @@
|
|
|
93
93
|
"envAdd": {
|
|
94
94
|
"prompts": {
|
|
95
95
|
"name": {
|
|
96
|
-
"message": "
|
|
96
|
+
"message": "应用环境标识",
|
|
97
97
|
"placeholder": "default"
|
|
98
98
|
},
|
|
99
99
|
"scope": {
|
|
100
|
-
"message": "
|
|
100
|
+
"message": "连接保存位置",
|
|
101
101
|
"globalLabel": "全局",
|
|
102
102
|
"globalHint": "保存在用户级配置中"
|
|
103
103
|
},
|
|
104
104
|
"apiBaseUrl": {
|
|
105
|
-
"message": "API
|
|
105
|
+
"message": "API 基础地址",
|
|
106
106
|
"placeholder": "https://demo.example.com/api 或 https://demo.example.com/api/__app/<subapp>"
|
|
107
107
|
},
|
|
108
108
|
"authType": {
|
|
109
|
-
"message": "
|
|
109
|
+
"message": "认证方式",
|
|
110
110
|
"basicLabel": "Basic 认证(用户名 + 密码)",
|
|
111
111
|
"basicHint": "保存后会用用户名和密码换取 Token",
|
|
112
112
|
"oauthLabel": "OAuth(浏览器认证)",
|
|
@@ -114,14 +114,14 @@
|
|
|
114
114
|
"tokenLabel": "API Token / API Key"
|
|
115
115
|
},
|
|
116
116
|
"username": {
|
|
117
|
-
"message": "
|
|
117
|
+
"message": "Basic 登录用户名",
|
|
118
118
|
"placeholder": "admin"
|
|
119
119
|
},
|
|
120
120
|
"password": {
|
|
121
|
-
"message": "
|
|
121
|
+
"message": "Basic 登录密码"
|
|
122
122
|
},
|
|
123
123
|
"accessToken": {
|
|
124
|
-
"message": "
|
|
124
|
+
"message": "API Token 或 API Key",
|
|
125
125
|
"placeholder": "请输入你的 API Token / API Key"
|
|
126
126
|
}
|
|
127
127
|
}
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
},
|
|
180
180
|
"prompts": {
|
|
181
181
|
"provideMethod": {
|
|
182
|
-
"message": "
|
|
182
|
+
"message": "License key 提供方式",
|
|
183
183
|
"keyOption": "直接粘贴 license key",
|
|
184
184
|
"fileOption": "从文件读取 key"
|
|
185
185
|
},
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
},
|
|
253
253
|
"prompts": {
|
|
254
254
|
"source": {
|
|
255
|
-
"message": "
|
|
255
|
+
"message": "NocoBase 获取方式",
|
|
256
256
|
"dockerLabel": "Docker 安装(推荐)",
|
|
257
257
|
"dockerHint": "适合无代码或低维护成本场景。后续升级时,拉取新镜像并重启应用即可。",
|
|
258
258
|
"npmLabel": "create-nocobase-app 安装",
|
|
@@ -261,9 +261,9 @@
|
|
|
261
261
|
"gitHint": "适合体验最新未发布版本、参与贡献,或直接修改和调试 NocoBase 源码。这个方式更偏向开发者使用。"
|
|
262
262
|
},
|
|
263
263
|
"version": {
|
|
264
|
-
"message": "
|
|
264
|
+
"message": "NocoBase 版本",
|
|
265
265
|
"latestLabel": "latest",
|
|
266
|
-
"latestHint": "
|
|
266
|
+
"latestHint": "稳定版。适合生产环境和希望获得稳定体验的场景。",
|
|
267
267
|
"betaLabel": "beta",
|
|
268
268
|
"betaHint": "测试版。包含即将发布的新功能,适合提前体验和反馈。",
|
|
269
269
|
"alphaLabel": "alpha",
|
|
@@ -272,15 +272,15 @@
|
|
|
272
272
|
"otherHint": "手动填写其他版本号、Docker tag 或 Git ref,例如分支名。"
|
|
273
273
|
},
|
|
274
274
|
"otherVersion": {
|
|
275
|
-
"message": "
|
|
275
|
+
"message": "自定义版本号、Docker tag 或 Git ref",
|
|
276
276
|
"placeholder": "例如:fix/cli-v2"
|
|
277
277
|
},
|
|
278
278
|
"dockerRegistry": {
|
|
279
|
-
"message": "
|
|
279
|
+
"message": "Docker registry(镜像 tag 在版本中单独设置)",
|
|
280
280
|
"placeholder": "registry.cn-shanghai.aliyuncs.com/nocobase/nocobase"
|
|
281
281
|
},
|
|
282
282
|
"dockerPlatform": {
|
|
283
|
-
"message": "
|
|
283
|
+
"message": "架构",
|
|
284
284
|
"autoLabel": "自动",
|
|
285
285
|
"autoHint": "由 Docker 根据当前机器自动选择"
|
|
286
286
|
},
|
|
@@ -323,79 +323,79 @@
|
|
|
323
323
|
},
|
|
324
324
|
"prompts": {
|
|
325
325
|
"env": {
|
|
326
|
-
"message": "
|
|
326
|
+
"message": "应用环境标识",
|
|
327
327
|
"placeholder": "local"
|
|
328
328
|
},
|
|
329
329
|
"lang": {
|
|
330
|
-
"message": "
|
|
330
|
+
"message": "应用语言"
|
|
331
331
|
},
|
|
332
332
|
"appPath": {
|
|
333
|
-
"message": "
|
|
333
|
+
"message": "应用目录(相对路径基于 {{root}})",
|
|
334
334
|
"placeholder": "./<env>/"
|
|
335
335
|
},
|
|
336
336
|
"appPort": {
|
|
337
|
-
"message": "
|
|
337
|
+
"message": "应用端口",
|
|
338
338
|
"placeholder": "13000"
|
|
339
339
|
},
|
|
340
340
|
"appPublicPath": {
|
|
341
|
-
"message": "
|
|
341
|
+
"message": "应用子路径(例如 /nocobase/)",
|
|
342
342
|
"placeholder": "/ 或 /nocobase/"
|
|
343
343
|
},
|
|
344
344
|
"storagePath": {
|
|
345
|
-
"message": "
|
|
345
|
+
"message": "上传文件和本地存储目录",
|
|
346
346
|
"placeholder": "./<env>/storage/"
|
|
347
347
|
},
|
|
348
348
|
"dbDialect": {
|
|
349
|
-
"message": "
|
|
349
|
+
"message": "数据库类型"
|
|
350
350
|
},
|
|
351
351
|
"builtinDb": {
|
|
352
|
-
"message": "
|
|
352
|
+
"message": "使用内置数据库"
|
|
353
353
|
},
|
|
354
354
|
"builtinDbImage": {
|
|
355
|
-
"message": "
|
|
355
|
+
"message": "内置数据库 Docker 镜像",
|
|
356
356
|
"placeholder": "postgres:16"
|
|
357
357
|
},
|
|
358
358
|
"dbHost": {
|
|
359
|
-
"message": "
|
|
359
|
+
"message": "数据库主机地址",
|
|
360
360
|
"placeholder": "127.0.0.1"
|
|
361
361
|
},
|
|
362
362
|
"dbPort": {
|
|
363
|
-
"message": "
|
|
363
|
+
"message": "数据库端口",
|
|
364
364
|
"placeholder": "5432"
|
|
365
365
|
},
|
|
366
366
|
"dbDatabase": {
|
|
367
|
-
"message": "
|
|
367
|
+
"message": "数据库名称"
|
|
368
368
|
},
|
|
369
369
|
"dbUser": {
|
|
370
|
-
"message": "
|
|
370
|
+
"message": "数据库用户名"
|
|
371
371
|
},
|
|
372
372
|
"dbPassword": {
|
|
373
|
-
"message": "
|
|
373
|
+
"message": "数据库密码"
|
|
374
374
|
},
|
|
375
375
|
"dbSchema": {
|
|
376
|
-
"message": "数据库 schema
|
|
376
|
+
"message": "数据库 schema(仅 PostgreSQL/KingbaseES,可选)",
|
|
377
377
|
"placeholder": "留空则使用默认 schema"
|
|
378
378
|
},
|
|
379
379
|
"dbTablePrefix": {
|
|
380
|
-
"message": "
|
|
380
|
+
"message": "数据表前缀(可选)",
|
|
381
381
|
"placeholder": "例如:nb_"
|
|
382
382
|
},
|
|
383
383
|
"dbUnderscored": {
|
|
384
|
-
"message": "
|
|
384
|
+
"message": "数据库表名和字段名使用下划线风格"
|
|
385
385
|
},
|
|
386
386
|
"rootUsername": {
|
|
387
|
-
"message": "
|
|
387
|
+
"message": "初始管理员用户名",
|
|
388
388
|
"placeholder": "nocobase"
|
|
389
389
|
},
|
|
390
390
|
"rootEmail": {
|
|
391
|
-
"message": "
|
|
391
|
+
"message": "初始管理员邮箱",
|
|
392
392
|
"placeholder": "admin@nocobase.com"
|
|
393
393
|
},
|
|
394
394
|
"rootPassword": {
|
|
395
|
-
"message": "
|
|
395
|
+
"message": "初始管理员密码"
|
|
396
396
|
},
|
|
397
397
|
"rootNickname": {
|
|
398
|
-
"message": "
|
|
398
|
+
"message": "初始管理员显示名称",
|
|
399
399
|
"placeholder": "Super Admin"
|
|
400
400
|
}
|
|
401
401
|
}
|
|
@@ -419,11 +419,11 @@
|
|
|
419
419
|
},
|
|
420
420
|
"prompts": {
|
|
421
421
|
"appName": {
|
|
422
|
-
"message": "
|
|
422
|
+
"message": "应用环境唯一标识(CLI 将通过该标识定位并操作对应环境)",
|
|
423
423
|
"placeholder": "local"
|
|
424
424
|
},
|
|
425
425
|
"setupMode": {
|
|
426
|
-
"message": "
|
|
426
|
+
"message": "应用环境配置方式",
|
|
427
427
|
"installNewLabel": "新安装",
|
|
428
428
|
"installNewHint": "从零安装一个新的应用,适合首次部署、试用或新建本地开发环境。",
|
|
429
429
|
"manageLocalLabel": "本机接管",
|
|
@@ -432,7 +432,7 @@
|
|
|
432
432
|
"connectRemoteHint": "只保存远程应用的连接信息,不在本机安装或接管应用。"
|
|
433
433
|
},
|
|
434
434
|
"installSkills": {
|
|
435
|
-
"message": "
|
|
435
|
+
"message": "安装 NocoBase AI coding skills(nocobase/skills)"
|
|
436
436
|
},
|
|
437
437
|
"apiBaseUrl": {
|
|
438
438
|
"message": "API 基础地址",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0-alpha.1",
|
|
4
4
|
"description": "NocoBase Command Line Tool",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/generated/command-registry.js",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"author": "",
|
|
14
14
|
"license": "Apache-2.0",
|
|
15
15
|
"files": [
|
|
16
|
+
"assets",
|
|
16
17
|
"bin",
|
|
17
18
|
"dist",
|
|
18
19
|
"nocobase-ctl.config.json"
|
|
@@ -143,5 +144,5 @@
|
|
|
143
144
|
"type": "git",
|
|
144
145
|
"url": "git+https://github.com/nocobase/nocobase.git"
|
|
145
146
|
},
|
|
146
|
-
"gitHead": "
|
|
147
|
+
"gitHead": "2377df8ceb12549149017f7f14a61207bf6e49a2"
|
|
147
148
|
}
|