CLI command reference
| Command | Arguments and behavior |
|---|---|
atom run FILE [--vm/--jit] [--profile] [--project FILE] [--module-path DIR] [-- ARG ...] |
Executes source or .atomb. VM is default; use one of --vm or --jit. --jit requires the MIR build. Options precede the argument separator. |
atom compile FILE [-o FILE] |
Produces bytecode. Default replaces a final .atom extension with .atomb or appends .atomb. |
atomc FILE [-o FILE] |
Bytecode compiler shortcut. |
atom check FILE |
Compiles source or validates a bytecode file without execution. |
atom fmt FILE |
Writes formatted source to stdout. |
atom disassemble FILE |
Decodes bytecode and writes instruction listing to stdout. |
atom repl |
Starts interactive evaluation or consumes redirected input. |
atom build FILE -o EXE [--strip/--debug] [--project FILE] [--module-path DIR] [--resource NAME=FILE] |
Builds native executable on Linux, macOS or MinGW. Strip and debug are mutually exclusive. |
atom emit-c FILE -o FILE [--project FILE] [--module-path DIR] [--resource NAME=FILE] |
Writes generated C17 and application data. |
atom publish FILE -o EXE [--project FILE] [--module-path DIR] [--resource NAME=FILE] |
Produces a packaged VM executable on Linux and Windows. |
atom version, atom --version |
Reports the release version. |
atom help, atom --help |
Prints syntax enabled in the running CLI build. |
atomls --stdio |
Starts the Atom language server for an editor. |
atomls --version |
Reports the server version and tooling API. |
Repeat --module-path and --resource as needed. Supply one --project and one output destination. Tool success is status 0, operation failure is 1, and CLI usage error is 2. os.exit can set the application process exit status explicitly.