nb portal config

Cập nhật cấu hình mã nguồn của workspace Portal cục bộ và đồng bộ với bản ghi Portal từ xa khi có thể

Cách dùng

nb portal config <portal> [flags]

Tham số

Tham sốKiểuMô tả
<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 (.).

Ví dụ

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

Ghi chú

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.

Lệnh liên quan