nb portal config

Update the local portal source configuration and sync it to the remote portal record when possible

Usage

nb portal config <portal> [flags]

Flag

FlagTypeDescription
<portal>stringPortal name or slug
--env, -estringCLI env name. If omitted, the current env is used.
--yes, -ybooleanSkip cross-env confirmation.
--source-storagenocobase | gitWhere portal source code is managed.
--git-repostringGit repository URL used with --source-storage=git.
--git-branchstringGit branch used with --source-storage=git.
--git-pathstringDirectory inside the Git repository; defaults to the repository root (.).

Examples

nb portal config customer --source-storage nocobase
nb portal config customer --source-storage git --git-repo git@github.com:nocobase/customer-portal.git
nb portal config customer --git-branch main --git-path portals/customer

Notes

Pass at least one configuration flag. The local workspace must already exist; use nb portal create or nb portal pull first. If the remote portal record exists, the configuration is synced to it; otherwise only portal.config.json is updated locally.