Mermaid JS supports Gantt charts.
It is reasonable to want to be able to make Gantt charts though without having to run a website and instead use a command line utility.
This can be a pain, so I made a Docker image that has mermaid and mermaid.cli installed so that you can use the image as the utility.
As an example, to make the example that is shown on the Mermaid JS website (included here as example.mmd) we would first pull the image from Docker Hub
docker pull matthewfeickert/mermaid-cli
and then run it at the command line to make a .PNG file Gantt chart
docker run --rm -v "${PWD}":/home/node/data matthewfeickert/mermaid-cli -i example.mmd -o example.png
This Gist also has a Makefile to help script this more usefully.