/nocobase-dev:nocobase-env-manage [task: install|app-manage|upgrade|start|stop|restart|logs|down|self-check|self-update|skills-check|skills-update]from nocobase-dev
NocoBase 2 only; never use in a NocoBase 3 project. Use when users need NocoBase bootstrap, runtime lifecycle, CLI maintenance, and skills maintenance with nb CLI only.
Ships in nocobase-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use nb CLI only to complete NocoBase bootstrap, lifecycle, and maintenance actions.
nb init.nb env.nb app.nb CLI through nb self.nb skills.nb commands.*.mjs, *.ps1, *.sh).task=install, if the user provides an official NocoBase install or quick-start URL, read that URL first and follow the official guide flow. Ignore local install command tables when they conflict with the official guide.task=install, use nb init --ui as the guided install entrypoint unless the current official guide says otherwise.nb init --ui is not a completion condition. Keep following CLI output until setup reaches a finished state or the CLI exits with an actionable failure.nb init --ui, use a CLI timeout of 30 minutes and do not interrupt the command before it exits.nb init ... --resume ..., execute that exact direct nb command unless it is destructive or conflicts with the user's latest instruction.nb app <command> for runtime lifecycle operations.nb self <command> only for CLI self-check/update.nb skills <command> only for installed skills check/update.nb commands.nb --help when user asks for diagnostics/help output or command discovery is needed.installapp-manageupgradestopstartrestartlogsdownself-checkself-updateskills-checkskills-update| Input | Required | Default | Notes |
|---|---|---|---|
task | yes | inferred | one of install/app-manage/upgrade/start/stop/restart/logs/down/self-check/self-update/skills-check/skills-update |
app_env_action | for task=app-manage | list | one of add/use/current/list/remove; current is derived from list output |
app_env_name | conditional | none | required for add/use/remove |
app_base_url | conditional | none | required for add; accepts URL with or without /api (auto-normalized) |
cli_auth_mode | for env add | oauth | one of oauth/token |
app_token | conditional | none | required when cli_auth_mode=token |
runtime_env_name | optional for upgrade/start/stop/restart/logs/down | current env | explicit runtime env name |
nb command directly.nb init --ui as the guided install entrypointtask=install, treat nb init --ui as a long-running interactive command:
nb init --ui prints a local URL and browser open fails in sandbox, first ask to elevate/open outside sandbox; if that is declined, surface the URL so the user can open it manually.nb init ... --resume ... command next. Do not rerun a fresh setup unless the CLI asks for it or the user explicitly requests it.list/current), use fast path:
nb env list*nb env --help / nb env list --help are available when command discovery is needed.nb env info [name] and inspect app/database/API status.env add, normalize API base URL before execution:
/api, keep as-is/apiself-check -> nb self check --jsonself-update -> nb self update --yesskills-check -> nb skills check --jsonskills-update -> nb skills update --yesnb self check --json and nb skills check --json when reporting results.self-update or skills-update, run the matching check command as readback unless the CLI says the shell/session must be restarted first.When the user says generic status/check/update/upgrade wording without an explicit target, do not infer a command.
Ambiguous examples include:
检查状态检查一下健康检查诊断一下检查更新升级更新修复Ask which target they mean before executing:
nb env list, nb env info, or nb app ...nb self check --json or nb self update --yesnb skills check --json or nb skills update --yesClarification template:
你想检查/更新哪一类:NocoBase app/runtime/env、nb CLI,还是已安装 skills?Treat these as clear targets:
nb self check --jsonself-check or skills-update检查 nb CLI, 更新已安装 skills, 升级 NocoBase app, 检查当前环境For upgrade/start/stop/restart/logs/down:
runtime_env_name is provided, pass --env <env>.--env and follow CLI response.nb commands from the current command map or from CLI-provided continuation hints.nb env list, nb env info, and app/database status when relevant.nb self / nb skills commands exactly as mapped.nb init --ui
nb env list
nb env info
Install is done only when the CLI reports readiness/completion, such as NocoBase is ready ... and Workspace init finished, or equivalent success output from the current official guide.
nb env list
nb env info [name]
For current, derive from the row marked with leading * in nb env list output. Do not call nb env current.
When CLI returns:
No envs configured.Run 'nb env add <name> --api-base-url <url>' to add one.surface this message directly and ask whether to create a new app (nb init --ui) or add env.
nb env add <name> --api-base-url <url> --auth-type oauth
<url> uses normalized value (auto-append /api when missing).
nb env add <name> --api-base-url <url> --auth-type token --access-token <token>
<url> uses normalized value (auto-append /api when missing).
nb env use <name>
nb env remove <name>
Write actions (add/use/remove) must always be followed by:
nb env list
Use nb env remove <name> -f only after explicit user confirmation.
nb env auth [name]
nb app upgrade [--env <env>]
Optional:
nb app upgrade [--env <env>] --skip-code-update
nb app stop [--env <env>]
nb app start [--env <env>]
Optional:
nb app start --env <env> --quickstart
nb app start --env <env> --port <port>
nb app start --env <env> --daemon
nb app start --env <env> --no-daemon
nb app restart [--env <env>]
nb app logs [--env <env>] [--tail <lines>] [--no-follow]
nb app down [--env <env>]
nb self check --json
Use this for nb CLI health/version/update checks. No env is required.
nb self update --yes
nb self check --json
Run the update command first. Run the check command afterward as readback unless the CLI says a new shell/session is required.
nb skills check --json
Use this for installed NocoBase skills health/version/update checks. No env is required.
nb skills update --yes
nb skills check --json
Run the update command first. Run the check command afterward as readback unless the CLI says a new shell/session is required.
upgrade on ambiguous env.upgrade when user intent is not explicit.nb app down as destructive because it removes runtime containers and saved local app files. Always ask explicit confirmation before running it.--all or --yes to nb app down unless the user explicitly requests those flags.nb self update --yes and nb skills update --yes as allowed update shortcuts only when the user clearly requests CLI or skills update.npm, pnpm, yarn) for nb self update --yes or nb skills update --yes.Confirmation template:
Confirm execution: nb app upgrade --env <env>. Reply confirm to continue.Require explicit user confirmation before:
nb app upgrade when the target env is ambiguous or the user did not clearly request an upgrade.nb app down in all cases.nb env remove <name> -f.--all, --yes, or force-style deletion flags, except exact nb self update --yes / nb skills update --yes commands when the user clearly requested that update.Final response must include:
env add)| Reference | Use When |
|---|---|
| Usage Guide | Mapping user intent to current nb commands. |
| Install Runbook | Executing install/bootstrap flows, especially official URL and resume handling. |
| Upgrade Runbook | Upgrading app runtimes with nb app upgrade. |
| Preflight Checklist | Optional diagnostics when explicitly requested. |
| Troubleshooting | Recovering from CLI errors and version mismatch symptoms. |
nb init --ui was not treated as complete when only a setup URL appeared.nb init ... --resume ... continuation was followed or surfaced with a blocker.nb app ....nb env syntax.nb self check --json or nb self update --yes.nb skills check --json or nb skills update --yes.nb env list and, when relevant, nb env info.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub agents-store/claude-plugins --plugin nocobase-dev25 skills in this plugin
/api-referenceReference-only skill (loaded on demand) that maps the NocoBase v2 REST API surface — base URL, authentication, action-style endpoint convention, and pointers into the bundled OpenAPI 3.0.3 specification. Loaded by the model when it needs an exact endpoint path or schema; not auto-triggered./authUse when the user wants to authenticate to a NocoBase v2 instance, asks "how do I get a token for NocoBase", "how do I log in via API or CLI", "how do I connect an agent or MCP client", "why is my request returning 401 from NocoBase", or needs working curl/Node samples that send the bearer token. Covers the CLI path (`nb env add` / `nb env auth`), the upstream login flow (NB_USER + NB_PASSWORD → auth:signIn → token), the long-lived API Key path, OAuth through the IdP: OAuth plugin, and the separate Auth: OIDC SSO plugin./cli-recipesUse when the user asks how to install or run NocoBase from the terminal — "install nb CLI", "how do I bootstrap NocoBase", "run nb commands", "start/stop/upgrade NocoBase", "add an environment", "backup NocoBase", "enable a plugin". Provides the install one-liner (`@nocobase/cli`, stable channel), the env, lifecycle, plugin and backup recipes in their `nb` 2.2 canonical forms, and a routing table that hands deeper tasks to the upstream `nocobase-env-manage`, `nocobase-plugin-manage`, and `nocobase-publish-manage` skills./examplesUse when the user asks for an end-to-end example, walkthrough, or sample of doing something in NocoBase v2 — "show me how to", "walk me through", "give me a complete example", "sample script for NocoBase". Indexes worked scenarios that mix REST API and `nb` CLI calls./nocobase-acl-manageNocoBase 2 only; never use in a NocoBase 3 project. Task-driven ACL governance through nb CLI for role lifecycle, global role mode, permission policy, Portal entry access, user-role membership, and risk assessment. Use when users describe business permission outcomes instead of raw command arguments, including which roles may enter a Portal./nocobase-ai-builderNocoBase 2 only; never use in a NocoBase 3 project. Design, build, and verify source-code applications in NocoBase AI Portals based on @nocobase/portal-template-default. This skill is mandatory whenever the selected Portal has portalType "ai". Use it for complete systems, pages, navigation, CRUD, dashboards, forms, dialogs, drawers, URL-addressable subpages, authentication UI, frontend access control, localization, themes, NocoBase API integration, responsive design, test-driven verification, and safe upgrades of existing Portal template, SDK, and Registry source.