nb portal deploy

Build và triển khai workspace Portal đã chỉ định

Cách dùng

nb portal deploy <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.

Ví dụ

nb portal deploy customer
nb portal deploy customer --env dev --yes

Ghi chú

The command refreshes .env and .env.local, runs pnpm build, and expects dist/index.html. For local and docker envs, it syncs the Portal record and uses the local or volume-mounted dist; for http envs, it uploads the packed dist through the API.

Lệnh liên quan