Version: 1.1.0

mojo run

Compile a Mojo file and run it immediately.

Essentials

  • Arguments after the filename are forwarded to the program.
  • This is the command you want while editing.
  • A compile error stops the run.
  • Use mojo build when you need a binary to ship.

Example

$ mojo run hello.mojo

Keep in mind

Re-running compiles again. There is no hidden stale binary.