Loading...
Loading...
Use when users need to prepare a NocoBase environment, install and start an app, bootstrap local nocobase-ctl runtime, manage app environments (add/use/current/list), upgrade a single instance, or diagnose environment-level failures.
npx skill4agent add nocobase/skills nocobase-env-bootstrapnocobase-ctllocaladdusecurrentlist| Input | Required | Default | Validation | Clarification Question |
|---|---|---|---|---|
| no | | one of | "Do you want quick mode, standard mode, or rescue mode?" |
| yes | inferred from user text | one of | "Should I run preflight, install, upgrade, diagnose, or app-manage?" |
| install optional, upgrade optional | install: | one of | "Which installation method should be used?" |
| install or upgrade | | one of | "Which release channel should be used ( |
| upgrade optional | none | non-empty version or image tag | "Which target version should be upgraded to?" |
| upgrade required | | must be | "Have you completed and confirmed database backup?" |
| upgrade required for non-dry-run | | must be | "Please confirm the resolved upgrade method/version/restart plan." |
| upgrade optional | | one of | "How should app be restarted after upgrade?" |
| upgrade git optional | | boolean ( | "If git upgrade fails, should clean-retry be enabled?" |
| upgrade git optional | | boolean ( | "Allow upgrade on dirty git worktree?" |
| install/upgrade | current directory | writable path | "Where should the project be created or operated?" |
| install | | one of | "Use bundled database or connect existing database?" |
| install | | one of | "Use PostgreSQL, MySQL, or MariaDB?" |
| when | none | non-empty host | "Which DB host should be used?" |
| when | by dialect ( | numeric port | "Which DB port should be used?" |
| when | none | non-empty database name | "Which DB database should be used?" |
| when | | one of | "Use existing database or create database first?" |
| when | none | non-empty user | "Which DB user should be used?" |
| when | none | non-empty password | "Please provide DB password." |
| no | | boolean ( | "For local DB, should DB_UNDERSCORED be enabled?" |
| no | | integer 1..65535 | "Which app port should be used?" |
| no | | one of | "Can this host access external internet directly?" |
| no | | non-empty slug | "Which local nocobase-ctl env name should be created?" |
| no | | one of | "Use OAuth mode (default) or token mode for CLI env bootstrap?" |
| no | | valid env variable name | "Which env var stores API token when token mode is used?" |
| only when | | one of | "Which app environment action should run: add, use, current, or list?" |
| conditional | none | required for | "Which environment name should be used?" |
| conditional | none | required for | "Which application URL should be used for env add?" |
| no | | one of | "Should this env action use project or global scope?" |
| conditional | none | required when | "Please provide API token for token-mode remote environment add." |
mode=quicktask=installinstall_method=dockerrelease_channel=latestdb_mode=bundleddb_dialect=postgresdb_database_mode=existingdb_underscored=falseport=13000network_profile=onlinecli_env_name=localcli_auth_mode=oauthcli_token_env=NOCOBASE_API_TOKEN23install/upgradetasktask=installinstall_method=dockerrelease_channellatestalphaalphaalphalatestbetalatestuser_explicitclarifieddefault_fallbackbackup_confirmedtrueinstall_methodautoupgrade_confirmedtruetarget_versioninstall_method=gitallow_dirty=truetask=app-manageapp_env_action=addapp_env_nameapp_base_urldockerdb_mode=bundleddb_mode=existingcreate-nocobase-appgitdb_mode=existingdb_mode=existingdb_database_modeexistingcreatelocalhost127.0.0.1::1host.docker.internaldb_underscoredfalsehttps://www.postgresql.org/download/https://dev.mysql.com/doc/en/installing.htmlhttps://dev.mysql.com/downloads/mysqlhttps://mariadb.org/download/oauth@nocobase/plugin-api-doc@nocobase/plugin-idp-oauthenv authlocalhost127.0.0.1::1*.localhosthost.docker.internalenv-manageapp_tokennode ./scripts/env-manage.mjs add ...env update@nocobase/plugin-api-doc@nocobase/plugin-idp-oauth@nocobase/plugin-api-doc@nocobase/plugin-api-keyscli_token_envtaskrelease_channellatestpowershell -File scripts/preflight.ps1 -InstallMethod <install_method> -DbMode <db_mode> -DbDialect <db_dialect> -DbHost <db_host> -DbPort <db_port> -DbDatabase <db_database> -DbDatabaseMode <db_database_mode> -DbUser <db_user> -DbPassword <db_password>bash scripts/preflight.sh <port> <install_method> <db_mode> <db_dialect> <db_database_mode>DB_HOST/DB_PORT/DB_DATABASE/DB_USER/DB_PASSWORDfailwarnpassquickquickalphastandardrescuepowershell -File scripts/collect-diagnostics.ps1bash scripts/collect-diagnostics.shassets/docker-templates/assets/install-templates/powershell -File scripts/install.ps1 --method <install_method> --target-dir <target_dir> --release-channel <release_channel> --db-mode <db_mode> --db-dialect <db_dialect> --db-host <db_host> --db-port <db_port> --db-database <db_database> --db-database-mode <db_database_mode> --db-user <db_user> --db-password <db_password> --db-underscored <db_underscored> --project-name <project_name>bash scripts/install.sh --method <install_method> --target-dir <target_dir> --release-channel <release_channel> --db-mode <db_mode> --db-dialect <db_dialect> --db-host <db_host> --db-port <db_port> --db-database <db_database> --db-database-mode <db_database_mode> --db-user <db_user> --db-password <db_password> --db-underscored <db_underscored> --project-name <project_name>powershell -File scripts/upgrade.ps1 --method <install_method|auto> --target-dir <target_dir> --backup-confirmed true --confirm-upgrade true --target-version <target_version> --restart-mode <restart_mode> --clean-retry <clean_retry> --allow-dirty <allow_dirty>bash scripts/upgrade.sh --method <install_method|auto> --target-dir <target_dir> --backup-confirmed true --confirm-upgrade true --target-version <target_version> --restart-mode <restart_mode> --clean-retry <clean_retry> --allow-dirty <allow_dirty>task=app-manage@nocobase/plugin-api-doc@nocobase/plugin-idp-oauth@nocobase/plugin-api-doc@nocobase/plugin-api-keysUse $nocobase-plugin-manage enable @nocobase/plugin-api-doc @nocobase/plugin-idp-oauthUse $nocobase-plugin-manage enable @nocobase/plugin-api-doc @nocobase/plugin-api-keysnode ./scripts/run-ctl.mjs -- env update ...powershell -File scripts/cli-postcheck.ps1 -Port <port> -EnvName <cli_env_name> -AuthMode <cli_auth_mode> -TokenEnv <cli_token_env> -Scope project -BaseDir <target_dir>AUTH_MODE=<cli_auth_mode> bash scripts/cli-postcheck.sh <port> <cli_env_name> <cli_token_env> project <target_dir>node ./scripts/env-manage.mjs add --name <cli_env_name> --url http://localhost:<port>/api --auth-mode <cli_auth_mode> --scope project --base-dir <target_dir>node ./scripts/run-ctl.mjs -- env update -e <cli_env_name> -s projectnode ./scripts/env-manage.mjs current --scope project --base-dir <target_dir>release_channel_sourceuser_explicitclarifieddefault_fallback.envcli_env_namebase_urlscopeauth_modeenv_update_statustask=app-manageapp_env_actioncurrent_env_namecurrent_base_urlis_localauth_modetoken_modeinstalladmin@nocobase.comadmin123| Reference | Use When | Notes |
|---|---|---|
| assets/docker-templates.md | docker install | local template selector and release-channel mapping |
| assets/install-templates.md | create-app/git install | local command/env template mapping and channel defaults |
| references/preflight-checklist.md | before install/upgrade | dependency, path, network, and port checks |
| references/install-runbook.md | install and first startup | docker/create-app/git execution guide |
| references/app-env-manage.md | | add/use/current/list contract with oauth/token auth-mode policy |
| references/upgrade-runbook.md | single-instance upgrade | pre-check, execution, post-check, rollback guidance |
| references/troubleshooting.md | diagnose and recovery | high-frequency issue decision table |
--confirm-upgrade true{{task}}{{target}}{{install_method}}confirmAPP_KEYAPP_KEYalphacreate-nocobase-appgitnode ./scripts/env-manage.mjs add ...task=app-manageadd/use/current/listnode ./scripts/env-manage.mjs ...oauthenv updatenode ./scripts/run-ctl.mjs -- env update ...swagger:get@nocobase/plugin-idp-oauth@nocobase/plugin-api-keys--confirm-upgrade trueAPP_KEYidp-oauthEnvironment mismatchEACCESdb_mode=existingtask=app-manageenv updatetask=app-managerelease_channel_source=clarifiedrelease_channel_source=user_explicitrelease_channel_sourceuser_explicitclarifieddefault_fallbackfail/warn/passcli_env_namebase_urlscopeenv_update_statusinstallrecommended next action