nb portal
nb portal mengelola workspace Portal. Portal dapat memiliki source frontend, jalur masuk, dan output deployment sendiri; grup perintah ini menghubungkan record Portal di NocoBase dengan workspace lokal dan source storage.
Alur umum adalah membuat workspace lokal, menjalankan mode pengembangan, mendorong perubahan source ke source storage, lalu build dan deploy. Jika mengambil alih Portal yang sudah ada, jalankan pull terlebih dahulu.
Penggunaan
Subperintah
Alur Umum
Membuat Portal bernama customer:
Menjalankan mode pengembangan lokal:
Memeriksa workspace lokal dan record remote:
Push source dan deploy:
Mengambil alih Portal yang sudah ada:
Mengganti source storage:
source storage
Saat membuat Portal, pilih tempat source code dikelola:
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.

