Scan
Analyze converted markdown files for upload readiness
scan inspects converted markdown files before upload. It reports file sizes, estimated chunk counts, and heading structure, and flags files that exceed the upload limits so you can split them first.
It is read-only — it never modifies or uploads anything.
Usage
Options
| Option | Default | Description |
|---|---|---|
-r, --recursive | true | Scan subdirectories |
--pattern <glob> | **/*.md | Glob pattern for files to scan |
--max-file-size <mb> | 20 | File size threshold (MB) before a file is flagged |
--max-chunks <n> | 500 | Estimated chunk-count threshold before a file is flagged |
--all | false | Show all files, not just ones that exceed limits |
--format <type> | table | Output format: table or json |
Example Output
A file is flagged when it exceeds either --max-file-size (✗ SIZE) or --max-chunks (✗ CHUNKS). For a single file, the scan additionally prints the full heading tree and suggested split points.
Use Case
Run scan after pnpm convert and before pnpm upload to find files that would fail the upload chunk limit. For any flagged file, run split to break it into uploadable parts.
Next Steps
- Split - Break large files into uploadable parts
- Batch Upload - Upload converted files