docs/docs/en/api/cli/plugin/disable.md
Disable one or more plugins in the selected env.
nb plugin disable <packages...> [flags]
| Parameter | Type | Description |
|---|---|---|
<packages...> | string[] | Plugin package names, required; supports multiple values |
--env, -e | string | CLI env name; uses the current env if omitted |
--yes, -y | boolean | When an explicitly passed --env targets a different env than the current env, skip the interactive confirmation prompt |
nb plugin disable @nocobase/plugin-sample
nb plugin disable @nocobase/plugin-a @nocobase/plugin-b
nb plugin disable -e local @nocobase/plugin-sample
nb plugin disable -e local --yes @nocobase/plugin-sample
If you explicitly pass --env and it differs from the current env, the CLI asks for confirmation first. In non-interactive terminals or AI agent sessions, add --yes yourself or run nb env use <name> first and try again.