Recover from mistakes#
If you made a mistake answering a prompt, you have two options: edit the answers file and regenerate, or delete the output and start over.
Option 1: Edit the answers file and regenerate#
Cookieplone writes .cookieplone.json into the generated project directory after each run.
Open the file in a text editor:
nano /path/to/generated-project/.cookieplone.jsonCorrect the wrong values, then save.
Re-run Cookieplone with the corrected file and the overwrite flag:
Cookieplone -f --answers-file /path/to/generated-project/.cookieplone.jsonCookieplone regenerates the project with the corrected values.
Review the changes with git before committing:
cd /path/to/generated-project git diff
Option 2: Delete and regenerate#
If the project directory has no committed work worth keeping, delete it and start fresh:
rm -rf /path/to/generated-project
cookieplone