Running with mojo run
Execute a program from the command line.
From File to Running Program
You have a saved hello.mojo file. To see it work, you launch it from your terminal with the mojo command. 🖥️
The mojo run Command
The simplest way to execute a file is mojo run followed by the file name. Mojo compiles and runs it in one step.
mojo run hello.mojoAll lessons in this course
- Your First .mojo File
- The main Entry Point
- Running with mojo run
- Exploring in the Mojo REPL