The Quartz CLI is the primary way to interact with your Quartz project. It provides commands for creating new projects, building static sites, syncing with GitHub, and managing plugins.

You can run the CLI using npx quartz.

Quick Reference

CommandDescriptionExample
createInitialize a new Quartz project with template selectionnpx quartz create
buildGenerate static HTML filesnpx quartz build
syncSync content with GitHubnpx quartz sync
upgradeUpgrade Quartz to the latest version (alias: update)npx quartz upgrade
pluginManage Quartz plugins (install, add, remove, etc.)npx quartz plugin list
tuiLaunch the interactive plugin managernpx quartz tui

Commands

  • create: Initialize a new Quartz project with a choice of templates (default, obsidian, ttrpg, blog) and base URL configuration.
  • build: Build your Quartz site into static HTML. Includes a development server.
  • sync: Push and pull changes between your local machine and GitHub.
  • upgrade: Upgrade the Quartz framework to the latest version. Also available as npx quartz update.
  • restore: Recover your content folder from the local cache.
  • plugin: Install, add, remove, prune, and configure plugins. Use plugin install with flags for lockfile/config sync, updates, and checks.
  • tui: Use a terminal interface to manage plugins and layout.

Help and Versioning

To see a full list of available flags for any command, use the --help flag.

npx quartz --help
npx quartz build --help

To check which version of Quartz you are currently running, use the --version flag.

npx quartz --version

7 items under this folder.