I am definitely not the ideal person to give detailed help with that; I’m just aware that it’s possible and have thought “gee, I should try that sometime” (without having got to the stage of following through on that impulse).
But here is a “how to use Inform from the command-line” thread that contains a project announcement and some discussion.