How to send plantuml description to the plantuml server from command line?

0 votes
asked Sep 13 in Question / help by dragondive (300 points)

I want to use the PlantUML server to generate a diagram from a text file. I want to use only the command line and avoid writing code in another programming language, if possible. As suggested in this question How to curl to plantuml-server - PlantUML Q&A, I tried the following with a standard "Alice -> Bob: hello" diagram:

cat hello.puml |  curl -v -H "Content-Type: text/plain" --data-binary @- --output - > out.png

But this doesn't generate a valid diagram. What did I miss here? 

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.