nim Command Examples

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

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

nim compile -r {{path/to/file.nim}}

nim compile -d:release {{path/to/file.nim}}

nim compile -d:release --opt:size {{path/to/file.nim}}

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

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