Something went wrong. Try again.
A custom fork of Quartz to generate my Digital Garden site
Something went wrong. Try again.
title: quartz restore #
The restore command is a safety mechanism that allows you to recover your content folder from a local cache. This command only affects your Markdown files and does not restore plugins or configuration.
To restore plugins to a specific state, use [[cli/plugin|npx quartz plugin install]].
When to Use #
You should use restore if:
- A
quartz upgradefailed and corrupted your content. - You accidentally deleted files in your content folder.
- You encountered complex merge conflicts that you want to undo.
How it Works #
Quartz maintains a hidden cache of your content folder. Every time you run certain commands, Quartz ensures that a backup of your Markdown files exists. The restore command simply copies these files back into your main content directory.
npx quartz restore
Example Workflow #
If an update fails and leaves your project in a broken state:
- Restore: Run
npx quartz restoreto bring back your content. - Clean: Use Git to reset any other broken code files.
- Retry: Attempt the update again or manually apply the changes you need.