Promote a Questionnaire
After reverse-syncing local changes to Strapi (which creates a draft), you need to promote the draft to make it the published version.
Command
Section titled “Command”yarn reverse-sync:questionnaire:promote -q <slug>What happens
Section titled “What happens”- The script finds the draft version of the questionnaire in Strapi
- It publishes the draft, replacing the previous published version
- The questionnaire is now available via the Strapi API’s published endpoint
When to use
Section titled “When to use”- After a successful reverse-sync that you have verified in preview
- When you want to make a draft visible to the forward sync process
Verification
Section titled “Verification”After promoting:
- Open the questionnaire in Strapi — it should show as published with your changes
- Run a forward sync to verify the round-trip:
Terminal window yarn sync:questionnaire -q <slug> - Check that the generated file matches your local version (no unexpected diffs)
See also
Section titled “See also”- Sync Commands Reference – full CLI reference for the promote command
- Reverse-Sync a Questionnaire – the step that precedes promotion
- Preview a Questionnaire – verify the draft before promoting