nb portal create

テンプレートからローカル Portal ワークスペースを作成し、Portal レコードを作成または更新します

使い方

nb portal create <portal> [flags]

パラメーター

パラメーター説明
<portal>stringPortal name or slug.
--templatestringTemplate package, local path, or file:// URL. Default: @nocobase/portal-template-default.
--env, -estringCLI env name. If omitted, the current env is used.
--yes, -ybooleanSkip cross-env confirmation.
--titlestringPortal display title.
--pathstringPortal workspace directory. Default: ./<portal>.
--forcebooleanDelete the existing workspace and recreate it.

nb portal create customer
nb portal create customer --path ./portals/customer
nb portal create customer --template @nocobase/portal-template-default
nb portal create customer --env dev --yes

補足

The command writes .env and .env.local, stores the workspace path in the selected CLI env config, and runs pnpm install when the template contains package.json. Portal names must use lowercase letters, numbers, underscores, or hyphens, and start with a lowercase letter or number.

関連コマンド