@thegetty/quire-cli 1.0.0-rc.45 → 1.0.0-rc.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -36
- package/README.md +0 -9
- package/bin/cli.js +1 -46
- package/package.json +10 -27
- package/src/Command.js +6 -26
- package/src/commands/README.md +122 -213
- package/src/commands/build.js +37 -45
- package/src/commands/clean.js +19 -33
- package/src/commands/conf.js +43 -0
- package/src/commands/create.js +14 -42
- package/src/commands/epub.js +31 -67
- package/src/commands/index.js +2 -9
- package/src/commands/info.js +86 -88
- package/src/commands/pdf.js +82 -63
- package/src/commands/preview.js +31 -32
- package/src/commands/validate.js +20 -64
- package/src/commands/version.js +43 -0
- package/src/errors/validation/validation-error.js +11 -20
- package/src/helpers/clean.js +1 -1
- package/src/helpers/is-quire.js +31 -0
- package/src/helpers/test-cwd.js +6 -5
- package/src/helpers/which.js +4 -10
- package/src/lib/11ty/README.md +19 -135
- package/src/lib/11ty/api.js +93 -235
- package/src/lib/11ty/cli.js +37 -112
- package/src/lib/11ty/index.js +5 -64
- package/src/lib/11ty/paths.js +103 -0
- package/src/lib/README.md +0 -330
- package/src/lib/conf/README.md +69 -86
- package/src/lib/conf/config.js +3 -5
- package/src/lib/conf/defaults.js +0 -65
- package/src/lib/conf/schema.js +9 -103
- package/src/lib/epub/README.md +2 -133
- package/src/lib/epub/epub.js +11 -36
- package/src/lib/epub/index.js +21 -111
- package/src/lib/epub/pandoc.js +4 -33
- package/src/lib/git/README.md +2 -151
- package/src/lib/git/index.js +13 -217
- package/src/lib/i18n/README.md +3 -0
- package/src/lib/i18n/config.js +53 -0
- package/src/lib/i18n/index.js +43 -0
- package/src/lib/i18n/localeService.js +58 -0
- package/src/lib/pdf/README.md +0 -131
- package/src/lib/pdf/index.js +21 -124
- package/src/lib/pdf/paged.js +52 -100
- package/src/lib/pdf/prince.js +37 -115
- package/src/lib/pdf/split.js +33 -61
- package/src/lib/quire/README.md +19 -0
- package/src/lib/quire/index.js +353 -0
- package/src/lib/reporter/README.md +2 -211
- package/src/lib/reporter/index.js +0 -607
- package/src/main.js +48 -221
- package/src/packageConfig.js +0 -17
- package/src/validators/utils.js +1 -2
- package/man/quire.1 +0 -341
- package/man/quire.1.md +0 -232
- package/schemas/config.schema.json +0 -194
- package/schemas/figures.schema.json +0 -56
- package/schemas/layout.schema.json +0 -5
- package/schemas/objects.schema.json +0 -62
- package/schemas/publication.schema.json +0 -140
- package/schemas/references.schema.json +0 -29
- package/src/Command.spec.js +0 -99
- package/src/commands/build.spec.js +0 -113
- package/src/commands/build.test.js +0 -397
- package/src/commands/clean.spec.js +0 -118
- package/src/commands/clean.test.js +0 -382
- package/src/commands/config.js +0 -238
- package/src/commands/config.spec.js +0 -107
- package/src/commands/config.test.js +0 -845
- package/src/commands/create.spec.js +0 -112
- package/src/commands/create.test.js +0 -415
- package/src/commands/doctor.js +0 -251
- package/src/commands/doctor.spec.js +0 -115
- package/src/commands/doctor.test.js +0 -1409
- package/src/commands/epub.spec.js +0 -114
- package/src/commands/epub.test.js +0 -503
- package/src/commands/help.js +0 -60
- package/src/commands/help.test.js +0 -132
- package/src/commands/info.spec.js +0 -72
- package/src/commands/info.test.js +0 -512
- package/src/commands/pdf.spec.js +0 -114
- package/src/commands/pdf.test.js +0 -464
- package/src/commands/preview.spec.js +0 -97
- package/src/commands/preview.test.js +0 -250
- package/src/commands/use.js +0 -56
- package/src/commands/use.spec.js +0 -61
- package/src/commands/use.test.js +0 -280
- package/src/commands/validate.spec.js +0 -90
- package/src/commands/validate.test.js +0 -378
- package/src/commands/workflows.js +0 -70
- package/src/errors/build/build-failed-error.js +0 -19
- package/src/errors/build/config-field-missing-error.js +0 -20
- package/src/errors/build/config-file-not-found-error.js +0 -20
- package/src/errors/build/index.js +0 -11
- package/src/errors/help/help-topic-not-found-error.js +0 -30
- package/src/errors/help/index.js +0 -8
- package/src/errors/index.js +0 -58
- package/src/errors/input/index.js +0 -8
- package/src/errors/input/invalid-input-error.js +0 -21
- package/src/errors/install/dependency-install-error.js +0 -19
- package/src/errors/install/directory-not-empty-error.js +0 -25
- package/src/errors/install/index.js +0 -12
- package/src/errors/install/invalid-path-error.js +0 -31
- package/src/errors/install/invalid-starter-error.js +0 -27
- package/src/errors/install/version-not-found-error.js +0 -35
- package/src/errors/output/epub-generation-error.js +0 -19
- package/src/errors/output/index.js +0 -14
- package/src/errors/output/invalid-epub-library-error.js +0 -20
- package/src/errors/output/invalid-pdf-library-error.js +0 -20
- package/src/errors/output/missing-build-output-error.js +0 -21
- package/src/errors/output/pdf-generation-error.js +0 -24
- package/src/errors/output/tool-not-found-error.js +0 -37
- package/src/errors/project/index.js +0 -10
- package/src/errors/project/not-in-project-error.js +0 -20
- package/src/errors/project/project-create-error.js +0 -21
- package/src/errors/quire-error.js +0 -27
- package/src/errors/validation/index.js +0 -3
- package/src/errors/validation/unknown-config-key-error.js +0 -27
- package/src/errors/validation/unknown-config-operation-error.js +0 -24
- package/src/helpers/docs-url.js +0 -32
- package/src/helpers/pager.js +0 -59
- package/src/helpers/pager.test.js +0 -85
- package/src/helpers/suggest-similar.js +0 -124
- package/src/helpers/suggest-similar.test.js +0 -108
- package/src/helpers/test-cwd.test.js +0 -192
- package/src/lib/11ty/index.test.js +0 -655
- package/src/lib/commander/index.js +0 -103
- package/src/lib/commander/index.test.js +0 -86
- package/src/lib/commander/options.js +0 -237
- package/src/lib/commander/options.test.js +0 -205
- package/src/lib/conf/build-status.js +0 -103
- package/src/lib/conf/build-status.test.js +0 -247
- package/src/lib/conf/config.test.js +0 -281
- package/src/lib/conf/format.js +0 -60
- package/src/lib/conf/format.test.js +0 -106
- package/src/lib/conf/helpers.js +0 -91
- package/src/lib/conf/helpers.test.js +0 -136
- package/src/lib/conf/index.js +0 -22
- package/src/lib/constants.js +0 -28
- package/src/lib/doctor/README.md +0 -667
- package/src/lib/doctor/checks/environment/cli-version.js +0 -62
- package/src/lib/doctor/checks/environment/cli-version.test.js +0 -132
- package/src/lib/doctor/checks/environment/git-available.js +0 -77
- package/src/lib/doctor/checks/environment/git-available.test.js +0 -52
- package/src/lib/doctor/checks/environment/index.js +0 -13
- package/src/lib/doctor/checks/environment/node-version.js +0 -66
- package/src/lib/doctor/checks/environment/node-version.test.js +0 -17
- package/src/lib/doctor/checks/environment/npm-available.js +0 -66
- package/src/lib/doctor/checks/environment/npm-available.test.js +0 -52
- package/src/lib/doctor/checks/environment/os-info.js +0 -48
- package/src/lib/doctor/checks/environment/os-info.test.js +0 -81
- package/src/lib/doctor/checks/environment/runtime-info.js +0 -51
- package/src/lib/doctor/checks/environment/runtime-info.test.js +0 -132
- package/src/lib/doctor/checks/outputs/epub-output.js +0 -119
- package/src/lib/doctor/checks/outputs/epub-output.test.js +0 -277
- package/src/lib/doctor/checks/outputs/index.js +0 -10
- package/src/lib/doctor/checks/outputs/pdf-output.js +0 -144
- package/src/lib/doctor/checks/outputs/pdf-output.test.js +0 -377
- package/src/lib/doctor/checks/outputs/stale-build.js +0 -122
- package/src/lib/doctor/checks/outputs/stale-build.test.js +0 -282
- package/src/lib/doctor/checks/project/data-files.js +0 -56
- package/src/lib/doctor/checks/project/data-files.test.js +0 -125
- package/src/lib/doctor/checks/project/dependencies.js +0 -53
- package/src/lib/doctor/checks/project/dependencies.test.js +0 -71
- package/src/lib/doctor/checks/project/index.js +0 -11
- package/src/lib/doctor/checks/project/quire-11ty.js +0 -98
- package/src/lib/doctor/checks/project/quire-11ty.test.js +0 -170
- package/src/lib/doctor/checks/project/quire-project.js +0 -38
- package/src/lib/doctor/checks/project/quire-project.test.js +0 -47
- package/src/lib/doctor/checks/tools/index.js +0 -10
- package/src/lib/doctor/checks/tools/pandoc-available.js +0 -82
- package/src/lib/doctor/checks/tools/pandoc-available.test.js +0 -73
- package/src/lib/doctor/checks/tools/prince-available.js +0 -81
- package/src/lib/doctor/checks/tools/prince-available.test.js +0 -73
- package/src/lib/doctor/constants.js +0 -39
- package/src/lib/doctor/formatDuration.js +0 -108
- package/src/lib/doctor/formatDuration.test.js +0 -76
- package/src/lib/doctor/formatters/human.js +0 -257
- package/src/lib/doctor/formatters/human.test.js +0 -463
- package/src/lib/doctor/formatters/index.js +0 -8
- package/src/lib/doctor/formatters/json.js +0 -78
- package/src/lib/doctor/formatters/json.test.js +0 -174
- package/src/lib/doctor/formatters/shared.js +0 -129
- package/src/lib/doctor/formatters/shared.test.js +0 -194
- package/src/lib/doctor/index.js +0 -271
- package/src/lib/doctor/index.test.js +0 -797
- package/src/lib/epub/engines.js +0 -46
- package/src/lib/epub/index.test.js +0 -518
- package/src/lib/epub/pandoc.test.js +0 -122
- package/src/lib/epub/schema.js +0 -21
- package/src/lib/error/README.md +0 -170
- package/src/lib/error/handler.js +0 -107
- package/src/lib/git/index.spec.js +0 -80
- package/src/lib/git/index.test.js +0 -453
- package/src/lib/help/frontmatter.js +0 -77
- package/src/lib/help/frontmatter.test.js +0 -139
- package/src/lib/help/index.js +0 -146
- package/src/lib/help/index.test.js +0 -188
- package/src/lib/help/topics/configuration.md +0 -77
- package/src/lib/help/topics/debugging.md +0 -69
- package/src/lib/help/topics/epub.md +0 -74
- package/src/lib/help/topics/pdf.md +0 -74
- package/src/lib/help/topics/publishing.md +0 -80
- package/src/lib/help/topics/workflows.md +0 -50
- package/src/lib/installer/index.js +0 -309
- package/src/lib/installer/index.spec.js +0 -83
- package/src/lib/installer/index.test.js +0 -545
- package/src/lib/logger/README.md +0 -424
- package/src/lib/logger/debug.js +0 -132
- package/src/lib/logger/debug.spec.js +0 -130
- package/src/lib/logger/debug.test.js +0 -128
- package/src/lib/logger/index.js +0 -228
- package/src/lib/logger/index.spec.js +0 -131
- package/src/lib/logger/index.test.js +0 -578
- package/src/lib/npm/README.md +0 -127
- package/src/lib/npm/index.js +0 -198
- package/src/lib/npm/index.spec.js +0 -60
- package/src/lib/npm/index.test.js +0 -355
- package/src/lib/pdf/engines.js +0 -46
- package/src/lib/pdf/index.test.js +0 -708
- package/src/lib/pdf/paged.test.js +0 -366
- package/src/lib/pdf/prince.test.js +0 -202
- package/src/lib/pdf/schema.js +0 -21
- package/src/lib/pdf/split.test.js +0 -445
- package/src/lib/platform.js +0 -95
- package/src/lib/process/manager.js +0 -110
- package/src/lib/process/manager.test.js +0 -55
- package/src/lib/project/build.js +0 -162
- package/src/lib/project/build.test.js +0 -275
- package/src/lib/project/config.js +0 -48
- package/src/lib/project/config.test.js +0 -134
- package/src/lib/project/detect.js +0 -47
- package/src/lib/project/detect.test.js +0 -157
- package/src/lib/project/index.js +0 -56
- package/src/lib/project/output-paths.js +0 -87
- package/src/lib/project/output-paths.test.js +0 -66
- package/src/lib/project/paths.js +0 -272
- package/src/lib/project/version.js +0 -110
- package/src/lib/project/version.test.js +0 -350
- package/src/lib/reporter/index.test.js +0 -862
- package/src/main.spec.js +0 -61
- package/src/main.test.js +0 -347
- package/src/validators/validate-data-files.js +0 -154
- package/src/validators/validate-data-files.test.js +0 -217
package/man/quire.1
DELETED
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
.TH "QUIRE" "1" "January 2026" "1.0.0-rc.38"
|
|
2
|
-
.SH "NAME"
|
|
3
|
-
\fBquire\fR \- Quire command\-line interface
|
|
4
|
-
.SH SYNOPSIS
|
|
5
|
-
.P
|
|
6
|
-
\fBquire\fP [options] <command> [command\-options]
|
|
7
|
-
.SH DESCRIPTION
|
|
8
|
-
.P
|
|
9
|
-
Quire is a command\-line tool for creating and publishing digital books\.
|
|
10
|
-
.br
|
|
11
|
-
It generates static websites, PDFs, and EPUBs from a Quire project
|
|
12
|
-
.br
|
|
13
|
-
containing Markdown content and YAML data files\.
|
|
14
|
-
.P
|
|
15
|
-
A typical workflow starts with \fBquire new\fP to scaffold a project, \fBquire preview\fP to develop locally, and \fBquire build\fP, \fBquire pdf\fP, or \fBquire epub\fP to produce publication outputs\.
|
|
16
|
-
.SH COMMANDS
|
|
17
|
-
.SS Project Creation
|
|
18
|
-
|
|
19
|
-
.RS 1
|
|
20
|
-
.IP \(bu 2
|
|
21
|
-
\fBnew\fP [projectPath] [starter]:
|
|
22
|
-
.br
|
|
23
|
-
Create a new Quire project from a template\. If \fIprojectPath\fR is
|
|
24
|
-
.br
|
|
25
|
-
omitted, the current directory is used\. An optional \fIstarter\fR argument
|
|
26
|
-
.br
|
|
27
|
-
specifies a repository URL or local path for a starter project\.
|
|
28
|
-
.P
|
|
29
|
-
\fB\-\-quire\-version\fP \fIversion\fR pins the quire\-11ty version to install\.
|
|
30
|
-
.br
|
|
31
|
-
\fB\-\-quire\-path\fP \fIpath\fR uses a local quire\-11ty package instead of a
|
|
32
|
-
.br
|
|
33
|
-
published version\.
|
|
34
|
-
|
|
35
|
-
.RE
|
|
36
|
-
.SS Development
|
|
37
|
-
|
|
38
|
-
.RS 1
|
|
39
|
-
.IP \(bu 2
|
|
40
|
-
\fBpreview\fP:
|
|
41
|
-
.br
|
|
42
|
-
Start a local development server with live reload\. Changes to source
|
|
43
|
-
.br
|
|
44
|
-
files are rebuilt automatically\.
|
|
45
|
-
.P
|
|
46
|
-
\fB\-p\fP, \fB\-\-port\fP \fIport\fR sets the server port (default: 8080)\.
|
|
47
|
-
.br
|
|
48
|
-
\fB\-\-open\fP opens the browser when the server starts\.
|
|
49
|
-
.IP \(bu 2
|
|
50
|
-
\fBbuild\fP:
|
|
51
|
-
.br
|
|
52
|
-
Run the Eleventy build to generate static HTML output\. Build outputs
|
|
53
|
-
.br
|
|
54
|
-
are written to the project's output directory\.
|
|
55
|
-
.P
|
|
56
|
-
\fB\-d\fP, \fB\-\-dry\-run\fP runs the build without writing files\.
|
|
57
|
-
.IP \(bu 2
|
|
58
|
-
\fBclean\fP:
|
|
59
|
-
.br
|
|
60
|
-
Remove build outputs (HTML, PDF, and EPUB files)\.
|
|
61
|
-
.P
|
|
62
|
-
\fB\-d\fP, \fB\-\-dry\-run\fP shows paths that would be deleted without removing them\.
|
|
63
|
-
.br
|
|
64
|
-
\fB\-\-status\fP also clears stored build status for the project\.
|
|
65
|
-
|
|
66
|
-
.RE
|
|
67
|
-
.SS Output Generation
|
|
68
|
-
|
|
69
|
-
.RS 1
|
|
70
|
-
.IP \(bu 2
|
|
71
|
-
\fBpdf\fP:
|
|
72
|
-
.br
|
|
73
|
-
Generate a print\-ready PDF from build output\.
|
|
74
|
-
.P
|
|
75
|
-
\fB\-\-engine\fP \fIname\fR selects the PDF engine (\fBpagedjs\fP or \fBprince\fP; default:
|
|
76
|
-
.br
|
|
77
|
-
from config or \fBpagedjs\fP)\.
|
|
78
|
-
.br
|
|
79
|
-
\fB\-\-build\fP runs the site build first if output is missing\.
|
|
80
|
-
.br
|
|
81
|
-
\fB\-\-open\fP opens the PDF in the default application after generation\.
|
|
82
|
-
.br
|
|
83
|
-
\fB\-o\fP, \fB\-\-output\fP \fIpath\fR sets a custom output file path\.
|
|
84
|
-
.IP \(bu 2
|
|
85
|
-
\fBepub\fP:
|
|
86
|
-
.br
|
|
87
|
-
Generate an EPUB e\-book from build output\.
|
|
88
|
-
.P
|
|
89
|
-
\fB\-\-engine\fP \fIname\fR selects the EPUB engine (\fBepubjs\fP or \fBpandoc\fP; default:
|
|
90
|
-
.br
|
|
91
|
-
from config or \fBepubjs\fP)\.
|
|
92
|
-
.br
|
|
93
|
-
\fB\-\-build\fP runs the site build first if output is missing\.
|
|
94
|
-
.br
|
|
95
|
-
\fB\-\-open\fP opens the EPUB in the default application after generation\.
|
|
96
|
-
.br
|
|
97
|
-
\fB\-o\fP, \fB\-\-output\fP \fIpath\fR sets a custom output file path\.
|
|
98
|
-
|
|
99
|
-
.RE
|
|
100
|
-
.SS Information and Diagnostics
|
|
101
|
-
|
|
102
|
-
.RS 1
|
|
103
|
-
.IP \(bu 2
|
|
104
|
-
\fBdoctor\fP [checks\.\.\.]:
|
|
105
|
-
.br
|
|
106
|
-
Run diagnostic checks on the Quire environment and project\. Checks are
|
|
107
|
-
.br
|
|
108
|
-
organized into four sections: Environment (os, cli, node, runtime, npm,
|
|
109
|
-
.br
|
|
110
|
-
git), Tools (prince, pandoc), Project (project, deps, 11ty, data), and
|
|
111
|
-
.br
|
|
112
|
-
Outputs (build, pdf, epub)\.
|
|
113
|
-
.P
|
|
114
|
-
Without arguments, all checks are run\. Pass section names or individual
|
|
115
|
-
.br
|
|
116
|
-
check IDs to run a subset (e\.g\., \fBquire doctor environment\fP or
|
|
117
|
-
.br
|
|
118
|
-
\fBquire doctor node git\fP)\.
|
|
119
|
-
.P
|
|
120
|
-
\fB\-e\fP, \fB\-\-errors\fP shows only failed checks\.
|
|
121
|
-
.br
|
|
122
|
-
\fB\-w\fP, \fB\-\-warnings\fP shows only warnings\.
|
|
123
|
-
.br
|
|
124
|
-
\fB\-\-json\fP [\fIfile\fR] outputs results as JSON to stdout or a file\.
|
|
125
|
-
.br
|
|
126
|
-
\fB\-\-reset\fP clears stored build status for the current project\.
|
|
127
|
-
.P
|
|
128
|
-
Aliases: \fBcheckup\fP, \fBcheck\fP, \fBdiagnostic\fP, \fBhealth\fP\|\.
|
|
129
|
-
.IP \(bu 2
|
|
130
|
-
\fBinfo\fP:
|
|
131
|
-
.br
|
|
132
|
-
Display version information for the current project, including
|
|
133
|
-
.br
|
|
134
|
-
quire\-cli, quire\-11ty, and starter template versions\.
|
|
135
|
-
.P
|
|
136
|
-
\fB\-\-debug\fP includes installation paths\.
|
|
137
|
-
.br
|
|
138
|
-
\fB\-\-json\fP outputs version information as JSON\.
|
|
139
|
-
.IP \(bu 2
|
|
140
|
-
\fBvalidate\fP:
|
|
141
|
-
.br
|
|
142
|
-
Check YAML files in the project's \fBcontent/_data/\fP directory for
|
|
143
|
-
.br
|
|
144
|
-
syntax errors\.
|
|
145
|
-
.P
|
|
146
|
-
\fB\-\-json\fP outputs validation results as JSON\.
|
|
147
|
-
.IP \(bu 2
|
|
148
|
-
\fBsettings\fP [operation] [key] [value]:
|
|
149
|
-
.br
|
|
150
|
-
View and modify CLI settings\. Without arguments, displays all current
|
|
151
|
-
.br
|
|
152
|
-
settings\.
|
|
153
|
-
.P
|
|
154
|
-
Operations: \fBget\fP, \fBset\fP, \fBdelete\fP, \fBreset\fP, \fBpath\fP\|\.
|
|
155
|
-
.P
|
|
156
|
-
\fB\-\-json\fP outputs raw JSON\.
|
|
157
|
-
.br
|
|
158
|
-
\fB\-\-debug\fP enables debug output for troubleshooting\.
|
|
159
|
-
.P
|
|
160
|
-
Aliases: \fBprefs\fP, \fBpreferences\fP, \fBconf\fP, \fBconfig\fP, \fBconfigure\fP\|\.
|
|
161
|
-
.IP \(bu 2
|
|
162
|
-
\fBhelp\fP [topic]:
|
|
163
|
-
.br
|
|
164
|
-
Display help for a topic or list available topics\. Topics include
|
|
165
|
-
.br
|
|
166
|
-
individual commands, workflows, and configuration guides\.
|
|
167
|
-
.P
|
|
168
|
-
\fB\-\-list\fP lists all available topics\.
|
|
169
|
-
.P
|
|
170
|
-
Alias: \fBh\fP\|\.
|
|
171
|
-
|
|
172
|
-
.RE
|
|
173
|
-
.SH GLOBAL OPTIONS
|
|
174
|
-
|
|
175
|
-
.RS 1
|
|
176
|
-
.IP \(bu 2
|
|
177
|
-
\fB\-q\fP, \fB\-\-quiet\fP:
|
|
178
|
-
.br
|
|
179
|
-
Suppress progress output\. Hides spinner messages, quire\-11ty log
|
|
180
|
-
.br
|
|
181
|
-
output, Vite log output, and the Eleventy directory listing\. Exit
|
|
182
|
-
.br
|
|
183
|
-
codes still indicate success or failure\. Useful for CI pipelines
|
|
184
|
-
.br
|
|
185
|
-
and scripts\.
|
|
186
|
-
.IP \(bu 2
|
|
187
|
-
\fB\-v\fP, \fB\-\-verbose\fP:
|
|
188
|
-
.br
|
|
189
|
-
Show detailed progress\. Enables quire\-11ty informational log output,
|
|
190
|
-
.br
|
|
191
|
-
the Eleventy directory listing (file\-by\-file build table), and Vite
|
|
192
|
-
.br
|
|
193
|
-
info\-level output in addition to spinner messages\.
|
|
194
|
-
.IP \(bu 2
|
|
195
|
-
\fB\-\-debug\fP:
|
|
196
|
-
.br
|
|
197
|
-
Enable debug output for troubleshooting\. Activates the \fBquire:*\fP debug
|
|
198
|
-
.br
|
|
199
|
-
namespace, Eleventy's \fBDEBUG=Eleventy*\fP tracing, and quire\-11ty debug\-
|
|
200
|
-
.br
|
|
201
|
-
level log output\. Can be combined with \fB\-\-verbose\fP\.
|
|
202
|
-
.IP \(bu 2
|
|
203
|
-
\fB\-\-reduced\-motion\fP:
|
|
204
|
-
.br
|
|
205
|
-
Disable spinner animation and line overwriting\. Each build phase prints
|
|
206
|
-
.br
|
|
207
|
-
on a new line with a static status symbol\. Compatible with screen
|
|
208
|
-
.br
|
|
209
|
-
readers and terminals that do not support ANSI escape sequences\. Can
|
|
210
|
-
.br
|
|
211
|
-
also be enabled via the \fBREDUCED_MOTION\fP environment variable or the
|
|
212
|
-
.br
|
|
213
|
-
\fBreducedMotion\fP config setting\.
|
|
214
|
-
.IP \(bu 2
|
|
215
|
-
\fB\-\-color\fP:
|
|
216
|
-
.br
|
|
217
|
-
Force colored output, overriding the \fBNO_COLOR\fP environment variable\.
|
|
218
|
-
.IP \(bu 2
|
|
219
|
-
\fB\-\-no\-color\fP:
|
|
220
|
-
.br
|
|
221
|
-
Disable colored output\.
|
|
222
|
-
.IP \(bu 2
|
|
223
|
-
\fB\-\-no\-pager\fP:
|
|
224
|
-
.br
|
|
225
|
-
Disable paging for long output (e\.g\., help topics)\.
|
|
226
|
-
.IP \(bu 2
|
|
227
|
-
\fB\-V\fP, \fB\-\-version\fP:
|
|
228
|
-
.br
|
|
229
|
-
Output the quire version number\.
|
|
230
|
-
.IP \(bu 2
|
|
231
|
-
\fB\-h\fP, \fB\-\-help\fP:
|
|
232
|
-
.br
|
|
233
|
-
Display help for quire or a subcommand\.
|
|
234
|
-
|
|
235
|
-
.RE
|
|
236
|
-
.SH ENVIRONMENT
|
|
237
|
-
|
|
238
|
-
.RS 1
|
|
239
|
-
.IP \(bu 2
|
|
240
|
-
\fBQUIRE_LOG_LEVEL\fP=\fIlevel\fR:
|
|
241
|
-
.br
|
|
242
|
-
Override the log verbosity for quire\-11ty output\. Valid values are
|
|
243
|
-
.br
|
|
244
|
-
\fBtrace\fP, \fBdebug\fP, \fBinfo\fP, \fBwarn\fP, \fBerror\fP, and \fBsilent\fP\. This is
|
|
245
|
-
.br
|
|
246
|
-
normally set automatically by the CLI based on \fB\-\-quiet\fP, \fB\-\-verbose\fP,
|
|
247
|
-
.br
|
|
248
|
-
and \fB\-\-debug\fP flags\. Setting it manually is useful when running
|
|
249
|
-
.br
|
|
250
|
-
quire\-11ty outside the CLI\.
|
|
251
|
-
.IP \(bu 2
|
|
252
|
-
\fBREDUCED_MOTION\fP=\fI1\fR:
|
|
253
|
-
.br
|
|
254
|
-
Disable spinner animation, equivalent to \fB\-\-reduced\-motion\fP\.
|
|
255
|
-
.IP \(bu 2
|
|
256
|
-
\fBNO_COLOR\fP=\fI1\fR:
|
|
257
|
-
.br
|
|
258
|
-
Disable colored output (respected by chalk)\. Overridden by \fB\-\-color\fP\.
|
|
259
|
-
.IP \(bu 2
|
|
260
|
-
\fBNO_PAGER\fP=\fI1\fR:
|
|
261
|
-
.br
|
|
262
|
-
Disable paging for long output, equivalent to \fB\-\-no\-pager\fP\.
|
|
263
|
-
.IP \(bu 2
|
|
264
|
-
\fBPAGER\fP=\fIprogram\fR:
|
|
265
|
-
.br
|
|
266
|
-
Set the pager program for long output (default: \fBless\fP)\.
|
|
267
|
-
.IP \(bu 2
|
|
268
|
-
\fBDEBUG\fP=\fIpattern\fR:
|
|
269
|
-
.br
|
|
270
|
-
Enable debug output for matching namespaces\. Examples:
|
|
271
|
-
.P
|
|
272
|
-
\fBDEBUG=quire:*\fP enables all Quire CLI debug output\.
|
|
273
|
-
.br
|
|
274
|
-
\fBDEBUG=quire:lib:pdf\fP enables only PDF module debug output\.
|
|
275
|
-
.br
|
|
276
|
-
\fBDEBUG=quire:lib:*\fP enables all library module debug output\.
|
|
277
|
-
.br
|
|
278
|
-
\fBDEBUG=Eleventy*\fP enables Eleventy internal debug output\.
|
|
279
|
-
|
|
280
|
-
.RE
|
|
281
|
-
.SH COMMON WORKFLOWS
|
|
282
|
-
.P
|
|
283
|
-
Start a new project and preview it locally:
|
|
284
|
-
.RS 2
|
|
285
|
-
.nf
|
|
286
|
-
quire new my\-book && cd my\-book && quire preview
|
|
287
|
-
.fi
|
|
288
|
-
.RE
|
|
289
|
-
.P
|
|
290
|
-
Build the site for web deployment:
|
|
291
|
-
.RS 2
|
|
292
|
-
.nf
|
|
293
|
-
quire clean && quire build
|
|
294
|
-
.fi
|
|
295
|
-
.RE
|
|
296
|
-
.P
|
|
297
|
-
Generate all publication formats:
|
|
298
|
-
.RS 2
|
|
299
|
-
.nf
|
|
300
|
-
quire clean && quire build && quire pdf && quire epub
|
|
301
|
-
.fi
|
|
302
|
-
.RE
|
|
303
|
-
.P
|
|
304
|
-
Build and open a PDF in one step:
|
|
305
|
-
.RS 2
|
|
306
|
-
.nf
|
|
307
|
-
quire pdf \-\-build \-\-open
|
|
308
|
-
.fi
|
|
309
|
-
.RE
|
|
310
|
-
.SH CONFIGURATION
|
|
311
|
-
.P
|
|
312
|
-
Persistent settings are managed with the \fBquire settings\fP command\. Common
|
|
313
|
-
.br
|
|
314
|
-
settings include:
|
|
315
|
-
.RS 2
|
|
316
|
-
.nf
|
|
317
|
-
quire settings set verbose true
|
|
318
|
-
quire settings set pdfEngine prince
|
|
319
|
-
quire settings set updateChannel rc
|
|
320
|
-
.fi
|
|
321
|
-
.RE
|
|
322
|
-
.P
|
|
323
|
-
Run \fBquire settings\fP to see all available settings and their current values\.
|
|
324
|
-
.br
|
|
325
|
-
Run \fBquire settings path\fP to show the configuration file location\.
|
|
326
|
-
.SH EXIT STATUS
|
|
327
|
-
|
|
328
|
-
.RS 1
|
|
329
|
-
.IP \(bu 2
|
|
330
|
-
\fB0\fP: Success
|
|
331
|
-
.IP \(bu 2
|
|
332
|
-
\fB1\fP: Command failed (build error, validation error, missing output, etc\.)
|
|
333
|
-
|
|
334
|
-
.RE
|
|
335
|
-
.SH SEE ALSO
|
|
336
|
-
.P
|
|
337
|
-
Full documentation: https://quire.getty.edu/docs-v1
|
|
338
|
-
.P
|
|
339
|
-
Report bugs: https://github.com/thegetty/quire/issues
|
|
340
|
-
.P
|
|
341
|
-
Source code: https://github.com/thegetty/quire
|
package/man/quire.1.md
DELETED
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
# quire(1) -- Quire command-line interface
|
|
2
|
-
|
|
3
|
-
## SYNOPSIS
|
|
4
|
-
|
|
5
|
-
`quire` \[options\] <command> \[command-options\]
|
|
6
|
-
|
|
7
|
-
## DESCRIPTION
|
|
8
|
-
|
|
9
|
-
Quire is a command-line tool for creating and publishing digital books.
|
|
10
|
-
It generates static websites, PDFs, and EPUBs from a Quire project
|
|
11
|
-
containing Markdown content and YAML data files.
|
|
12
|
-
|
|
13
|
-
A typical workflow starts with `quire new` to scaffold a project, `quire
|
|
14
|
-
preview` to develop locally, and `quire build`, `quire pdf`, or `quire
|
|
15
|
-
epub` to produce publication outputs.
|
|
16
|
-
|
|
17
|
-
## COMMANDS
|
|
18
|
-
|
|
19
|
-
### Project Creation
|
|
20
|
-
|
|
21
|
-
* `new` \[projectPath\] \[starter\]:
|
|
22
|
-
Create a new Quire project from a template. If _projectPath_ is
|
|
23
|
-
omitted, the current directory is used. An optional _starter_ argument
|
|
24
|
-
specifies a repository URL or local path for a starter project.
|
|
25
|
-
|
|
26
|
-
`--quire-version` _version_ pins the quire-11ty version to install.
|
|
27
|
-
`--quire-path` _path_ uses a local quire-11ty package instead of a
|
|
28
|
-
published version.
|
|
29
|
-
|
|
30
|
-
### Development
|
|
31
|
-
|
|
32
|
-
* `preview`:
|
|
33
|
-
Start a local development server with live reload. Changes to source
|
|
34
|
-
files are rebuilt automatically.
|
|
35
|
-
|
|
36
|
-
`-p`, `--port` _port_ sets the server port (default: 8080).
|
|
37
|
-
`--open` opens the browser when the server starts.
|
|
38
|
-
|
|
39
|
-
* `build`:
|
|
40
|
-
Run the Eleventy build to generate static HTML output. Build outputs
|
|
41
|
-
are written to the project's output directory.
|
|
42
|
-
|
|
43
|
-
`-d`, `--dry-run` runs the build without writing files.
|
|
44
|
-
|
|
45
|
-
* `clean`:
|
|
46
|
-
Remove build outputs (HTML, PDF, and EPUB files).
|
|
47
|
-
|
|
48
|
-
`-d`, `--dry-run` shows paths that would be deleted without removing them.
|
|
49
|
-
`--status` also clears stored build status for the project.
|
|
50
|
-
|
|
51
|
-
### Output Generation
|
|
52
|
-
|
|
53
|
-
* `pdf`:
|
|
54
|
-
Generate a print-ready PDF from build output.
|
|
55
|
-
|
|
56
|
-
`--engine` _name_ selects the PDF engine (`pagedjs` or `prince`; default:
|
|
57
|
-
from config or `pagedjs`).
|
|
58
|
-
`--build` runs the site build first if output is missing.
|
|
59
|
-
`--open` opens the PDF in the default application after generation.
|
|
60
|
-
`-o`, `--output` _path_ sets a custom output file path.
|
|
61
|
-
|
|
62
|
-
* `epub`:
|
|
63
|
-
Generate an EPUB e-book from build output.
|
|
64
|
-
|
|
65
|
-
`--engine` _name_ selects the EPUB engine (`epubjs` or `pandoc`; default:
|
|
66
|
-
from config or `epubjs`).
|
|
67
|
-
`--build` runs the site build first if output is missing.
|
|
68
|
-
`--open` opens the EPUB in the default application after generation.
|
|
69
|
-
`-o`, `--output` _path_ sets a custom output file path.
|
|
70
|
-
|
|
71
|
-
### Information and Diagnostics
|
|
72
|
-
|
|
73
|
-
* `doctor` \[checks...\]:
|
|
74
|
-
Run diagnostic checks on the Quire environment and project. Checks are
|
|
75
|
-
organized into four sections: Environment (os, cli, node, runtime, npm,
|
|
76
|
-
git), Tools (prince, pandoc), Project (project, deps, 11ty, data), and
|
|
77
|
-
Outputs (build, pdf, epub).
|
|
78
|
-
|
|
79
|
-
Without arguments, all checks are run. Pass section names or individual
|
|
80
|
-
check IDs to run a subset (e.g., `quire doctor environment` or
|
|
81
|
-
`quire doctor node git`).
|
|
82
|
-
|
|
83
|
-
`-e`, `--errors` shows only failed checks.
|
|
84
|
-
`-w`, `--warnings` shows only warnings.
|
|
85
|
-
`--json` \[_file_\] outputs results as JSON to stdout or a file.
|
|
86
|
-
`--reset` clears stored build status for the current project.
|
|
87
|
-
|
|
88
|
-
Aliases: `checkup`, `check`, `diagnostic`, `health`.
|
|
89
|
-
|
|
90
|
-
* `info`:
|
|
91
|
-
Display version information for the current project, including
|
|
92
|
-
quire-cli, quire-11ty, and starter template versions.
|
|
93
|
-
|
|
94
|
-
`--debug` includes installation paths.
|
|
95
|
-
`--json` outputs version information as JSON.
|
|
96
|
-
|
|
97
|
-
* `validate`:
|
|
98
|
-
Check YAML files in the project's `content/_data/` directory for
|
|
99
|
-
syntax errors.
|
|
100
|
-
|
|
101
|
-
`--json` outputs validation results as JSON.
|
|
102
|
-
|
|
103
|
-
* `settings` \[operation\] \[key\] \[value\]:
|
|
104
|
-
View and modify CLI settings. Without arguments, displays all current
|
|
105
|
-
settings.
|
|
106
|
-
|
|
107
|
-
Operations: `get`, `set`, `delete`, `reset`, `path`.
|
|
108
|
-
|
|
109
|
-
`--json` outputs raw JSON.
|
|
110
|
-
`--debug` enables debug output for troubleshooting.
|
|
111
|
-
|
|
112
|
-
Aliases: `prefs`, `preferences`, `conf`, `config`, `configure`.
|
|
113
|
-
|
|
114
|
-
* `help` \[topic\]:
|
|
115
|
-
Display help for a topic or list available topics. Topics include
|
|
116
|
-
individual commands, workflows, and configuration guides.
|
|
117
|
-
|
|
118
|
-
`--list` lists all available topics.
|
|
119
|
-
|
|
120
|
-
Alias: `h`.
|
|
121
|
-
|
|
122
|
-
## GLOBAL OPTIONS
|
|
123
|
-
|
|
124
|
-
* `-q`, `--quiet`:
|
|
125
|
-
Suppress progress output. Hides spinner messages, quire-11ty log
|
|
126
|
-
output, Vite log output, and the Eleventy directory listing. Exit
|
|
127
|
-
codes still indicate success or failure. Useful for CI pipelines
|
|
128
|
-
and scripts.
|
|
129
|
-
|
|
130
|
-
* `-v`, `--verbose`:
|
|
131
|
-
Show detailed progress. Enables quire-11ty informational log output,
|
|
132
|
-
the Eleventy directory listing (file-by-file build table), and Vite
|
|
133
|
-
info-level output in addition to spinner messages.
|
|
134
|
-
|
|
135
|
-
* `--debug`:
|
|
136
|
-
Enable debug output for troubleshooting. Activates the `quire:*` debug
|
|
137
|
-
namespace, Eleventy's `DEBUG=Eleventy*` tracing, and quire-11ty debug-
|
|
138
|
-
level log output. Can be combined with `--verbose`.
|
|
139
|
-
|
|
140
|
-
* `--reduced-motion`:
|
|
141
|
-
Disable spinner animation and line overwriting. Each build phase prints
|
|
142
|
-
on a new line with a static status symbol. Compatible with screen
|
|
143
|
-
readers and terminals that do not support ANSI escape sequences. Can
|
|
144
|
-
also be enabled via the `REDUCED_MOTION` environment variable or the
|
|
145
|
-
`reducedMotion` config setting.
|
|
146
|
-
|
|
147
|
-
* `--color`:
|
|
148
|
-
Force colored output, overriding the `NO_COLOR` environment variable.
|
|
149
|
-
|
|
150
|
-
* `--no-color`:
|
|
151
|
-
Disable colored output.
|
|
152
|
-
|
|
153
|
-
* `--no-pager`:
|
|
154
|
-
Disable paging for long output (e.g., help topics).
|
|
155
|
-
|
|
156
|
-
* `-V`, `--version`:
|
|
157
|
-
Output the quire version number.
|
|
158
|
-
|
|
159
|
-
* `-h`, `--help`:
|
|
160
|
-
Display help for quire or a subcommand.
|
|
161
|
-
|
|
162
|
-
## ENVIRONMENT
|
|
163
|
-
|
|
164
|
-
* `QUIRE_LOG_LEVEL`=_level_:
|
|
165
|
-
Override the log verbosity for quire-11ty output. Valid values are
|
|
166
|
-
`trace`, `debug`, `info`, `warn`, `error`, and `silent`. This is
|
|
167
|
-
normally set automatically by the CLI based on `--quiet`, `--verbose`,
|
|
168
|
-
and `--debug` flags. Setting it manually is useful when running
|
|
169
|
-
quire-11ty outside the CLI.
|
|
170
|
-
|
|
171
|
-
* `REDUCED_MOTION`=_1_:
|
|
172
|
-
Disable spinner animation, equivalent to `--reduced-motion`.
|
|
173
|
-
|
|
174
|
-
* `NO_COLOR`=_1_:
|
|
175
|
-
Disable colored output (respected by chalk). Overridden by `--color`.
|
|
176
|
-
|
|
177
|
-
* `NO_PAGER`=_1_:
|
|
178
|
-
Disable paging for long output, equivalent to `--no-pager`.
|
|
179
|
-
|
|
180
|
-
* `PAGER`=_program_:
|
|
181
|
-
Set the pager program for long output (default: `less`).
|
|
182
|
-
|
|
183
|
-
* `DEBUG`=_pattern_:
|
|
184
|
-
Enable debug output for matching namespaces. Examples:
|
|
185
|
-
|
|
186
|
-
`DEBUG=quire:*` enables all Quire CLI debug output.
|
|
187
|
-
`DEBUG=quire:lib:pdf` enables only PDF module debug output.
|
|
188
|
-
`DEBUG=quire:lib:*` enables all library module debug output.
|
|
189
|
-
`DEBUG=Eleventy*` enables Eleventy internal debug output.
|
|
190
|
-
|
|
191
|
-
## COMMON WORKFLOWS
|
|
192
|
-
|
|
193
|
-
Start a new project and preview it locally:
|
|
194
|
-
|
|
195
|
-
quire new my-book && cd my-book && quire preview
|
|
196
|
-
|
|
197
|
-
Build the site for web deployment:
|
|
198
|
-
|
|
199
|
-
quire clean && quire build
|
|
200
|
-
|
|
201
|
-
Generate all publication formats:
|
|
202
|
-
|
|
203
|
-
quire clean && quire build && quire pdf && quire epub
|
|
204
|
-
|
|
205
|
-
Build and open a PDF in one step:
|
|
206
|
-
|
|
207
|
-
quire pdf --build --open
|
|
208
|
-
|
|
209
|
-
## CONFIGURATION
|
|
210
|
-
|
|
211
|
-
Persistent settings are managed with the `quire settings` command. Common
|
|
212
|
-
settings include:
|
|
213
|
-
|
|
214
|
-
quire settings set verbose true
|
|
215
|
-
quire settings set pdfEngine prince
|
|
216
|
-
quire settings set updateChannel rc
|
|
217
|
-
|
|
218
|
-
Run `quire settings` to see all available settings and their current values.
|
|
219
|
-
Run `quire settings path` to show the configuration file location.
|
|
220
|
-
|
|
221
|
-
## EXIT STATUS
|
|
222
|
-
|
|
223
|
-
* `0`: Success
|
|
224
|
-
* `1`: Command failed (build error, validation error, missing output, etc.)
|
|
225
|
-
|
|
226
|
-
## SEE ALSO
|
|
227
|
-
|
|
228
|
-
Full documentation: <https://quire.getty.edu/docs-v1>
|
|
229
|
-
|
|
230
|
-
Report bugs: <https://github.com/thegetty/quire/issues>
|
|
231
|
-
|
|
232
|
-
Source code: <https://github.com/thegetty/quire>
|