nb portal
nb portal управляет рабочими пространствами Portal. Portal может иметь собственный frontend-код, путь входа и результат развёртывания; эта группа команд связывает запись Portal в NocoBase с локальным рабочим пространством и source storage.
Типовой процесс: создать локальное рабочее пространство, запустить режим разработки, отправить изменения исходного кода в source storage, затем выполнить build и deploy. Если вы берёте существующий Portal, сначала выполните pull.
Использование
Подкоманды
Типовой процесс
Создать Portal с именем customer:
Запустить локальный режим разработки:
Проверить локальное рабочее пространство и удалённую запись:
Отправить исходный код и развернуть:
Взять существующий Portal в ра боту:
Переключить source storage:
source storage
При создании Portal выберите, где будет управляться исходный код:
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.
Source configuration is written to portal.config.json in the local workspace. create, pull, and config maintain this file; push and deploy read it to sync source or deployment output.
Env Types
nb portal currently supports local, docker, and http envs:
ssh envs do not support Portal management in the current version.
Local Workspace Path
Portals are stored under the selected env storage:
The main app access path is usually:
A sub-app access path is usually:
Env Confirmation
Most nb portal subcommands support --env and --yes:
In scripts or AI agent workflows, pass --env and --yes explicitly to avoid stopping at an interactive confirmation.

