@nocobase/cli 2.1.0-alpha.26 → 2.1.0-alpha.28
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 +24 -0
- package/README.zh-CN.md +4 -0
- package/dist/commands/app/down.js +2 -3
- package/dist/commands/app/logs.js +2 -2
- package/dist/commands/app/upgrade.js +114 -128
- package/dist/commands/config/delete.js +30 -0
- package/dist/commands/config/get.js +29 -0
- package/dist/commands/config/index.js +20 -0
- package/dist/commands/config/list.js +29 -0
- package/dist/commands/config/set.js +35 -0
- package/dist/commands/db/check.js +238 -0
- package/dist/commands/db/logs.js +2 -2
- package/dist/commands/db/shared.js +6 -5
- package/dist/commands/env/info.js +6 -2
- package/dist/commands/env/shared.js +1 -1
- package/dist/commands/init.js +0 -1
- package/dist/commands/install.js +87 -35
- package/dist/commands/license/activate.js +357 -0
- package/dist/commands/license/env.js +94 -0
- package/dist/commands/license/generate-id.js +107 -0
- package/dist/commands/license/id.js +52 -0
- package/dist/commands/license/index.js +20 -0
- package/dist/commands/license/plugins/clean.js +98 -0
- package/dist/commands/license/plugins/index.js +20 -0
- package/dist/commands/license/plugins/list.js +50 -0
- package/dist/commands/license/plugins/shared.js +325 -0
- package/dist/commands/license/plugins/sync.js +267 -0
- package/dist/commands/license/shared.js +414 -0
- package/dist/commands/license/status.js +50 -0
- package/dist/lib/api-client.js +74 -3
- package/dist/lib/app-managed-resources.js +10 -6
- package/dist/lib/app-runtime.js +29 -11
- package/dist/lib/auth-store.js +36 -68
- package/dist/lib/build-config.js +8 -0
- package/dist/lib/builtin-db.js +86 -0
- package/dist/lib/cli-config.js +176 -0
- package/dist/lib/cli-home.js +6 -21
- package/dist/lib/db-connection-check.js +178 -0
- package/dist/lib/env-config.js +7 -0
- package/dist/lib/generated-command.js +23 -3
- package/dist/lib/plugin-storage.js +127 -0
- package/dist/lib/prompt-validators.js +4 -4
- package/dist/lib/run-npm.js +53 -0
- package/dist/lib/runtime-env-vars.js +32 -0
- package/dist/lib/runtime-generator.js +89 -10
- package/dist/lib/self-manager.js +57 -2
- package/dist/lib/skills-manager.js +2 -2
- package/dist/lib/startup-update.js +85 -7
- package/dist/locale/en-US.json +16 -13
- package/dist/locale/zh-CN.json +16 -13
- package/nocobase-ctl.config.json +82 -0
- package/package.json +16 -4
package/nocobase-ctl.config.json
CHANGED
|
@@ -215,6 +215,88 @@
|
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
},
|
|
218
|
+
"backup": {
|
|
219
|
+
"name": "backup",
|
|
220
|
+
"description": "Create, inspect, download, remove, and restore NocoBase backups.",
|
|
221
|
+
"include": true,
|
|
222
|
+
"resources": {
|
|
223
|
+
"includes": ["backup"],
|
|
224
|
+
"excludes": [],
|
|
225
|
+
"overrides": {
|
|
226
|
+
"backup": {
|
|
227
|
+
"name": "backup",
|
|
228
|
+
"description": "Manage backup and restore files.",
|
|
229
|
+
"topLevel": true,
|
|
230
|
+
"operations": {
|
|
231
|
+
"includes": [
|
|
232
|
+
"backup:list",
|
|
233
|
+
"backup:create",
|
|
234
|
+
"backup:status",
|
|
235
|
+
"backup:download",
|
|
236
|
+
"backup:remove",
|
|
237
|
+
"backup:restore",
|
|
238
|
+
"backup:restoreUpload",
|
|
239
|
+
"backup:restoreStatus"
|
|
240
|
+
]
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"migration": {
|
|
247
|
+
"name": "migration",
|
|
248
|
+
"description": "Create, check, execute, and inspect migration packages.",
|
|
249
|
+
"include": true,
|
|
250
|
+
"resources": {
|
|
251
|
+
"includes": ["migration", "migrationLog", "migrationRule", "migrationRules"],
|
|
252
|
+
"excludes": [],
|
|
253
|
+
"overrides": {
|
|
254
|
+
"migration": {
|
|
255
|
+
"name": "migration",
|
|
256
|
+
"description": "Manage migration files and executions.",
|
|
257
|
+
"topLevel": true,
|
|
258
|
+
"operations": {
|
|
259
|
+
"includes": [
|
|
260
|
+
"migration:list",
|
|
261
|
+
"migration:get",
|
|
262
|
+
"migration:create",
|
|
263
|
+
"migration:download",
|
|
264
|
+
"migration:remove",
|
|
265
|
+
"migration:check",
|
|
266
|
+
"migration:execute"
|
|
267
|
+
]
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"migrationRule": {
|
|
271
|
+
"name": "migration rules",
|
|
272
|
+
"segments": ["migration", "rules"],
|
|
273
|
+
"description": "Create migration rules with global user/system policies.",
|
|
274
|
+
"topLevel": true,
|
|
275
|
+
"operations": {
|
|
276
|
+
"includes": ["migrationRule:create"]
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"migrationRules": {
|
|
280
|
+
"name": "migration rules",
|
|
281
|
+
"segments": ["migration", "rules"],
|
|
282
|
+
"description": "List and inspect migration rules.",
|
|
283
|
+
"topLevel": true,
|
|
284
|
+
"operations": {
|
|
285
|
+
"includes": ["migrationRules:list", "migrationRules:get"]
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"migrationLog": {
|
|
289
|
+
"name": "migration logs",
|
|
290
|
+
"segments": ["migration", "logs"],
|
|
291
|
+
"description": "List, inspect, and download migration logs.",
|
|
292
|
+
"topLevel": true,
|
|
293
|
+
"operations": {
|
|
294
|
+
"includes": ["migrationLog:list", "migrationLog:get", "migrationLog:download"]
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
},
|
|
218
300
|
"system-settings": {
|
|
219
301
|
"name": "system-settings",
|
|
220
302
|
"description": "Adjust system title, logo, language, and other global settings.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/cli",
|
|
3
|
-
"version": "2.1.0-alpha.
|
|
3
|
+
"version": "2.1.0-alpha.28",
|
|
4
4
|
"description": "NocoBase Command Line Tool",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/generated/command-registry.js",
|
|
@@ -58,6 +58,12 @@
|
|
|
58
58
|
"env": {
|
|
59
59
|
"description": "Manage NocoBase project environments, status, details, and command runtimes."
|
|
60
60
|
},
|
|
61
|
+
"license": {
|
|
62
|
+
"description": "Manage NocoBase commercial licensing and licensed plugins."
|
|
63
|
+
},
|
|
64
|
+
"config": {
|
|
65
|
+
"description": "Manage CLI configuration defaults."
|
|
66
|
+
},
|
|
61
67
|
"self": {
|
|
62
68
|
"description": "Inspect or update the NocoBase CLI itself."
|
|
63
69
|
},
|
|
@@ -75,21 +81,27 @@
|
|
|
75
81
|
},
|
|
76
82
|
"dependencies": {
|
|
77
83
|
"@clack/prompts": "^0.9.1",
|
|
84
|
+
"@nocobase/license-kit": "^0.3.8",
|
|
78
85
|
"@oclif/core": "^4.10.4",
|
|
79
86
|
"cross-spawn": "^7.0.6",
|
|
80
87
|
"lodash": "^4.17.21",
|
|
88
|
+
"mariadb": "^2.5.6",
|
|
89
|
+
"mysql2": "^3.14.0",
|
|
81
90
|
"openapi-types": "^12.1.3",
|
|
82
91
|
"ora": "^8.2.0",
|
|
83
|
-
"
|
|
92
|
+
"pg": "^8.14.1",
|
|
93
|
+
"picocolors": "^1.1.1",
|
|
94
|
+
"tar": "^7.4.3"
|
|
84
95
|
},
|
|
85
96
|
"devDependencies": {
|
|
86
97
|
"@types/node": "^18.19.130",
|
|
87
98
|
"tsx": "^4.20.6",
|
|
88
|
-
"typescript": "^6.0.2"
|
|
99
|
+
"typescript": "^6.0.2",
|
|
100
|
+
"vitest": "^1.5.0"
|
|
89
101
|
},
|
|
90
102
|
"repository": {
|
|
91
103
|
"type": "git",
|
|
92
104
|
"url": "git+https://github.com/nocobase/nocobase.git"
|
|
93
105
|
},
|
|
94
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "e38293c4a1ce4d043d2b17a3067fd4f0341a7a2d"
|
|
95
107
|
}
|