nb portal
nb portal は Portal ワークスペースを管理します。Portal は独自のフロントエンドソース、入口パス、デプロイ結果を持つことができ、このコマンドグループは NocoBase の Portal レコードとローカルワークスペース、source storage をつなぎます。
一般的な流れは、ローカルワークスペースを作成し、開発モードを起動し、ソース変更を source storage に push してから build と deploy を行うことです。既存 Portal を引き継ぐ場合は、まず pull します。
使い方
サブコマンド
典型的な流れ
customer という Portal を作成する:
ローカル開発モードを起動する:
ローカルワークスペースとリモートレコードを確認する:
ソースを push してデプロイする:
既存 Portal を引き継ぐ:
source storage を切り替える:
source storage
Portal 作成時に、ソースコードの管理場所を選択できます:
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.

