2.4 KiB
| title |
|---|
| quartz plugin |
The plugin command is the heart of the Quartz v5 plugin management system. it allows you to install, configure, and update plugins directly from the command line.
All plugins are stored in the .quartz/plugins/ directory, and their versions are tracked in quartz.lock.json.
Subcommands
list
List all currently installed plugins and their versions.
npx quartz plugin list
add
Add a new plugin from a Git repository.
npx quartz plugin add github:username/repo
remove
Remove an installed plugin.
npx quartz plugin remove plugin-name
install
Install all plugins listed in your quartz.lock.json file. This is useful when setting up the project on a new machine.
npx quartz plugin install
update
Update specific plugins or all plugins to their latest versions.
npx quartz plugin update plugin-name
npx quartz plugin update # updates all
restore
Restore plugins to the exact versions specified in the lockfile. Unlike install, this will downgrade plugins if the lockfile specifies an older version. This is recommended for CI/CD environments.
npx quartz plugin restore
enable / disable
Toggle a plugin's status in your quartz.config.yaml without removing its files.
npx quartz plugin enable plugin-name
npx quartz plugin disable plugin-name
config
View or modify the configuration for a specific plugin.
# View config
npx quartz plugin config plugin-name
# Set a value
npx quartz plugin config plugin-name --set key=value
check
Check if any of your installed plugins have updates available.
npx quartz plugin check
Common Workflows
Adding and Enabling a Plugin
To add a new plugin and start using it:
- Add the plugin:
npx quartz plugin add github:quartz-community/example - Enable it:
npx quartz plugin enable example
Updating Everything
To keep your plugins fresh:
npx quartz plugin update
Managing Configuration
If you want to change a plugin setting without opening the YAML file:
npx quartz plugin config explorer --set useSavedState=true
Interactive Mode
Running the plugin command without any subcommand will launch the cli/tui, which provides a visual interface for all these operations.
npx quartz plugin