Getting Started
This part covers the runtime environment and a quick syntax reference.
Installation and the Command LineMushScript programs are compiled and run by the mush command-line tool; confirm it is on your PATH and you are ready to start.
Your First ProgramCreate an empty directory and, inside it, a text file named helloworld.ms. MushScript program code lives in UTF-8 text files with the .ms extension.
main and Exit Codesmain is a program's entry point and comes in four forms, chosen by whether the program needs command-line arguments, a return value, or both: no return value, an exit code, command-line arguments, and the combination.
Syntax at a GlanceEvery piece of syntax in this article has a full explanation in its corresponding chapter; this page is only a quick reference, so follow through to the chapters for the complete content.
Last updated on October 11, 2026
