Command-Line Reference
Synopsis
jsonantt [OPTIONS] INPUT OUTPUT
INPUT is a path to a JSON chart description file.
OUTPUT is the destination image path. Supported formats: .png, .pdf, .svg.
Quick reference
Command |
What it does |
|---|---|
|
Gantt chart |
|
Task table image |
|
Gantt chart with “today” line |
|
Gantt chart, max 2 nesting levels |
|
Compare two schedules (chart) |
|
Compare two schedules (table) |
|
Burn-down chart |
|
Burn matrix table |
|
Milestone-only table |
Modes
jsonantt has five mutually-exclusive output modes. The default (no flag) is a Gantt chart.
Flag |
Description |
|---|---|
(none) |
Gantt chart image |
|
Task table image |
|
Funded burn-down chart |
|
Burn matrix table (time buckets × groups) |
|
Side-by-side comparison of two JSON schedules |
Gantt chart
jsonantt project.json chart.png
jsonantt project.json chart.png --dpi 300
jsonantt project.json chart.png --renderdepth 2
jsonantt project.json chart.png --date-line 2025-06-01
jsonantt project.json chart.png --date-line today --date-line-color "#C00000"
Task table
jsonantt -t project.json table.png
jsonantt -t project.json table.png --milestones-only
jsonantt -t project.json table.png --no-milestones
Compare mode
jsonantt planned.json compare.png --compare actual.json
jsonantt -t planned.json compare-table.png --compare actual.json
The first file is the baseline (planned / agreed).
The second file (--compare) is the updated or actual state.
Burn chart
# Monthly burn, grouped by top-level task (depth 0)
jsonantt project.json burn.png --burn \
--burn-field cost --burn-period month --burn-group 0
# Quarterly burn, all leaf tasks
jsonantt project.json burn.png --burn \
--burn-field hours --burn-period quarter --burn-group leaf
# Annual burn, apply a display multiplier (e.g. values in cents → dollars)
jsonantt project.json burn.png --burn \
--burn-field cost --burn-period year --burn-display-factor 0.01
Burn table
jsonantt project.json burn.csv --burn-table \
--burn-field cost --burn-period month --burn-group 0
Option reference
Option |
Default |
Description |
|---|---|---|
|
|
Image resolution (raster formats only). |
|
|
Maximum nesting depth to render. |
|
— |
Draw a vertical line at this date. Accepts the chart’s |
|
|
Hex color for |
|
— |
Enable compare mode. |
|
— |
Table mode only — render only milestone rows. |
|
— |
Table mode only — exclude milestone rows. |
|
|
Numeric task field to aggregate for burn output. |
|
|
Bucket size: |
|
|
Grouping strategy: |
|
|
Display-only numeric multiplier applied to all burn output values (e.g. |
Exit codes
Code |
Meaning |
|---|---|
|
Success |
|
Input file not found, parse error, or render error |