nb portal config

Обновляет конфигурацию исходного кода локального рабочего пространства Portal и по возможности синхронизирует её с удалённой записью Portal

Использование

nb portal config <portal> [flags]

Параметр

ПараметрТипОписание
<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 (.).

Примеры

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

Примечания

Pass at least one configuration flag. --path updates the selected CLI env config. --source-storage and --git-* update the remote portal record options.

Связанные команды