@nocobase/plugin-ai 2.3.0-beta.3 → 3.0.0-alpha.11
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/dist/ai/docs/nocobase/ai/ai-quick-start.md +1 -1
- package/dist/ai/docs/nocobase/ai/claude-code/index.md +1 -1
- package/dist/ai/docs/nocobase/ai/codex/index.md +1 -1
- package/dist/ai/docs/nocobase/ai/hermes-agent/index.md +1 -1
- package/dist/ai/docs/nocobase/ai/index.md +6 -25
- package/dist/ai/docs/nocobase/ai/install-nocobase-app.md +1 -1
- package/dist/ai/docs/nocobase/ai/openclaw/index.md +1 -1
- package/dist/ai/docs/nocobase/ai/opencode/index.md +1 -1
- package/dist/ai/docs/nocobase/ai/quick-start.mdx +9 -7
- package/dist/ai/docs/nocobase/ai/workbuddy/index.md +1 -1
- package/dist/ai/docs/nocobase/ai-builder/ai-portal/agent-workflow.md +153 -0
- package/dist/ai/docs/nocobase/ai-builder/ai-portal/components.md +134 -0
- package/dist/ai/docs/nocobase/ai-builder/ai-portal/deploy.md +164 -0
- package/dist/ai/docs/nocobase/ai-builder/ai-portal/index.md +144 -0
- package/dist/ai/docs/nocobase/ai-builder/ai-portal/model-selection.md +120 -0
- package/dist/ai/docs/nocobase/ai-builder/ai-portal/project-structure.md +128 -0
- package/dist/ai/docs/nocobase/ai-builder/index.md +73 -32
- package/dist/ai/docs/nocobase/ai-builder/ui-builder.md +2 -0
- package/dist/ai/docs/nocobase/ai-dev/index.md +2 -1
- package/dist/ai/docs/nocobase/ai-employees/dev/ai-employee/complete-example.md +206 -0
- package/dist/ai/docs/nocobase/ai-employees/dev/ai-employee/define-ai-employee.md +149 -0
- package/dist/ai/docs/nocobase/ai-employees/dev/ai-employee/define-skill.md +138 -0
- package/dist/ai/docs/nocobase/ai-employees/dev/ai-employee/define-tool.md +189 -0
- package/dist/ai/docs/nocobase/ai-employees/dev/ai-employee/frontend-tool-ui.md +296 -0
- package/dist/ai/docs/nocobase/ai-employees/dev/ai-employee/index.md +126 -0
- package/dist/ai/docs/nocobase/ai-employees/dev/ai-employee/internationalization.md +88 -0
- package/dist/ai/docs/nocobase/ai-employees/dev/ai-employee/troubleshooting.md +86 -0
- package/dist/ai/docs/nocobase/ai-employees/{knowledge-base/dev → dev/knowledge-base}/external-knowledge-base.md +2 -2
- package/dist/ai/docs/nocobase/ai-employees/knowledge-base/knowledge-base/index.md +1 -1
- package/dist/ai/docs/nocobase/api/app/env.md +1 -1
- package/dist/ai/docs/nocobase/api/cli/index.md +14 -2
- package/dist/ai/docs/nocobase/api/cli/portal/config.md +46 -0
- package/dist/ai/docs/nocobase/api/cli/portal/create.md +45 -0
- package/dist/ai/docs/nocobase/api/cli/portal/deploy.md +39 -0
- package/dist/ai/docs/nocobase/api/cli/portal/destroy.md +43 -0
- package/dist/ai/docs/nocobase/api/cli/portal/dev.md +51 -0
- package/dist/ai/docs/nocobase/api/cli/portal/index.md +142 -0
- package/dist/ai/docs/nocobase/api/cli/portal/info.md +41 -0
- package/dist/ai/docs/nocobase/api/cli/portal/list.md +40 -0
- package/dist/ai/docs/nocobase/api/cli/portal/pull.md +53 -0
- package/dist/ai/docs/nocobase/api/cli/portal/push.md +41 -0
- package/dist/ai/docs/nocobase/development/index.md +1 -1
- package/dist/ai/docs/nocobase/get-started/installation/env.md +1 -1
- package/dist/ai/docs/nocobase/nocobase-cli/installation/cli.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-action-bulk-edit/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-action-bulk-update/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-action-custom-request/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-action-duplicate/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-action-export/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-action-import/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-action-print/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-ai/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-ai-gigachat/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-api-doc/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-api-keys/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-async-task-manager/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-audit-logs/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-auth/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-auth-sms/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-backup-restore/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-backups/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-block-comment/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-block-grid-card/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-block-iframe/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-block-list/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-block-markdown/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-block-multi-step-form/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-block-template/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-block-tree/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-block-workbench/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-calendar/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-charts/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-client/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-collection-fdw/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-collection-sql/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-collection-tree/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-comments/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-custom-variables/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-data-source-main/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-data-source-manager/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-data-visualization/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-data-visualization-echarts/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-departments/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-embed/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-environment-variables/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-error-handler/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-field-attachment-url/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-field-china-region/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-field-code/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-field-formula/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-field-m2m-array/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-field-markdown-vditor/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-field-sequence/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-field-sort/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-file-manager/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-file-previewer-office/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-flow-engine/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-form-drafts/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-gantt/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-graph-collection-manager/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-idp-oauth/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-kanban/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-license/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-locale-tester/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-localization/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-logger/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-map/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-mcp-server/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-mobile/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-mobile-client/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-multi-app-manager/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-multi-app-share-collection/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-multi-keyword-filter/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-notification-email/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-notification-in-app-message/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-notification-manager/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-public-forms/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-snapshot-field/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-system-settings/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-text-copy/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-theme-editor/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-ui-layout/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-ui-schema-storage/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-ui-templates/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-user-data-sync/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-users/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-verification/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-action-trigger/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-aggregate/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-cc/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-custom-action-trigger/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-date-calculation/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-delay/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-dynamic-calculation/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-javascript/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-json-variable-mapping/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-loop/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-mailer/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-manual/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-notification/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-parallel/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-request/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-request-interceptor/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-response-message/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-sql/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-test/index.md +1 -1
- package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-variable/index.md +1 -1
- package/dist/client/{244.28ee769f796b7c2f.js → 244.276308c9b2090ec2.js} +1 -1
- package/dist/client/{264.cc98933ef65608b6.js → 264.6ca5f2eeb4173d86.js} +1 -1
- package/dist/client/index.js +2 -2
- package/dist/client-v2/{244.39348a95d627d9e3.js → 244.e85b8d4659ca66c0.js} +1 -1
- package/dist/client-v2/{264.be92ff6a4d2612f1.js → 264.3c7d8e90aa7f46ee.js} +1 -1
- package/dist/client-v2/index.js +2 -2
- package/dist/externalVersion.js +15 -15
- package/dist/node_modules/@langchain/mistralai/package.json +1 -1
- package/dist/node_modules/@langchain/xai/package.json +1 -1
- package/dist/node_modules/fs-extra/package.json +1 -1
- package/dist/node_modules/jsonrepair/package.json +1 -1
- package/dist/node_modules/just-bash/package.json +1 -1
- package/dist/node_modules/nodejs-snowflake/package.json +1 -1
- package/dist/node_modules/openai/package.json +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/ai-employees/ai-conversations.d.ts +2 -1
- package/dist/server/ai-employees/ai-conversations.js +2 -0
- package/dist/server/collections/ai-conversations.js +5 -0
- package/dist/server/migrations/20260803185305-migrate-ai-conversations-portal-name.d.ts +14 -0
- package/dist/server/migrations/20260803185305-migrate-ai-conversations-portal-name.js +52 -0
- package/dist/server/resource/aiConversations.js +14 -2
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: 'NocoBase CLI'
|
|
3
|
-
description: 'NocoBase CLI (`nb` command) reference: initialization, backup and restore, configuration, environment management, app runtime, source code, database, plugins, commercial license, API, CLI self-update, and Skills management.'
|
|
4
|
-
keywords: 'NocoBase CLI,nb,command line,command reference,backup,restore,environment management,plugin management,commercial license,API'
|
|
3
|
+
description: 'NocoBase CLI (`nb` command) reference: initialization, backup and restore, configuration, environment management, app runtime, portal, source code, database, plugins, commercial license, API, CLI self-update, and Skills management.'
|
|
4
|
+
keywords: 'NocoBase CLI,nb,command line,command reference,backup,restore,environment management,Portal,plugin management,commercial license,API'
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# NocoBase CLI
|
|
@@ -39,6 +39,7 @@ The following command groups are shown in `nb --help`:
|
|
|
39
39
|
| [`nb env`](./env/index.md) | Manage NocoBase project environments, the current env, status, details, and runtime commands. |
|
|
40
40
|
| [`nb license`](./license/index.md) | Manage commercial licenses and licensed plugins. |
|
|
41
41
|
| [`nb plugin`](./plugin/index.md) | Manage plugins in the selected NocoBase env. |
|
|
42
|
+
| [`nb portal`](./portal/index.md) | Manage a Portal's local source directory: configure, create, develop, sync source, deploy, and destroy. |
|
|
42
43
|
| [`nb scaffold`](./scaffold/index.md) | Generate scaffolding for NocoBase plugin development. |
|
|
43
44
|
| [`nb self`](./self/index.md) | Check or update NocoBase CLI itself. |
|
|
44
45
|
| [`nb session`](./session/index.md) | Configure `NB_SESSION_ID` so the current env is isolated by shell or agent runtime. |
|
|
@@ -70,6 +71,8 @@ nb backup --help
|
|
|
70
71
|
nb config --help
|
|
71
72
|
nb api resource --help
|
|
72
73
|
nb license --help
|
|
74
|
+
nb portal --help
|
|
75
|
+
nb portal config --help
|
|
73
76
|
```
|
|
74
77
|
|
|
75
78
|
## Examples
|
|
@@ -127,6 +130,15 @@ nb license status -e app1
|
|
|
127
130
|
nb license plugins list -e app1
|
|
128
131
|
```
|
|
129
132
|
|
|
133
|
+
Create and develop a portal:
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
nb portal create customer -e app1 --yes
|
|
137
|
+
nb portal config customer -e app1 --yes --source-storage git --git-repo git@github.com:nocobase/customer-portal.git
|
|
138
|
+
nb portal dev customer -e app1 --yes
|
|
139
|
+
nb portal deploy customer -e app1 --yes
|
|
140
|
+
```
|
|
141
|
+
|
|
130
142
|
Create and download a backup:
|
|
131
143
|
|
|
132
144
|
```bash
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "nb portal config"
|
|
3
|
+
description: "nb portal config command reference: update the development path, source storage, and Git source configuration for a portal."
|
|
4
|
+
keywords: "nb portal config,NocoBase CLI,Portal"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# nb portal config
|
|
8
|
+
|
|
9
|
+
Update the portal development path, source storage, and Git source configuration
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
nb portal config <portal> [flags]
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Flag
|
|
18
|
+
|
|
19
|
+
| Flag | Type | Description |
|
|
20
|
+
| --- | --- | --- |
|
|
21
|
+
| `<portal>` | string | Portal name or slug |
|
|
22
|
+
| `--env`, `-e` | string | CLI env name. If omitted, the current env is used. |
|
|
23
|
+
| `--yes`, `-y` | boolean | Skip cross-env confirmation. |
|
|
24
|
+
| `--path` | string | Portal development workspace directory. |
|
|
25
|
+
| `--source-storage` | `nocobase` \| `git` | Where portal source code is managed. |
|
|
26
|
+
| `--git-repo` | string | Git repository URL used with `--source-storage=git`. |
|
|
27
|
+
| `--git-branch` | string | Git branch used with `--source-storage=git`. |
|
|
28
|
+
| `--git-path` | string | Directory inside the Git repository; defaults to the repository root (`.`). |
|
|
29
|
+
|
|
30
|
+
## Examples
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
nb portal config customer --path ./portals/customer
|
|
34
|
+
nb portal config customer --source-storage nocobase
|
|
35
|
+
nb portal config customer --source-storage git --git-repo git@github.com:nocobase/customer-portal.git
|
|
36
|
+
nb portal config customer --git-branch main --git-path portals/customer
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Notes
|
|
40
|
+
|
|
41
|
+
Pass at least one configuration flag. `--path` updates the selected CLI env config. `--source-storage` and `--git-*` update the remote portal record options.
|
|
42
|
+
|
|
43
|
+
## Related Commands
|
|
44
|
+
|
|
45
|
+
- [`nb portal`](./index.md)
|
|
46
|
+
- [`nb env`](../env/index.md)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "nb portal create"
|
|
3
|
+
description: "nb portal create command reference: create a local portal from a template and create or update the portal record."
|
|
4
|
+
keywords: "nb portal create,NocoBase CLI,Portal"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# nb portal create
|
|
8
|
+
|
|
9
|
+
Create a local portal from a template and create or update the portal record
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
nb portal create <portal> [flags]
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Flag
|
|
18
|
+
|
|
19
|
+
| Flag | Type | Description |
|
|
20
|
+
| --- | --- | --- |
|
|
21
|
+
| `<portal>` | string | Portal name or slug. |
|
|
22
|
+
| `--template` | string | Template package, local path, or `file://` URL. Default: `@nocobase/portal-template-default`. |
|
|
23
|
+
| `--env`, `-e` | string | CLI env name. If omitted, the current env is used. |
|
|
24
|
+
| `--yes`, `-y` | boolean | Skip cross-env confirmation. |
|
|
25
|
+
| `--title` | string | Portal display title. |
|
|
26
|
+
| `--path` | string | Portal workspace directory. Default: `./<portal>`. |
|
|
27
|
+
| `--force` | boolean | Delete the existing workspace and recreate it. |
|
|
28
|
+
|
|
29
|
+
## Examples
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
nb portal create customer
|
|
33
|
+
nb portal create customer --path ./portals/customer
|
|
34
|
+
nb portal create customer --template @nocobase/portal-template-default
|
|
35
|
+
nb portal create customer --env dev --yes
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Notes
|
|
39
|
+
|
|
40
|
+
The command writes `.env` and `.env.local`, stores the workspace path in the selected CLI env config, and runs `pnpm install` when the template contains `package.json`. Portal names must use lowercase letters, numbers, underscores, or hyphens, and start with a lowercase letter or number.
|
|
41
|
+
|
|
42
|
+
## Related Commands
|
|
43
|
+
|
|
44
|
+
- [`nb portal`](./index.md)
|
|
45
|
+
- [`nb env`](../env/index.md)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "nb portal deploy"
|
|
3
|
+
description: "nb portal deploy command reference: build and deploy a portal."
|
|
4
|
+
keywords: "nb portal deploy,NocoBase CLI,Portal"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# nb portal deploy
|
|
8
|
+
|
|
9
|
+
Build and deploy the specified portal
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
nb portal deploy <portal> [flags]
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Flag
|
|
18
|
+
|
|
19
|
+
| Flag | Type | Description |
|
|
20
|
+
| --- | --- | --- |
|
|
21
|
+
| `<portal>` | string | Portal name or slug. |
|
|
22
|
+
| `--env`, `-e` | string | CLI env name. If omitted, the current env is used. |
|
|
23
|
+
| `--yes`, `-y` | boolean | Skip cross-env confirmation. |
|
|
24
|
+
|
|
25
|
+
## Examples
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
nb portal deploy customer
|
|
29
|
+
nb portal deploy customer --env dev --yes
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Notes
|
|
33
|
+
|
|
34
|
+
The command refreshes `.env` and `.env.local`, builds from the development path stored in the selected CLI env config, and syncs deployment output to the target app storage. Source storage and Git settings are managed by `nb portal config` in the remote portal record.
|
|
35
|
+
|
|
36
|
+
## Related Commands
|
|
37
|
+
|
|
38
|
+
- [`nb portal`](./index.md)
|
|
39
|
+
- [`nb env`](../env/index.md)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "nb portal destroy"
|
|
3
|
+
description: "nb portal destroy command reference: delete a portal record and its deployed files."
|
|
4
|
+
keywords: "nb portal destroy,NocoBase CLI,Portal"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# nb portal destroy
|
|
8
|
+
|
|
9
|
+
Delete the portal record and deployed files.
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
nb portal destroy <portal> [flags]
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Flag
|
|
18
|
+
|
|
19
|
+
| Flag | Type | Description |
|
|
20
|
+
| --- | --- | --- |
|
|
21
|
+
| `<portal>` | string | Portal name or slug. |
|
|
22
|
+
| `--env`, `-e` | string | CLI env name. If omitted, the current env is used. |
|
|
23
|
+
| `--yes`, `-y` | boolean | Skip confirmation prompts. |
|
|
24
|
+
| `--force` | boolean | Ignore missing portal records or deployment directories. |
|
|
25
|
+
| `--delete-dev-path`, `-D` | boolean | Delete the portal development directory in addition to the deployed portal. |
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
nb portal destroy customer --yes
|
|
31
|
+
nb portal destroy customer --delete-dev-path --yes
|
|
32
|
+
nb portal destroy customer --env dev --yes
|
|
33
|
+
nb portal destroy customer --force --yes
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Notes
|
|
37
|
+
|
|
38
|
+
This command deletes the remote portal record and deployed files. The development directory is retained by default; pass `--delete-dev-path` to delete it as well. In non-interactive mode, pass `--yes`. Use `--force` to ignore missing records or deployment files.
|
|
39
|
+
|
|
40
|
+
## Related Commands
|
|
41
|
+
|
|
42
|
+
- [`nb portal`](./index.md)
|
|
43
|
+
- [`nb env`](../env/index.md)
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "nb portal dev"
|
|
3
|
+
description: "nb portal dev command reference: start development mode for a Portal's local source directory."
|
|
4
|
+
keywords: "nb portal dev,NocoBase CLI,Portal,development mode,local development"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# nb portal dev
|
|
8
|
+
|
|
9
|
+
Start development mode for the specified Portal's local source directory. It is normally used after [`nb portal create`](./create.md) or [`nb portal pull`](./pull.md).
|
|
10
|
+
|
|
11
|
+
It refreshes `.env` and `.env.local` in the local source directory, then runs `pnpm dev` there.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
nb portal dev <portal> [flags]
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Flag
|
|
20
|
+
|
|
21
|
+
| Flag | Type | Description |
|
|
22
|
+
| --- | --- | --- |
|
|
23
|
+
| `<portal>` | string | Portal name or slug |
|
|
24
|
+
| `--env`, `-e` | string | CLI env name. If omitted, the current env is used |
|
|
25
|
+
| `--yes`, `-y` | boolean | Skip the interactive confirmation when an explicit `--env` differs from the current env |
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
Start development mode for a Portal in the current env:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
nb portal dev customer
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Start development mode for a Portal in a specified env:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
nb portal dev customer --env dev --yes
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Notes
|
|
42
|
+
|
|
43
|
+
`dev` starts the dev server from the Portal's local source directory. It doesn't create a Portal record, and it doesn't pull remote source; if the local source directory doesn't exist, use [`nb portal create`](./create.md) or [`nb portal pull`](./pull.md) first.
|
|
44
|
+
|
|
45
|
+
The local source directory must contain `package.json`. `ssh` envs don't support starting Portal development mode yet.
|
|
46
|
+
|
|
47
|
+
## Related Commands
|
|
48
|
+
|
|
49
|
+
- [`nb portal create`](./create.md)
|
|
50
|
+
- [`nb portal pull`](./pull.md)
|
|
51
|
+
- [`nb portal deploy`](./deploy.md)
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "nb portal"
|
|
3
|
+
description: "nb portal command reference: manage portals, including configuration, creation, development, source sync, deployment, and deletion."
|
|
4
|
+
keywords: "nb portal,NocoBase CLI,Portal,workspace,source storage,deploy"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# nb portal
|
|
8
|
+
|
|
9
|
+
`nb portal` manages portals. A portal can have its own frontend source, entry path, and deployment output; this command group connects the portal record in NocoBase with the local workspace and source storage.
|
|
10
|
+
|
|
11
|
+
A typical flow is to create a local workspace, start development mode, push source changes to source storage, and then build and deploy. If you are taking over an existing portal, pull it locally first.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
nb portal <command>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Subcommands
|
|
20
|
+
|
|
21
|
+
| Command | Description |
|
|
22
|
+
| --- | --- |
|
|
23
|
+
| [`nb portal config`](./config.md) | Update portal source configuration |
|
|
24
|
+
| [`nb portal create`](./create.md) | Create a local AI portal from a template |
|
|
25
|
+
| [`nb portal deploy`](./deploy.md) | Build and deploy a portal |
|
|
26
|
+
| [`nb portal destroy`](./destroy.md) | Destroy a portal record and deployed files |
|
|
27
|
+
| [`nb portal dev`](./dev.md) | Start development mode for the specified portal |
|
|
28
|
+
| [`nb portal info`](./info.md) | Show portal record and local file details |
|
|
29
|
+
| [`nb portal list`](./list.md) | List portal records and development paths |
|
|
30
|
+
| [`nb portal pull`](./pull.md) | Pull portal source into local files |
|
|
31
|
+
| [`nb portal push`](./push.md) | Push local portal source changes to source storage |
|
|
32
|
+
|
|
33
|
+
## Typical Flow
|
|
34
|
+
|
|
35
|
+
Create a portal named `customer`:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
nb portal create customer -e dev --yes
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Start local development mode:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
nb portal dev customer -e dev --yes
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Inspect the local workspace and remote record:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
nb portal info customer -e dev --yes
|
|
51
|
+
nb portal list -e dev --yes
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Push source and deploy:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
nb portal push customer -e dev --yes --message "Update customer portal"
|
|
58
|
+
nb portal deploy customer -e dev --yes
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Take over an existing portal:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
nb portal list -e dev --yes
|
|
65
|
+
nb portal pull customer -e dev --yes
|
|
66
|
+
nb portal dev customer -e dev --yes
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Switch source storage:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
nb portal config customer -e dev --yes --source-storage git --git-repo git@github.com:nocobase/customer-portal.git
|
|
73
|
+
nb portal push customer -e dev --yes --message "Move customer portal source to Git"
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## source storage
|
|
77
|
+
|
|
78
|
+
Portal source storage is stored in the remote portal record options:
|
|
79
|
+
|
|
80
|
+
| Mode | Description |
|
|
81
|
+
| --- | --- |
|
|
82
|
+
| `nocobase` | Default mode. Source code is managed by NocoBase source storage. |
|
|
83
|
+
| `git` | Source code is stored in a Git repository, configured with `--git-repo`, `--git-branch`, and `--git-path`. |
|
|
84
|
+
|
|
85
|
+
For quick creation and development, the default `nocobase` storage is usually enough. Use `git` when the portal source should be reviewed, versioned, or built through an existing team workflow.
|
|
86
|
+
|
|
87
|
+
`nb portal config` updates source storage and Git settings in the remote portal record. The development workspace path is stored separately in the CLI env config as `portals.<portal>.path`, maintained by `create`, `pull --path`, or `config --path`.
|
|
88
|
+
|
|
89
|
+
## Env Types
|
|
90
|
+
|
|
91
|
+
`nb portal` currently supports `local`, `docker`, and `http` envs:
|
|
92
|
+
|
|
93
|
+
| Mode | Description |
|
|
94
|
+
| --- | --- |
|
|
95
|
+
| `local` | The workspace and app storage are on the current machine. `pull` writes source to the development path, and `deploy` builds from that path before syncing deployment output. |
|
|
96
|
+
| `docker` | The workspace is shared with the app through a Docker volume. `pull` writes source to the development path, and `deploy` builds from that path before syncing deployment output. |
|
|
97
|
+
| `http` | Source and deployment output are synced through APIs. `pull` downloads a source archive, and `push` uploads one. |
|
|
98
|
+
|
|
99
|
+
`ssh` envs do not support portal management in the current version.
|
|
100
|
+
|
|
101
|
+
## Development And Deployment Paths
|
|
102
|
+
|
|
103
|
+
Portal development workspaces are created under the current working directory by default:
|
|
104
|
+
|
|
105
|
+
```text
|
|
106
|
+
./<portal>
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Use `--path` with `create`, `pull`, or `config` to choose a different development path. Deployment output is still stored under the target app storage:
|
|
110
|
+
|
|
111
|
+
```text
|
|
112
|
+
<storagePath>/portals/<app>/<portal>
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
The main app access path is usually:
|
|
116
|
+
|
|
117
|
+
```text
|
|
118
|
+
<appPublicPath>/x/<portal>/
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
A sub-app access path is usually:
|
|
122
|
+
|
|
123
|
+
```text
|
|
124
|
+
<appPublicPath>/x/apps/<app>/<portal>/
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## Env Confirmation
|
|
128
|
+
|
|
129
|
+
Most `nb portal` subcommands support `--env` and `--yes`:
|
|
130
|
+
|
|
131
|
+
| Flag | Description |
|
|
132
|
+
| --- | --- |
|
|
133
|
+
| `--env`, `-e` | CLI env name. If omitted, the current env is used. |
|
|
134
|
+
| `--yes`, `-y` | Skip cross-env confirmation when an explicit `--env` targets a different env from the current env. |
|
|
135
|
+
|
|
136
|
+
In scripts or AI agent workflows, pass `--env` and `--yes` explicitly to avoid stopping at an interactive confirmation.
|
|
137
|
+
|
|
138
|
+
## Related Commands
|
|
139
|
+
|
|
140
|
+
- [`nb env`](../env/index.md)
|
|
141
|
+
- [`nb app`](../app/index.md)
|
|
142
|
+
- [`nb source`](../source/index.md)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "nb portal info"
|
|
3
|
+
description: "nb portal info command reference: show portal record and local workspace details."
|
|
4
|
+
keywords: "nb portal info,NocoBase CLI,Portal"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# nb portal info
|
|
8
|
+
|
|
9
|
+
Show details for the specified portal record and local workspace
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
nb portal info <portal> [flags]
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Flag
|
|
18
|
+
|
|
19
|
+
| Flag | Type | Description |
|
|
20
|
+
| --- | --- | --- |
|
|
21
|
+
| `<portal>` | string | Portal name or slug. |
|
|
22
|
+
| `--env`, `-e` | string | CLI env name. If omitted, the current env is used. |
|
|
23
|
+
| `--yes`, `-y` | boolean | Skip cross-env confirmation. |
|
|
24
|
+
| `--json-output`, `--json`, `-j` | boolean | Print portal details as JSON. |
|
|
25
|
+
|
|
26
|
+
## Examples
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
nb portal info customer
|
|
30
|
+
nb portal info customer --env dev --yes
|
|
31
|
+
nb portal info customer --json
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Notes
|
|
35
|
+
|
|
36
|
+
Text output includes name, URL, portal type, development path, deployment path, and enabled status. `--json-output` and its alias `--json` print `name`, `url`, `portalType`, `developmentPath`, `deploymentPath`, `enabled`, `isDefault`, and `sourceStorage`. You can query by `routeName` or `uid`.
|
|
37
|
+
|
|
38
|
+
## Related Commands
|
|
39
|
+
|
|
40
|
+
- [`nb portal`](./index.md)
|
|
41
|
+
- [`nb env`](../env/index.md)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "nb portal list"
|
|
3
|
+
description: "nb portal list command reference: list portal records and development paths."
|
|
4
|
+
keywords: "nb portal list,NocoBase CLI,Portal"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# nb portal list
|
|
8
|
+
|
|
9
|
+
List portal records and development paths
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
nb portal list [flags]
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Flag
|
|
18
|
+
|
|
19
|
+
| Flag | Type | Description |
|
|
20
|
+
| --- | --- | --- |
|
|
21
|
+
| `--env`, `-e` | string | CLI env name. If omitted, the current env is used. |
|
|
22
|
+
| `--yes`, `-y` | boolean | Skip cross-env confirmation. |
|
|
23
|
+
| `--json-output`, `--json`, `-j` | boolean | Print portal records as JSON. |
|
|
24
|
+
|
|
25
|
+
## Examples
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
nb portal list
|
|
29
|
+
nb portal list --env dev --yes
|
|
30
|
+
nb portal list --json
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Notes
|
|
34
|
+
|
|
35
|
+
The list shows name, URL, portal type, source storage, development path, enabled status, and default status. `--json-output` and its alias `--json` print `name`, `url`, `portalType`, `developmentPath`, `deploymentPath`, `enabled`, `isDefault`, and `sourceStorage`.
|
|
36
|
+
|
|
37
|
+
## Related Commands
|
|
38
|
+
|
|
39
|
+
- [`nb portal`](./index.md)
|
|
40
|
+
- [`nb env`](../env/index.md)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "nb portal pull"
|
|
3
|
+
description: "nb portal pull command reference: pull portal source into the local workspace."
|
|
4
|
+
keywords: "nb portal pull,NocoBase CLI,Portal"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# nb portal pull
|
|
8
|
+
|
|
9
|
+
Pull portal source from source storage into the local workspace
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
nb portal pull <portal> [flags]
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Flag
|
|
18
|
+
|
|
19
|
+
| Flag | Type | Description |
|
|
20
|
+
| --- | --- | --- |
|
|
21
|
+
| `<portal>` | string | Portal name or slug. |
|
|
22
|
+
| `--env`, `-e` | string | CLI env name. If omitted, the current env is used. |
|
|
23
|
+
| `--yes`, `-y` | boolean | Skip cross-env confirmation. |
|
|
24
|
+
| `--force` | boolean | Delete the existing local workspace and pull it again. |
|
|
25
|
+
| `--path` | string | Portal workspace directory. Defaults to the saved path, then `./<portal>`. |
|
|
26
|
+
| `--git-repo` | string | Temporarily pull source from this Git repository without updating the portal source configuration. |
|
|
27
|
+
| `--git-branch` | string | Git branch for the temporary `--git-repo` pull. Defaults to `main`. |
|
|
28
|
+
| `--git-path` | string | Directory inside the temporary Git repository. Defaults to the repository root (`.`). |
|
|
29
|
+
| `--install` / `--no-install` | boolean | Run `pnpm install` after pulling source. Enabled by default. |
|
|
30
|
+
|
|
31
|
+
## Examples
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
nb portal pull customer
|
|
35
|
+
nb portal pull customer --env prod --yes
|
|
36
|
+
nb portal pull customer --path ./portals/customer
|
|
37
|
+
nb portal pull customer --git-repo git@github.com:nocobase/customer-portal.git --git-branch main --git-path portals/customer
|
|
38
|
+
nb portal pull customer --force
|
|
39
|
+
nb portal pull customer --no-install
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Notes
|
|
43
|
+
|
|
44
|
+
When the pulled workspace contains `package.json`, `pnpm install` runs by default. Use `--no-install` to skip it.
|
|
45
|
+
|
|
46
|
+
Git source storage clones the configured repo and branch, then copies `--git-path`. To pull from a Git repo one time without changing the remote portal record, pass `--git-repo`; `--git-branch` and `--git-path` can only be used together with `--git-repo`. Use `nb portal config` when you want to persist Git source settings.
|
|
47
|
+
|
|
48
|
+
With default `nocobase` storage, `pull` downloads a source archive through the API and writes it to the development workspace. After a successful pull, the development workspace path is saved to the CLI env config as `portals.<portal>.path`.
|
|
49
|
+
|
|
50
|
+
## Related Commands
|
|
51
|
+
|
|
52
|
+
- [`nb portal`](./index.md)
|
|
53
|
+
- [`nb env`](../env/index.md)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "nb portal push"
|
|
3
|
+
description: "nb portal push command reference: push local portal source changes to source storage."
|
|
4
|
+
keywords: "nb portal push,NocoBase CLI,Portal"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# nb portal push
|
|
8
|
+
|
|
9
|
+
Push local portal source changes to source storage
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
nb portal push <portal> [flags]
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Flag
|
|
18
|
+
|
|
19
|
+
| Flag | Type | Description |
|
|
20
|
+
| --- | --- | --- |
|
|
21
|
+
| `<portal>` | string | Portal name or slug. |
|
|
22
|
+
| `--env`, `-e` | string | CLI env name. If omitted, the current env is used. |
|
|
23
|
+
| `--yes`, `-y` | boolean | Skip cross-env confirmation. |
|
|
24
|
+
| `--message`, `-m` | string | Source update message; for Git-managed source, it is used as the Git commit message. |
|
|
25
|
+
|
|
26
|
+
## Examples
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
nb portal push customer
|
|
30
|
+
nb portal push customer --env prod --yes
|
|
31
|
+
nb portal push customer --message "Update customer portal"
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Notes
|
|
35
|
+
|
|
36
|
+
The command reads source storage and Git settings from the remote portal record, then reads local source from the development path stored in the selected CLI env config. Git source storage clones the configured repo, copies the local workspace into `--git-path`, commits, and pushes. With default `nocobase` storage, `local` and `docker` envs are usually no-op; `http` envs upload a source archive through the API.
|
|
37
|
+
|
|
38
|
+
## Related Commands
|
|
39
|
+
|
|
40
|
+
- [`nb portal`](./index.md)
|
|
41
|
+
- [`nb env`](../env/index.md)
|
|
@@ -52,5 +52,5 @@ features:
|
|
|
52
52
|
link: /file-manager/development
|
|
53
53
|
- title: Knowledge Base Extension
|
|
54
54
|
details: Connect external knowledge bases or custom retrieval services to extend RAG retrieval sources for AI employees.
|
|
55
|
-
link: /ai-employees/knowledge-base/
|
|
55
|
+
link: /ai-employees/dev/knowledge-base/external-knowledge-base
|
|
56
56
|
---
|
|
@@ -146,7 +146,7 @@ For example, to add the `hello` plugin to the `my-nocobase-app` project, the plu
|
|
|
146
146
|
PLUGIN_PACKAGE_PREFIX can be configured as:
|
|
147
147
|
|
|
148
148
|
```bash
|
|
149
|
-
PLUGIN_PACKAGE_PREFIX=@nocobase/plugin-,@nocobase
|
|
149
|
+
PLUGIN_PACKAGE_PREFIX=@nocobase/plugin-,@nocobase/preset-,@my-nocobase-app/plugin-
|
|
150
150
|
```
|
|
151
151
|
|
|
152
152
|
The correspondence between plugin name and package name is as follows:
|
|
@@ -10,7 +10,7 @@ description: |
|
|
|
10
10
|
Duplicate a record, you can either duplicate it into a form and edit it before saving it, or you can duplicate it directly to generate a new record.
|
|
11
11
|
isFree: true
|
|
12
12
|
builtIn: true
|
|
13
|
-
defaultEnabled:
|
|
13
|
+
defaultEnabled: true
|
|
14
14
|
editionLevel: 0
|
|
15
15
|
---
|
|
16
16
|
|