Version: 1.1.0

mojo

The mojo tool builds, runs, debugs, formats, and documents Mojo code.

Essentials

  • mojo run file.mojo compiles and executes a file.
  • mojo build writes an executable and does not run it.
  • mojo repl starts an interactive session.
  • Pass --help to any subcommand for its flags.
  • The binary on your PATH should match the package you installed.

Example

$ mojo --help

Keep in mind

If two environments both install mojo, the first one on PATH wins.