docs/docs/en/ai-builder/version-control.md
:::tip Prerequisites
:::
The Version Control Skill (nocobase-revision) creates a restorable application version after AI Builder completes a meaningful milestone. For example, after building a page, creating a group of collections, or configuring a workflow, AI can run nb revision create to save the current state.
It does not create a version for every field change. By default, it saves only after a clear milestone is completed and verified, so the version list stays readable and rollback points are easier to choose.
For version lists, manual version creation, restore operations, and retention settings, see the Version Control plugin guide.
Can do:
Cannot do:
Save the current build as a version: completed customer management page, filter area, and edit form configuration
The Skill turns the description into a concise version note and creates a version.
Command mode:
nb revision create "Completed customer management page, filter area, and edit form configuration"
The supplier collections and purchase approval workflow have been verified. Create a version for me.
This fits work that spans multiple capabilities. For example, create collections with Data Modeling, configure an approval process with Workflow Management, verify the result, then save a version.
In the dev environment, save a version: completed ticket management page and SLA field configuration
If the specified environment is not the current CLI environment, the Skill confirms the target environment first to avoid saving the version to the wrong application.
Command mode:
nb revision create --env dev --yes "Completed ticket management page and SLA field configuration"
A version description should say what has been completed, not just use a vague label.
Recommended:
Completed customer ledger, detail page, and approval submission flowCompleted supplier collections, purchase request form, and approval workflow完成客户台账、详情页与审批提交流程配置Not recommended:
snapshotbackuptestversion 2Also, do not include tokens, URLs, passwords, or other sensitive information. Descriptions appear in the version list and should stay clear, readable, and auditable.
When should I create a version?
Create one after a milestone that can be reviewed on its own. For example, a page opens and edits correctly, collection relationships have been verified, or a workflow has been saved and its node chain checked.
Why not create a version after every AI adjustment?
Too many tiny versions quickly make the list hard to read. A version should usually represent a point you can restore to and continue working from, not a single field rename or button position change.
Should the result be verified before creating a version?
Yes. The Version Control Skill is for saving completed and verified work. If a page still errors or a workflow is not confirmed, ask AI to fix and verify it before creating a version.
Where do I restore a version after it is created?
Restore it in the version list of the Version Control plugin. Restoring overwrites the current application configuration and the data included in that version. Read the Version Control plugin guide before operating.