@nocobase/cli 2.1.0-alpha.3 → 2.1.0-alpha.31
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/LICENSE.txt +107 -0
- package/README.md +379 -19
- package/README.zh-CN.md +329 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +131 -0
- package/dist/commands/api/resource/create.js +15 -0
- package/dist/commands/api/resource/destroy.js +15 -0
- package/dist/commands/api/resource/get.js +15 -0
- package/dist/commands/api/resource/index.js +20 -0
- package/dist/commands/api/resource/list.js +16 -0
- package/dist/commands/api/resource/query.js +15 -0
- package/dist/commands/api/resource/update.js +15 -0
- package/dist/commands/app/down.js +266 -0
- package/dist/commands/app/logs.js +98 -0
- package/dist/commands/app/restart.js +75 -0
- package/dist/commands/app/start.js +253 -0
- package/dist/commands/app/stop.js +99 -0
- package/dist/commands/app/upgrade.js +582 -0
- package/{src/cli.js → dist/commands/build.js} +4 -11
- 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 +85 -0
- package/dist/commands/db/ps.js +60 -0
- package/dist/commands/db/shared.js +96 -0
- package/dist/commands/db/start.js +71 -0
- package/dist/commands/db/stop.js +71 -0
- package/{templates/plugin/src/client/models/index.ts → dist/commands/dev.js} +4 -4
- package/{src/index.js → dist/commands/down.js} +4 -6
- package/{src/commands/locale/react-js-cron/index.js → dist/commands/download.js} +4 -8
- package/dist/commands/env/add.js +312 -0
- package/dist/commands/env/auth.js +55 -0
- package/dist/commands/env/info.js +156 -0
- package/dist/commands/env/list.js +50 -0
- package/dist/commands/env/remove.js +59 -0
- package/dist/commands/env/shared.js +158 -0
- package/dist/commands/env/update.js +67 -0
- package/dist/commands/env/use.js +28 -0
- package/dist/commands/examples/prompts-stages.js +150 -0
- package/dist/commands/examples/prompts-test.js +181 -0
- package/dist/commands/init.js +1027 -0
- package/dist/commands/install.js +2206 -0
- package/dist/commands/license/activate.js +360 -0
- package/dist/commands/license/env.js +94 -0
- package/dist/commands/license/generate-id.js +108 -0
- package/dist/commands/license/id.js +56 -0
- package/dist/commands/license/index.js +20 -0
- package/dist/commands/license/plugins/clean.js +101 -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 +269 -0
- package/dist/commands/license/shared.js +414 -0
- package/dist/commands/license/status.js +50 -0
- package/dist/commands/logs.js +12 -0
- package/dist/commands/plugin/disable.js +66 -0
- package/dist/commands/plugin/enable.js +66 -0
- package/dist/commands/plugin/list.js +62 -0
- package/dist/commands/pm/disable.js +12 -0
- package/dist/commands/pm/enable.js +12 -0
- package/dist/commands/pm/list.js +12 -0
- package/dist/commands/restart.js +12 -0
- package/dist/commands/scaffold/migration.js +38 -0
- package/dist/commands/scaffold/plugin.js +37 -0
- package/dist/commands/self/check.js +71 -0
- package/dist/commands/self/index.js +20 -0
- package/dist/commands/self/update.js +86 -0
- package/dist/commands/skills/check.js +69 -0
- package/dist/commands/skills/index.js +20 -0
- package/dist/commands/skills/install.js +71 -0
- package/dist/commands/skills/remove.js +71 -0
- package/dist/commands/skills/update.js +78 -0
- package/dist/commands/source/build.js +58 -0
- package/dist/commands/source/dev.js +158 -0
- package/dist/commands/source/download.js +866 -0
- package/dist/commands/source/test.js +477 -0
- package/dist/commands/start.js +12 -0
- package/dist/commands/stop.js +12 -0
- package/dist/commands/test.js +12 -0
- package/dist/commands/upgrade.js +12 -0
- package/dist/generated/command-registry.js +133 -0
- package/dist/help/runtime-help.js +23 -0
- package/dist/lib/api-client.js +329 -0
- package/dist/lib/app-health.js +126 -0
- package/dist/lib/app-managed-resources.js +268 -0
- package/dist/lib/app-runtime.js +171 -0
- package/dist/lib/auth-store.js +328 -0
- package/dist/lib/bootstrap.js +384 -0
- package/dist/lib/build-config.js +18 -0
- package/dist/lib/builtin-db.js +86 -0
- package/dist/lib/cli-config.js +176 -0
- package/dist/lib/cli-home.js +47 -0
- package/dist/lib/cli-locale.js +129 -0
- package/dist/lib/command-discovery.js +39 -0
- package/dist/lib/db-connection-check.js +178 -0
- package/dist/lib/env-auth.js +872 -0
- package/dist/lib/env-config.js +87 -0
- package/dist/lib/generated-command.js +171 -0
- package/dist/lib/http-request.js +49 -0
- package/dist/lib/naming.js +70 -0
- package/dist/lib/openapi.js +62 -0
- package/dist/lib/plugin-storage.js +127 -0
- package/dist/lib/post-processors.js +23 -0
- package/dist/lib/prompt-catalog.js +581 -0
- package/dist/lib/prompt-validators.js +185 -0
- package/dist/lib/prompt-web-ui.js +2103 -0
- package/dist/lib/resource-command.js +343 -0
- package/dist/lib/resource-request.js +104 -0
- package/dist/lib/run-npm.js +250 -0
- package/dist/lib/runtime-env-vars.js +32 -0
- package/dist/lib/runtime-generator.js +498 -0
- package/dist/lib/runtime-store.js +56 -0
- package/dist/lib/self-manager.js +301 -0
- package/dist/lib/skills-manager.js +296 -0
- package/dist/lib/startup-update.js +281 -0
- package/dist/lib/ui.js +178 -0
- package/dist/locale/en-US.json +339 -0
- package/dist/locale/zh-CN.json +339 -0
- package/dist/post-processors/data-modeling.js +66 -0
- package/dist/post-processors/data-source-manager.js +114 -0
- package/dist/post-processors/index.js +19 -0
- package/nocobase-ctl.config.json +369 -0
- package/package.json +95 -26
- package/LICENSE +0 -661
- package/bin/index.js +0 -39
- package/nocobase.conf.tpl +0 -95
- package/src/commands/benchmark.js +0 -73
- package/src/commands/build.js +0 -49
- package/src/commands/clean.js +0 -30
- package/src/commands/client.js +0 -166
- package/src/commands/create-nginx-conf.js +0 -37
- package/src/commands/create-plugin.js +0 -33
- package/src/commands/dev.js +0 -200
- package/src/commands/doc.js +0 -76
- package/src/commands/e2e.js +0 -265
- package/src/commands/global.js +0 -43
- package/src/commands/index.js +0 -45
- package/src/commands/instance-id.js +0 -47
- package/src/commands/locale/cronstrue.js +0 -122
- package/src/commands/locale/react-js-cron/en-US.json +0 -75
- package/src/commands/locale/react-js-cron/zh-CN.json +0 -33
- package/src/commands/locale/react-js-cron/zh-TW.json +0 -33
- package/src/commands/locale.js +0 -81
- package/src/commands/p-test.js +0 -88
- package/src/commands/perf.js +0 -63
- package/src/commands/pkg.js +0 -321
- package/src/commands/pm2.js +0 -37
- package/src/commands/postinstall.js +0 -88
- package/src/commands/start.js +0 -148
- package/src/commands/tar.js +0 -36
- package/src/commands/test-coverage.js +0 -55
- package/src/commands/test.js +0 -107
- package/src/commands/umi.js +0 -33
- package/src/commands/update-deps.js +0 -72
- package/src/commands/upgrade.js +0 -47
- package/src/commands/view-license-key.js +0 -44
- package/src/license.js +0 -76
- package/src/logger.js +0 -75
- package/src/plugin-generator.js +0 -80
- package/src/util.js +0 -517
- package/templates/bundle-status.html +0 -338
- package/templates/create-app-package.json +0 -39
- package/templates/plugin/.npmignore.tpl +0 -2
- package/templates/plugin/README.md.tpl +0 -1
- package/templates/plugin/client.d.ts +0 -2
- package/templates/plugin/client.js +0 -1
- package/templates/plugin/package.json.tpl +0 -11
- package/templates/plugin/server.d.ts +0 -2
- package/templates/plugin/server.js +0 -1
- package/templates/plugin/src/client/client.d.ts +0 -249
- package/templates/plugin/src/client/index.tsx.tpl +0 -1
- package/templates/plugin/src/client/locale.ts +0 -21
- package/templates/plugin/src/client/plugin.tsx.tpl +0 -10
- package/templates/plugin/src/index.ts +0 -2
- package/templates/plugin/src/locale/en-US.json +0 -1
- package/templates/plugin/src/locale/zh-CN.json +0 -1
- package/templates/plugin/src/server/collections/.gitkeep +0 -0
- package/templates/plugin/src/server/index.ts.tpl +0 -1
- package/templates/plugin/src/server/plugin.ts.tpl +0 -19
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
{
|
|
2
|
+
"promptCatalog": {
|
|
3
|
+
"common": {
|
|
4
|
+
"cancelled": "Cancelled.",
|
|
5
|
+
"required": "Required",
|
|
6
|
+
"mustBeInteger": "Must be an integer"
|
|
7
|
+
},
|
|
8
|
+
"preset": {
|
|
9
|
+
"required": "\"{{key}}\" is required; set a non-empty values.{{key}} or omit it to prompt.",
|
|
10
|
+
"invalidSelect": "Invalid values.{{key}}: \"{{value}}\". Expected one of: {{options}}",
|
|
11
|
+
"invalidInteger": "Invalid values.{{key}}: must be an integer."
|
|
12
|
+
},
|
|
13
|
+
"nonInteractive": {
|
|
14
|
+
"textRequired": "Non-interactive: \"{{key}}\" is required; set initialValues.{{key}}, yesInitialValues.{{key}}, yesInitialValue on the block, or initialValue.",
|
|
15
|
+
"selectMissingDefault": "Non-interactive: set initialValues.{{key}}, yesInitialValues.{{key}}, or select.initialValue / yesInitialValue / options on the catalog block.",
|
|
16
|
+
"selectInvalidValue": "Invalid value for {{key}}: {{value}}. Expected one of: {{options}}",
|
|
17
|
+
"selectRequiredNoOptions": "Select \"{{key}}\" is required but has no options.",
|
|
18
|
+
"selectRequiredInteractive": "Select \"{{key}}\" is required; set initialValues.{{key}} or select.initialValue / options on the catalog block.",
|
|
19
|
+
"selectMissingInteractiveDefault": "Select \"{{key}}\" has no valid default; set initialValues.{{key}} or options on the catalog block.",
|
|
20
|
+
"passwordRequired": "Non-interactive: \"{{key}}\" is required; set initialValues.{{key}}, yesInitialValues.{{key}}, or initialValue / yesInitialValue on the block.",
|
|
21
|
+
"passwordRequiredNonEmpty": "Non-interactive: \"{{key}}\" is required; set a non-empty initialValues / yesInitialValues / initialValue / yesInitialValue.",
|
|
22
|
+
"integerRequired": "Non-interactive: \"{{key}}\" is required; set initialValues.{{key}}, yesInitialValues.{{key}}, or initialValue / yesInitialValue on the block."
|
|
23
|
+
},
|
|
24
|
+
"web": {
|
|
25
|
+
"pageTitle": "Prompt catalog (local UI)",
|
|
26
|
+
"documentHeading": "Configure parameters (localhost only)",
|
|
27
|
+
"documentHint": "This server is only bound to the loopback interface. After submit, the CLI continues in the same terminal session.",
|
|
28
|
+
"defaultFormTitle": "Form",
|
|
29
|
+
"defaultStepTitle": "Step {{index}}",
|
|
30
|
+
"stepsAriaLabel": "Form steps",
|
|
31
|
+
"stepsSidebarAriaLabel": "Steps",
|
|
32
|
+
"stepNavigationAriaLabel": "Step navigation and submit",
|
|
33
|
+
"submitAriaLabel": "Submit",
|
|
34
|
+
"back": "Back",
|
|
35
|
+
"next": "Next",
|
|
36
|
+
"submit": "Submit & continue in terminal",
|
|
37
|
+
"checking": "Checking...",
|
|
38
|
+
"sending": "Sending...",
|
|
39
|
+
"successTitle": "Success",
|
|
40
|
+
"errorTitle": "Error",
|
|
41
|
+
"savedAndClosing": "Saved. This tab will close automatically in 5 seconds.",
|
|
42
|
+
"savedCloseBlocked": "Saved. Automatic close was blocked by the browser. You can close this tab now.",
|
|
43
|
+
"invalidValue": "Invalid value",
|
|
44
|
+
"invalidRequest": "Invalid request",
|
|
45
|
+
"invalidStep": "Invalid or missing wizard step.",
|
|
46
|
+
"invalidField": "Invalid or missing field key.",
|
|
47
|
+
"fieldRequired": "Field \"{{key}}\" is required.",
|
|
48
|
+
"fieldMustBeInteger": "Field \"{{key}}\" must be an integer."
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"validators": {
|
|
52
|
+
"apiBaseUrl": {
|
|
53
|
+
"invalid": "Enter a valid URL, for example {{example}}.",
|
|
54
|
+
"invalidProtocol": "URL must start with http:// or https://, for example {{example}}."
|
|
55
|
+
},
|
|
56
|
+
"envKey": {
|
|
57
|
+
"invalid": "Use letters and numbers only."
|
|
58
|
+
},
|
|
59
|
+
"tcpPort": {
|
|
60
|
+
"invalid": "Enter a valid TCP port between 1 and 65535, for example {{example}}.",
|
|
61
|
+
"allocateFailed": "Failed to allocate an available TCP port.",
|
|
62
|
+
"allocateNotDockerPublished": "Failed to allocate an available TCP port that is not already published by Docker.",
|
|
63
|
+
"alreadyInUse": "Port {{port}} is already in use. Choose another port.",
|
|
64
|
+
"alreadyInUseByDocker": "Port {{port}} is already in use by a Docker container. Choose another port."
|
|
65
|
+
},
|
|
66
|
+
"dbConnection": {
|
|
67
|
+
"unreachable": "Can't reach the database at {{host}}:{{port}}. Check the host, port, and network connectivity. Details: {{details}}",
|
|
68
|
+
"timeout": "Timed out connecting to the database at {{host}}:{{port}} after about {{seconds}} seconds.",
|
|
69
|
+
"authenticationFailed": "Failed to sign in to database \"{{database}}\" with user \"{{user}}\". Check the username and password.",
|
|
70
|
+
"databaseNotFound": "Database \"{{database}}\" does not exist or is not accessible with the current connection settings.",
|
|
71
|
+
"connectionFailed": "Database connection check failed. Details: {{details}}"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"commands": {
|
|
75
|
+
"envAdd": {
|
|
76
|
+
"prompts": {
|
|
77
|
+
"name": {
|
|
78
|
+
"message": "What would you like to call this environment?",
|
|
79
|
+
"placeholder": "default"
|
|
80
|
+
},
|
|
81
|
+
"scope": {
|
|
82
|
+
"message": "Where should this connection be saved?",
|
|
83
|
+
"globalLabel": "Global",
|
|
84
|
+
"globalHint": "user-level config"
|
|
85
|
+
},
|
|
86
|
+
"apiBaseUrl": {
|
|
87
|
+
"message": "What is the API base URL?",
|
|
88
|
+
"placeholder": "http://localhost:13000/api"
|
|
89
|
+
},
|
|
90
|
+
"authType": {
|
|
91
|
+
"message": "How would you like to sign in?",
|
|
92
|
+
"oauthLabel": "OAuth (browser login)",
|
|
93
|
+
"oauthHint": "runs nb env auth after save",
|
|
94
|
+
"tokenLabel": "API token / API key"
|
|
95
|
+
},
|
|
96
|
+
"accessToken": {
|
|
97
|
+
"message": "Enter an API token or API key",
|
|
98
|
+
"placeholder": "Enter your API token / API key"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"download": {
|
|
103
|
+
"failures": {
|
|
104
|
+
"dependencyInstall": {
|
|
105
|
+
"title": "Couldn't finish preparing the local NocoBase app.",
|
|
106
|
+
"body": "The download completed, but dependency installation did not finish successfully.",
|
|
107
|
+
"hint": "Run the same command again with `--verbose` to see the full install logs."
|
|
108
|
+
},
|
|
109
|
+
"gitClone": {
|
|
110
|
+
"title": "Couldn't download NocoBase from Git.",
|
|
111
|
+
"body": "The CLI was not able to clone the selected NocoBase repository.",
|
|
112
|
+
"hint": "Run the same command again with `--verbose` to see the full clone logs."
|
|
113
|
+
},
|
|
114
|
+
"dockerPull": {
|
|
115
|
+
"title": "Couldn't download the Docker image.",
|
|
116
|
+
"body": "The CLI was not able to pull the selected NocoBase image.",
|
|
117
|
+
"hint": "Run the same command again with `--verbose` to see the full Docker pull logs."
|
|
118
|
+
},
|
|
119
|
+
"dockerSave": {
|
|
120
|
+
"title": "The Docker image was pulled, but saving the tar file failed.",
|
|
121
|
+
"body": "The CLI could not finish exporting the image to the target tarball path.",
|
|
122
|
+
"hint": "Run the same command again with `--verbose` to see the full Docker save logs."
|
|
123
|
+
},
|
|
124
|
+
"scaffold": {
|
|
125
|
+
"title": "Couldn't create the local NocoBase app scaffold.",
|
|
126
|
+
"body": "The CLI was not able to finish generating the initial app files.",
|
|
127
|
+
"hint": "Run the same command again with `--verbose` to see the full scaffold logs."
|
|
128
|
+
},
|
|
129
|
+
"build": {
|
|
130
|
+
"title": "The local NocoBase app was downloaded, but the build step failed.",
|
|
131
|
+
"body": "The CLI could not finish building the downloaded source code.",
|
|
132
|
+
"hint": "Run the same command again with `--verbose` to see the full build logs."
|
|
133
|
+
},
|
|
134
|
+
"generic": {
|
|
135
|
+
"title": "Couldn't finish downloading NocoBase.",
|
|
136
|
+
"body": "The CLI hit an unexpected command failure while preparing the download.",
|
|
137
|
+
"hint": "Run the same command again with `--verbose` to see the full command logs."
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"prompts": {
|
|
141
|
+
"source": {
|
|
142
|
+
"message": "How would you like to get NocoBase?",
|
|
143
|
+
"dockerLabel": "Docker install (Recommended)",
|
|
144
|
+
"dockerHint": "Best for no-code and low-maintenance setups. You can upgrade later by pulling a newer image and restarting the app.",
|
|
145
|
+
"npmLabel": "create-nocobase-app install",
|
|
146
|
+
"npmHint": "Best when you want an app project with business code kept separate from the NocoBase framework, while still supporting low-code development.",
|
|
147
|
+
"gitLabel": "Git source install",
|
|
148
|
+
"gitHint": "Best when you want to try the latest unreleased changes, contribute code, or debug and modify NocoBase source directly. This option is more developer-oriented."
|
|
149
|
+
},
|
|
150
|
+
"version": {
|
|
151
|
+
"message": "Which version would you like to use?",
|
|
152
|
+
"latestLabel": "latest",
|
|
153
|
+
"latestHint": "Stable release. Best for production use and the most predictable experience. Currently unavailable.",
|
|
154
|
+
"betaLabel": "beta",
|
|
155
|
+
"betaHint": "Preview release. Good for trying upcoming features before general release.",
|
|
156
|
+
"alphaLabel": "alpha",
|
|
157
|
+
"alphaHint": "Development release. Includes the newest changes, but may be incomplete or unstable.",
|
|
158
|
+
"otherLabel": "Other",
|
|
159
|
+
"otherHint": "Enter another package version, Docker tag, or Git ref manually, such as a branch name."
|
|
160
|
+
},
|
|
161
|
+
"otherVersion": {
|
|
162
|
+
"message": "Enter the version, Docker tag, or Git ref you want to use.",
|
|
163
|
+
"placeholder": "For example: fix/cli-v2"
|
|
164
|
+
},
|
|
165
|
+
"dockerRegistry": {
|
|
166
|
+
"message": "Which Docker registry would you like to use? The image tag is set separately in Version.",
|
|
167
|
+
"placeholder": "nocobase/nocobase"
|
|
168
|
+
},
|
|
169
|
+
"dockerPlatform": {
|
|
170
|
+
"message": "Which Docker image platform should be used?",
|
|
171
|
+
"autoLabel": "Auto",
|
|
172
|
+
"autoHint": "Use Docker default for this machine"
|
|
173
|
+
},
|
|
174
|
+
"dockerSave": {
|
|
175
|
+
"message": "Save the Docker image as a tar file"
|
|
176
|
+
},
|
|
177
|
+
"gitUrl": {
|
|
178
|
+
"message": "Git repository URL",
|
|
179
|
+
"placeholder": "https://github.com/nocobase/nocobase.git"
|
|
180
|
+
},
|
|
181
|
+
"outputDir": {
|
|
182
|
+
"message": "Download location",
|
|
183
|
+
"placeholder": "e.g. ./nocobase-latest"
|
|
184
|
+
},
|
|
185
|
+
"npmRegistry": {
|
|
186
|
+
"message": "npm registry URL (optional)",
|
|
187
|
+
"placeholder": "Leave empty to use the default registry"
|
|
188
|
+
},
|
|
189
|
+
"replace": {
|
|
190
|
+
"message": "Clear the app directory if it already contains files"
|
|
191
|
+
},
|
|
192
|
+
"devDependencies": {
|
|
193
|
+
"message": "Install development dependencies (npm only)"
|
|
194
|
+
},
|
|
195
|
+
"build": {
|
|
196
|
+
"message": "Build the app after download"
|
|
197
|
+
},
|
|
198
|
+
"buildDts": {
|
|
199
|
+
"message": "Generate TypeScript declaration files"
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"install": {
|
|
204
|
+
"validation": {
|
|
205
|
+
"builtinDbUnsupported": "Built-in database does not support \"{{dialect}}\" yet. Choose PostgreSQL, MySQL, or MariaDB, or turn off built-in database."
|
|
206
|
+
},
|
|
207
|
+
"prompts": {
|
|
208
|
+
"env": {
|
|
209
|
+
"message": "What would you like to call this app?",
|
|
210
|
+
"placeholder": "local"
|
|
211
|
+
},
|
|
212
|
+
"lang": {
|
|
213
|
+
"message": "Which language would you like to use?"
|
|
214
|
+
},
|
|
215
|
+
"appRootPath": {
|
|
216
|
+
"message": "Where should this app be stored?",
|
|
217
|
+
"placeholder": "./<env>/source/"
|
|
218
|
+
},
|
|
219
|
+
"appPort": {
|
|
220
|
+
"message": "Which port should this app use?",
|
|
221
|
+
"placeholder": "13000"
|
|
222
|
+
},
|
|
223
|
+
"storagePath": {
|
|
224
|
+
"message": "Where should uploads and local files be stored?",
|
|
225
|
+
"placeholder": "./<env>/storage/"
|
|
226
|
+
},
|
|
227
|
+
"fetchSource": {
|
|
228
|
+
"message": "Download NocoBase automatically if the app directory is empty?"
|
|
229
|
+
},
|
|
230
|
+
"dbDialect": {
|
|
231
|
+
"message": "Which database would you like to use?"
|
|
232
|
+
},
|
|
233
|
+
"builtinDb": {
|
|
234
|
+
"message": "Would you like to use the built-in database?"
|
|
235
|
+
},
|
|
236
|
+
"builtinDbImage": {
|
|
237
|
+
"message": "Which Docker image should be used for the built-in database?",
|
|
238
|
+
"placeholder": "postgres:16"
|
|
239
|
+
},
|
|
240
|
+
"dbHost": {
|
|
241
|
+
"message": "What is the database host?",
|
|
242
|
+
"placeholder": "127.0.0.1"
|
|
243
|
+
},
|
|
244
|
+
"dbPort": {
|
|
245
|
+
"message": "What is the database port?",
|
|
246
|
+
"placeholder": "5432"
|
|
247
|
+
},
|
|
248
|
+
"dbDatabase": {
|
|
249
|
+
"message": "What is the database name?"
|
|
250
|
+
},
|
|
251
|
+
"dbUser": {
|
|
252
|
+
"message": "What is the database username?"
|
|
253
|
+
},
|
|
254
|
+
"dbPassword": {
|
|
255
|
+
"message": "What is the database password?"
|
|
256
|
+
},
|
|
257
|
+
"rootUsername": {
|
|
258
|
+
"message": "Choose the initial admin username",
|
|
259
|
+
"placeholder": "nocobase"
|
|
260
|
+
},
|
|
261
|
+
"rootEmail": {
|
|
262
|
+
"message": "What is the initial admin email?",
|
|
263
|
+
"placeholder": "admin@nocobase.com"
|
|
264
|
+
},
|
|
265
|
+
"rootPassword": {
|
|
266
|
+
"message": "Choose the initial admin password"
|
|
267
|
+
},
|
|
268
|
+
"rootNickname": {
|
|
269
|
+
"message": "What display name should the initial admin use?",
|
|
270
|
+
"placeholder": "Super Admin"
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"init": {
|
|
275
|
+
"validation": {
|
|
276
|
+
"envExists": "Env \"{{envName}}\" already exists. Choose another env name."
|
|
277
|
+
},
|
|
278
|
+
"messages": {
|
|
279
|
+
"title": "Set Up NocoBase for Coding Agents",
|
|
280
|
+
"appNameRequiredWhenSkipped": "Env name is required when prompts are skipped.",
|
|
281
|
+
"appNameEnvHelp": "Use `nb init --yes --env <envName>` to continue.",
|
|
282
|
+
"resumeEnvRequired": "Env name is required when resuming setup.",
|
|
283
|
+
"resumeEnvHelp": "Use `nb init --resume --env <envName>` to continue.",
|
|
284
|
+
"resumeAfterInstallFailure": "Resume this setup with:\n {{command}}",
|
|
285
|
+
"uiOpening": "A local setup form will open in your browser. That form needs a person to fill it in. If you are using an AI agent, do not stop this process while the CLI waits for the submission.",
|
|
286
|
+
"uiReady": "Local setup form is ready.",
|
|
287
|
+
"uiReadyHelp": "If your browser does not open automatically, copy the URL below into your browser to continue. Keep this terminal session running while the CLI waits for the submission.",
|
|
288
|
+
"uiOpenBrowserFallback": "We could not open your browser automatically. Copy the URL above into your browser to continue setup, and keep this terminal session running. If you are using an AI agent, do not stop the current process."
|
|
289
|
+
},
|
|
290
|
+
"prompts": {
|
|
291
|
+
"appName": {
|
|
292
|
+
"message": "What should this environment use for `--env`?",
|
|
293
|
+
"placeholder": "local"
|
|
294
|
+
},
|
|
295
|
+
"hasNocobase": {
|
|
296
|
+
"message": "Do you already have a NocoBase application?",
|
|
297
|
+
"noLabel": "I don't have a NocoBase application yet",
|
|
298
|
+
"yesLabel": "I already have a NocoBase application"
|
|
299
|
+
},
|
|
300
|
+
"installSkills": {
|
|
301
|
+
"message": "Install NocoBase AI coding skills (nocobase/skills)?"
|
|
302
|
+
},
|
|
303
|
+
"apiBaseUrl": {
|
|
304
|
+
"message": "API base URL",
|
|
305
|
+
"placeholder": "http://localhost:13000/api"
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"webUi": {
|
|
309
|
+
"pageTitle": "Set Up NocoBase for Coding Agents",
|
|
310
|
+
"documentHeading": "Set Up NocoBase for Coding Agents",
|
|
311
|
+
"documentHint": "Connect an existing NocoBase app, or install a new one, so coding agents can access and work with NocoBase.",
|
|
312
|
+
"gettingStarted": {
|
|
313
|
+
"title": "Getting started",
|
|
314
|
+
"description": "Choose whether to connect an existing app or install a new one."
|
|
315
|
+
},
|
|
316
|
+
"connectExistingApp": {
|
|
317
|
+
"title": "Connect an existing app",
|
|
318
|
+
"description": "Save your app connection."
|
|
319
|
+
},
|
|
320
|
+
"createNewApp": {
|
|
321
|
+
"title": "Install a new app",
|
|
322
|
+
"description": "Set app basics and install options."
|
|
323
|
+
},
|
|
324
|
+
"downloadAppFiles": {
|
|
325
|
+
"title": "Download app files",
|
|
326
|
+
"description": "Choose how to get the app files."
|
|
327
|
+
},
|
|
328
|
+
"configureDatabase": {
|
|
329
|
+
"title": "Configure the database",
|
|
330
|
+
"description": "Use built-in or custom."
|
|
331
|
+
},
|
|
332
|
+
"createAdminAccount": {
|
|
333
|
+
"title": "Create an admin account",
|
|
334
|
+
"description": "Set up the first admin."
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|