nb portal config

Update the portal development path, source storage, and Git source configuration

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.
--pathstringPortal development workspace directory.
--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 --path ./portals/customer
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. --path updates the selected CLI env config. --source-storage and --git-* update the remote portal record options.