nb portal
nb portal quản lý workspace Portal. Một Portal có thể có mã nguồn frontend, đường dẫn truy cập và kết quả triển khai riêng; nhóm lệnh này kết nối bản ghi Portal trong NocoBase với workspace cục bộ và source storage.
Quy trình thường là tạo workspace cục bộ, chạy chế độ phát triển, đẩy thay đổi mã nguồn lên source storage, sau đó build và deploy. Nếu tiếp nhận một Portal đã có, hãy pull về cục bộ trước.
Cách dùng
Lệnh con
Quy trình điển hình
Tạo một Portal tên customer:
Khởi động chế độ phát triển cục bộ:
Kiểm tra workspace cục bộ và bản ghi từ xa:
Đẩy mã nguồn và triển khai:
Tiếp nhận một Portal đã có:
Chuyển source storage:
source storage
Khi tạo Portal, hãy chọn nơi quản lý mã nguồn:
For quick creation and development, the default nocobase storage is usually enough. Use git when the Portal source should be reviewed, versioned, or built through an existing team workflow.
Source configuration is written to portal.config.json in the local workspace. create, pull, and config maintain this file; push and deploy read it to sync source or deployment output.
Env Types
nb portal currently supports local, docker, and http envs:
ssh envs do not support Portal management in the current version.
Local Workspace Path
Portals are stored under the selected env storage:
The main app access path is usually:
A sub-app access path is usually:
Env Confirmation
Most nb portal subcommands support --env and --yes:
In scripts or AI agent workflows, pass --env and --yes explicitly to avoid stopping at an interactive confirmation.

