Loading...
Loading...
Use when users need to publish NocoBase applications across environments with strict precheck gates, hard method confirmation, backup artifact selection, and migration template presets (`schema_only_all` / `user_overwrite_only` / `system_overwrite_only` / `full_overwrite`).
npx skill4agent add nocobase/skills nocobase-publish-managelocal_cliremote_apiremote_ssh_clibackup_restoremigrationplugin-migration-managermigration_managerbackup_managerpublishrollback--confirm confirm--publish-method-confirmbackup_restorebackups:*backupSettings:*migrationRules:*migrationFiles:*migrationLogs:*nocobase-env-bootstrapbackup_restoreUse existing backup packagemigrationCreate new release packageschema_only_allschema-onlyschema-onlyuser_overwrite_onlyoverwriteschema-onlysystem_overwrite_onlyschema-onlyoverwrite-firstfull_overwriteoverwriteoverwrite-first.sh.ps1| Input | Required | Default | Validation | Clarification Question |
|---|---|---|---|---|
| yes | none | one of | "Run precheck, publish, verify, or rollback?" |
| yes | none | one of | "Use backup_restore or migration?" |
| conditional | empty | required when | "Please confirm release method with --publish-method-confirm <same-as-method>." |
| no | | one of | "Should I force a channel?" |
| conditional | none | required when migration publish executes; one of | "For migration, choose one preset: schema_only_all, user_overwrite_only, system_overwrite_only, or full_overwrite." |
| no | | valid env name when provided | "Which source env should be used?" |
| no | | valid env name when provided | "Which target env should be used?" |
| no | empty | valid HTTP(S) URL | "Do you want to force a source URL?" |
| no | empty | valid HTTP(S) URL | "Do you want to force a target URL?" |
| no | empty | env var name | "Which env var stores source token?" |
| no | | env var name for remote API | "Which env var stores target token?" |
| no | | boolean | "Should auto-backup be enabled?" |
| conditional | none | required for | "Which backup artifact should be used?" |
| no | | boolean | "Should I execute now or only generate a plan?" |
| publish/rollback apply: yes | none | must be | "Please type confirm to continue high-risk execution." |
| no | current directory | existing path | "Which base directory should commands run in?" |
| no | | one of | "Use project scope or global scope?" |
| no | | one of | "Prefer global ctl or local ctl?" |
| remote_ssh_cli: yes | empty | non-empty host | "What SSH host should be used?" |
| remote_ssh_cli: yes | empty | non-empty path | "What app path on SSH host should be used?" |
node ./scripts/publish-manage.mjs ...node ./scripts/run-ctl.mjs ...add/use/current/list$nocobase-env-bootstrap task=app-manage ...scripts/migration-template-rules.mjs23publishrollbackmethodchannelsource_url/source_envtarget_url/target_envremote_apimigration_templatemethod=migrationaction_required.type=choose_migration_templatepublish_method_confirmmethodaction=publishbackup_artifactaction=publish + method=backup_restoreconfirmaction_requiredaction_requiredrestoremigrationnode ./scripts/run-ctl.mjs -- env list -s <scope>$nocobase-env-bootstrap task=app-manage ...$nocobase-env-bootstrap task=app-manage ...autopm listplugin-migration-managermigration_managerbackup_manager$nocobase-plugin-manage enable ...publish + apply=true--publish-method-confirm <same-as--method>publish + method=backup_restore + apply=true--backup-artifactpublish + method=migration + apply=true--migration-templateschema_only_alluser_overwrite_onlysystem_overwrite_onlyfull_overwriteexec_contextbackup_restorebackup_downloadbackup_createbackup_auto=truebackup_uploadmigrationmigration_rules_createmigration_generateruleIdRef=latest_migration_rulemigration_files_downloadbackup_createbackup_auto=truemigration_files_checkmigration_upapply=trueverificationpassedfailedpending_verification| Reference | Use When | Notes |
|---|---|---|
| references/v1-runtime-contract.md | implementing action/channel/method matrix | canonical behavior contract |
| references/intent-routing.md | mapping user keywords to intent/method flow | deterministic anti-inference routing |
| references/test-playbook.md | verifying skill behavior | prompt-ready acceptance set |
| publish-resource-adapter.mjs | any release mutation/readback | unified resource templates for backup/migration operations |
| run-ctl.mjs | any ctl command execution | local/global nocobase-ctl resolver |
| publish-manage.mjs | publish orchestration | precheck/publish/verify/rollback entrypoint |
publishrollbackmigrationuser_overwrite_onlysystem_overwrite_onlyfull_overwrite--confirm confirm--publish-method-confirm <same-as--method>--backup-artifact <name>backup_restore{{action}}{{method}}{{target}}confirmpublishverifymigration full_overwritechecksblockerswarningsconfirmpublish_method_confirmbackup_autoexec_contextsourcetargetverificationapply=falsebackup_restore--confirm confirm--publish-method-confirmbackup_restore--backup-artifactrequestchanneltarget_resolutionpre_statechecksblockerswarningsplugin_checksbackup_candidatesaction_requiredbackup_artifactcommands_or_actionsexecutionverificationassumptionsfallback_hintsnext_stepstask=app-manage