nb portal
nb portal gestiona workspaces de Portal. Un Portal puede tener su propio código fuente frontend, ruta de entrada y resultado de despliegue; este grupo conecta el registro de Portal en NocoBase con el workspace local y el source storage.
El flujo habitual es crear un workspace local, iniciar el modo de desarrollo, enviar cambios al source storage y luego compilar y desplegar. Si vas a trabajar con un Portal existente, primero ejecútalo con pull hacia local.
Uso
Subcomandos
Flujo típico
Crear un Portal llamado customer:
Iniciar el modo de desarrollo local:
Inspeccionar el workspace local y el registro remoto:
Enviar el código fuente y desplegar:
Trabajar con un Portal existente:
Cambiar el source storage:
source storage
Al crear un Portal, elige dónde se gestiona el código fuente:
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.

