mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-22 05:55:42 -05:00
1.4 KiB
1.4 KiB
| title |
|---|
| quartz migrate |
The migrate command helps you transition your project from Quartz 4 to Quartz v5 by converting your configuration files.
When to Use
Use this command if you have an existing Quartz 4 project and want to upgrade to the new YAML-based configuration system introduced in v5.
What it Does
When you run npx quartz migrate, the CLI performs several automated steps:
- Read Configuration: It parses your existing
quartz.config.tsandquartz.layout.tsfiles. - Map Plugins: It identifies the plugins you are using and maps them to their v5 equivalents.
- Generate YAML: It creates a new
quartz.config.yamlfile that contains all your settings, theme colors, and plugin configurations. - Backup: It keeps your old
.tsfiles so you can refer back to them if needed.
npx quartz migrate
Verification
After running the migration, you should check the following:
- Theme Colors: Ensure your custom colors were correctly transferred to the
themesection ofquartz.config.yaml. - Plugin Options: Verify that any custom options you passed to plugins (like
linkClickBehavior) are present in the new config. - Layout: Check that your component order in the
layoutsection matches your previous setup.
For a comprehensive guide on the entire migration process, including manual steps, see getting-started/migrating.