npx quartz prefix.
Available Commands
Quartz CLI offers five main commands for different stages of your workflow:create
Initialize a new Quartz project with content setup options
build
Build your Quartz site into static HTML files
sync
Synchronize your content with GitHub repositories
update
Update Quartz to the latest version
restore
Restore your content folder from cache
Quick Start
Global Options
These options are available across most Quartz commands:Directory to look for content files. Can be specified as an absolute or relative path.Alias:
-dPrint out extra logging information for debugging purposes.Alias:
-vCommand Reference
create
Initialize a new Quartz installation with content setup options.build
Build your Quartz site into a bundle of static HTML files.sync
Synchronize your Quartz content to and from GitHub.update
Pull the latest Quartz framework updates from upstream.This command backs up your content, pulls updates from the upstream Quartz repository, and restores your content. You may need to resolve git conflicts if you’ve customized components or plugins.
restore
Restore your content folder from the cache.Version Information
Check the installed Quartz version:Getting Help
Display help information for any command:Common Workflows
Local Development
http://localhost:8080 and automatically rebuilds when you make changes.
Production Build
Deploy Workflow
Environment
All commands run in the current working directory and expect a valid Quartz project structure with:quartz.config.ts- Configuration filecontent/- Content directory (or custom path via--directory)quartz/- Framework directory
Exit Codes
0- Success1- Error occurred (check console output for details)
Next Steps
Build Command
Learn about build options and local development
Sync Command
Explore git synchronization features