nb env update

Làm mới OpenAPI Schema từ ứng dụng NocoBase và cập nhật cache lệnh runtime cục bộ. Cache được lưu tại .nocobase/versions/<hash>/commands.json.

Cách dùng

nb env update [name] [flags]

Tham số

Tham sốKiểuMô tả
[name]stringTên môi trường, bỏ qua thì dùng env hiện tại
--verbosebooleanHiển thị tiến trình chi tiết
--api-base-urlstringGhi đè địa chỉ API NocoBase và lưu lâu dài vào env đích
--rolestringGhi đè role, gửi đi qua header X-Role
--token, -tstringGhi đè API key và lưu lâu dài vào env đích

Ví dụ

nb env update
nb env update prod
nb env update prod --api-base-url http://localhost:13000/api
nb env update prod --token <token>

Lệnh liên quan