nb portal
nb portal verwaltet Portal-Workspaces. Ein Portal kann eigenen Frontend-Quellcode, einen eigenen Einstiegspfad und eigene Deployment-Ausgaben haben; diese Befehlsgruppe verbindet den Portal-Datensatz in NocoBase mit lokalem Workspace und source storage.
Ein typischer Ablauf: lokalen Workspace erstellen, Entwicklungsmodus starten, Quellcode in source storage pushen und anschließend builden und deployen. Wenn du ein bestehendes Portal übernimmst, ziehe es zuerst lokal mit pull.
Verwendung
Unterbefehle
Typischer Ablauf
Ein Portal namens customer erstellen:
Den lokalen Entwicklungsmodus starten:
Lokalen Workspace und Remote-Datensatz prüfen:
Quellcode pushen und deployen:
Ein bestehendes Portal übernehmen:
Source storage wechseln:
source storage
Beim Erstellen eines Portals wählen Sie, wo der Quellcode verwaltet wird:
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.

