I was really hoping this would have been a CLI command
As others have mentioned, check out phoon.
https://www.acme.com/software/phoon/