Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Reapply
Leonard Ramminger edited this page Aug 22, 2026
·
2 revisions
Safely synchronize existing projects with a new template version.
- Target directory was previously rendered with Tempify
.tempify-lock.jsonis in the target (or is managed)- Same template ID as in the lock file
tempify basic_cpp my-app --diff
tempify basic_cpp my-app --diff --json- No file changes
- No hooks
- Shows changes to managed files, origin metadata, update kind
# Report only
tempify reapply basic_cpp my-app --report --json
# Apply
tempify reapply basic_cpp my-app --jsonAlias:
tempify basic_cpp my-app --reapply- Applies safe actions:
create,update,deleteon managed files - Keeps local edits with action
keep - Blocks on
conflictorreview - Does not run hooks (first slice)
| Transition | Typical |
|---|---|
| Patch / prerelease | Allowed |
| Major | Blocked → review |
| Pre-1.0 minor | Blocked → review |
| Downgrade | Blocked |
| Different template (ID mismatch) | Blocked |
{
"status": "ok",
"mode": "reapply",
"template": { "id": "basic_cpp", "version": "0.1.0" },
"origin": {
"detected": true,
"matches_requested_template": true,
"template_id": "basic_cpp",
"template_version": "0.1.0-rc.1"
},
"update": {
"kind": "upgrade",
"from_version": "0.1.0-rc.1",
"to_version": "0.1.0",
"policy": {
"action": "allow",
"reason": "forward_version_change"
}
}
}{
"status": "error",
"code": "REAPPLY_BLOCKED",
"blocked": {
"origin_mismatch": {
"origin_template": { "id": "layered_cpp_product" },
"requested_template": { "id": "basic_cpp" }
}
}
}Versioning for safe reapply: Versioning & Reapply
Tempify · Repository · Issues · Releases
Documentation lives in this wiki. For a build quickstart, see the README in the repository.
Prebyte (template engine) is a separate project bundled by Tempify.
- CLI Reference
- Questions & Answers
- Configuration
- Render Options
- Hooks (Users)
- Reapply & Diff
- Shared Template Store
- Prebyte Passthrough
- Shell Completion