Hi Tom,
There isn't a command to specifically build the index and exit at this time. It would look something like this:
After the line "Writing index" the index file is created, the process can be exited and the index file can be copied and used elsewhere.
If you are concerned about this writing with a grid/queue manager system, I'd recommend running in an interactive session so that you can check when to exit. I'll consider adding the index step as a stand alone step in future releases.
Thanks,
-San