quartz/docs/getting-started/upgrading.md
2026-03-11 19:43:12 +01:00

1.9 KiB

title aliases
Upgrading Quartz
upgrading

Note

This is specifically a guide for upgrading your Quartz to a more recent update. If you are coming from Quartz 4 or Quartz 3, check out the getting-started/migrating for more info.

To fetch the latest Quartz updates, simply run

npx quartz upgrade

As Quartz uses git under the hood for versioning, upgrading effectively 'pulls' in the updates from the official Quartz GitHub repository. If you have local changes that might conflict with the updates, you may need to resolve these manually yourself (or, pull manually using git pull origin upstream).

[!hint] Quartz will try to cache your content before upgrading to try and prevent merge conflicts. If you get a conflict mid-merge, you can stop the merge and then run npx quartz restore to restore your content from the cache.

If you have the GitHub desktop app, this will automatically open to help you resolve the conflicts. Otherwise, you will need to resolve this in a text editor like VSCode. For more help on resolving conflicts manually, check out the GitHub guide on resolving merge conflicts.

To update your installed plugins separately, use:

npx quartz update

See the cli/update and cli/upgrade for more details on available flags.

Cleaning Up Unused Plugins

If you've removed plugins from your configuration during an upgrade, you can clean up the leftover files:

npx quartz plugin prune --dry-run  # preview what would be removed
npx quartz plugin prune            # remove orphaned plugins

See the cli/plugin#prune for more details.