nb portal
nb portal gerencia workspaces de Portal. Um Portal pode ter seu próprio código-fonte frontend, caminho de entrada e saída de deploy; este grupo conecta o registro do Portal no NocoBase ao workspace local e ao source storage.
O fluxo típico é criar um workspace local, iniciar o modo de desenvolvimento, enviar alterações de source para o source storage e depois buildar e fazer deploy. Se você vai assumir um Portal existente, primeiro faça pull para o ambiente local.
Uso
Subcomandos
Fluxo típico
Criar um Portal chamado customer:
Iniciar o modo de desenvolvimento local:
Inspecionar o workspace local e o registro remoto:
Enviar o source e fazer deploy:
Assumir um Portal existente:
Trocar o source storage:
source storage
Ao criar um Portal, escolha onde o código-fonte será gerenciado:
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.

