Updating a project

A guide on updating a project that uses this template with the latest changes from the template.

One of the biggest strengths of Copier is that it allows you to easily update your project with any changes that have been made to the template since you first copied it. There are two ways to update (or sync) an existing project with the latest changes from the template: update and recopy.

In both cases, the commands are very similar and also use many of the same options as the copy command. If you want to use the same answers as given when you first copied the template, you can use the --defaults option. Then it will only prompt you for the questions that have changed since the last time you copied the template.

Terminal
uvx copier update --defaults
# Or
uvx copier recopy --defaults

As with the copy command, the project needs to be tracked by Git and must be in a clean state (no changes) for the update and recopy commands to work.