nim Command Examples

The Nim compiler. Processes, compiles and links Nim language source files. More information: https://nim-lang.org/docs/nimc.html.

nim {{[c|compile]}} {{path/to/file.nim}}

nim {{[c|compile]}} {{[-r|--run]}} {{path/to/file.nim}}

nim {{[c|compile]}} {{[-d|--define]}}:release {{path/to/file.nim}}

nim {{[c|compile]}} {{[-d|--define]}}:release --opt:size {{path/to/file.nim}}

nim doc {{path/to/file.nim}}

nim check {{path/to/file.nim}}