Add -C shorthand for --config and document the build flag

This commit is contained in:
Michael Abramo committed 2026-11-20 11:49:54 -05:00
1 parent 46312a6197
commit 64dde0cb9c
2 files changed
+13

No files matched your search

+12
View File
@@ -11,6 +11,7 @@ The `build` command transforms your Markdown content into a static HTML website.
| Flag | Shorthand | Description | Default |
| ----------------- | --------- | ---------------------------------------------------------------------------------- | ------------------ |
| `--directory` | `-d` | The content folder | `content` |
| `--config` | `-C` | Path to the config file to load (see [[#Custom config file]]) | quartz.config.yaml |
| `--verbose` | `-v` | Print detailed build information (see [[#Verbose output]]) | `false` |
| `--output` | `-o` | The directory where the built site will be saved | `public` |
| `--serve` | | Start a local development server | `false` |
@@ -56,6 +57,17 @@ If you have a very large vault, you can limit the number of concurrent workers t
npx quartz build --concurrency 2
```
### Custom config file
By default Quartz loads `quartz.config.yaml` from the current working directory. Use `--config` (or `-C`) to point at a config file elsewhere — for example when the config lives alongside your content rather than inside the Quartz install.
```shell
npx quartz build --config ../my-vault/quartz.config.yaml
```
> [!note]
> The shorthand for `--config` is an uppercase `-C`. A lowercase `-c` is the shorthand for `--concurrency`, so the two are distinct.
### Verbose output
`npx quartz build --verbose` also prints:
+1
View File
@@ -78,6 +78,7 @@ export const BuildArgv = {
...CommonArgv,
config: {
string: true,
alias: ["C"],
describe: "path to the config file (default: ./quartz.config.yaml)",
},
output: {