CLI Reference
Commands
infr check
Type-check files without producing output.
infr check script.infr # Check a single file
infr check src/ # Check all .infr files in a directory
Exits with code 0 if no errors, non-zero otherwise. Warnings do not cause a non-zero exit.
infr build
Type-check and transpile to R.
infr build script.infr # Emit script.R alongside script.infr
infr build src/ -o R/ # Batch transpile directory to output dir
infr watch
Watch mode — re-checks files on every save.
infr watch src/
infr init
Initialize a new Infr project with a default infr.toml configuration file.
infr init
infr lsp
Start the Language Server Protocol server. Used by editor extensions.
infr lsp
Communicates over stdio. See Editor Setup for configuration.