Configuration File Option
—config-file
Specify a custom configuration file:import() (JavaScript ESM or JSON).
Input/Output Options
-i, —input
Input file patterns (glob). Can be specified multiple times:global.input
-o, —output
Output directory for generated documentation:global.output
—ignore
Glob patterns to ignore. Can be specified multiple times:global.ignore[]
Generator Options
-t, —target
Target generator(s) to run. Can be specified multiple times:target
Available generators:
json- JSON outputhtml- HTML outputmetadata- Metadata generationlegacy-json- Legacy JSON formatlegacy-html- Legacy HTML format- And more…
Processing Options
-p, —threads
Number of worker threads to use (minimum: 1):threadsDefault: Number of CPU cores
—chunk-size
Number of items to process per worker thread (minimum: 1):chunkSizeDefault:
10
Version and Source Options
-v, —version
Target Node.js version for documentation:global.versionDefault:
process.version
—git-ref
Git reference (branch, tag, or commit SHA):global.refDefault:
'HEAD'
URL Options
-c, —changelog
Changelog URL or file path:global.changelogDefault: Auto-generated based on
repository and ref
—index
Index file URL or path:global.index
Output Options
—minify
Minify output files:global.minifyDefault:
true
Type Mapping Options
—type-map
Type map URL or file path:metadata.typeMap
The type map should be a JSON file mapping type names to documentation links:
Complete CLI Options Reference
| CLI Option | Config Property | Type | Example |
|---|---|---|---|
--config-file <path> | - | string | --config-file config.js |
-i, --input <patterns...> | global.input | string[] | --input src/ |
-o, --output <path> | global.output | string | --output dist/ |
--ignore <patterns...> | global.ignore[] | string[] | --ignore test/ |
-t, --target <generator> | target | string[] | --target json |
-p, --threads <number> | threads | number | --threads 4 |
--chunk-size <number> | chunkSize | number | --chunk-size 10 |
-v, --version <semver> | global.version | string | --version 20.0.0 |
--git-ref <ref> | global.ref | string | --git-ref v20.0.0 |
-c, --changelog <url> | global.changelog | string | --changelog https://... |
--index <url> | global.index | string | --index file://... |
--minify | global.minify | boolean | --minify |
--type-map <url> | metadata.typeMap | string | --type-map file://... |
Configuration Priority
When the same property is set in multiple places, doc-kit uses this precedence (highest to lowest):- CLI options (highest priority)
- Configuration file
- Default values (lowest priority)
Example
- Config File
- CLI Command
- Result