nb portal config

Atualiza a configuração de source do workspace Portal local e sincroniza com o registro remoto quando possível

Uso

nb portal config <portal> [flags]

Parâmetro

ParâmetroTipoDescrição
<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 (.).

Exemplos

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

Notas

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.

Comandos relacionados