Configuration file v1
--config <file> specifies a UTF-8 JSON file. The top level must be an object, and version must be the number 1. Unknown fields are rejected. Every field except version is optional.
| Field | Type and constraints | Purpose |
|---|---|---|
version |
The number 1 |
Configuration format version |
extensions |
Array of nonempty strings; may be empty | Extensions to load by npm package name or local ESM path |
source |
String matching [a-z0-9]+(?:-[a-z0-9]+)* |
Default source ID; must be registered before it can be used |
output |
Nonempty string | Default download directory |
jobs |
Safe integer greater than or equal to 1 |
Maximum parallel chapters for download |
retries |
Safe integer greater than or equal to 0 |
Additional retry attempts for chapter and download |
- Explicit CLI options take precedence, followed by configuration and then built-in defaults. With no output path,
downloaduses the current working directory. An explicit CLI extension list replaces the entire configured list. Extensions installed withaddstill load. ~and~/inoutputrefer to your home directory. Other relative output paths and local extension paths starting with./or../are resolved relative to the configuration file. Absolute paths remain absolute, and package names follow module resolution rules.- Options apply only to relevant commands; for example,
listdoes not useoutput. All field types and constraints are validated when loading the file. - Credentials are outside the configuration format. An unreadable file, invalid JSON, invalid field, or unsupported version exits with
2.