CmdID

CmdID / Commands

nim

The Nim compiler. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

The Nim compiler. Process, compile, and link Nim language source files.

Compile a source file

nim [c path/to/file.nimIdentify

Compile and run a source file

nim [c --run path/to/file.nimIdentify

Compile a source file with release optimizations enabled

nim [c --define:release path/to/file.nimIdentify

Build a release binary optimized for low file size

nim [c --define:release --opt:size path/to/file.nimIdentify

Generate HTML documentation for a module (output will be placed in the current directory)

nim doc path/to/file.nimIdentify

Check a file for syntax and semantics

nim check path/to/file.nimIdentify