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.
nb portal config updates source storage and Git settings in the remote portal record. The development workspace path is stored separately in the CLI env config as portals.<portal>.path, maintained by create, pull --path, or config --path.
Env Types
nb portal currently supports local, docker, and http envs:
ssh envs do not support Portal management in the current version.
Development And Deployment Paths
Portal development workspaces are created under the current working directory by default:
Use --path with create, pull, or config to choose a different development path. Deployment output is still stored under the target app 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.

