Exit from meteor started with --once

When started with --once option, the script that got executed finishes but the process keeps running. Is there a way to exit (programmatically)?

which meteor command have --once argument ?

Thanks for your question - I am now surprised to find almost no references to --once. One is here


But I cannot find the article that described what we are doing to run mass database changes on server side without any HTTP interaction.
Maybe this is no longer supported. If that’s the case, is there another way (apart from “meteor shell”) to run potentially long lasting things on server side (and exit the meteor process when the script is done).

process.exit();
does the trick