Skip to content

CLI

Binary name: factorio-rs (from crate factorio-rs-cli).

Create a new project in the current directory (or --manifest-path).

Flag Description
--name <NAME> Cargo package name (default: directory name)
--manifest-path <PATH> Project directory or Factorio.toml

Transpile source into output_dir.

Flag Description
--manifest-path <PATH> Project directory or Factorio.toml
--profile <NAME> Default: debug
--debug-level <N> Override profile debug comments
--package Also write {name}_{version}.zip after building

Build then create a Factorio-ready zip at the project root.

Flag Description
--manifest-path <PATH> Project directory or Factorio.toml
--profile <NAME> Default: release
--debug-level <N> Override profile debug comments

Build and copy output_dir to {mods_dir}/{name}_{version}/.

Flag Description
--manifest-path <PATH> Project directory or Factorio.toml
--profile <NAME> Default: debug
--debug-level <N> Override profile debug comments
--open Launch Factorio after installing

Mods directory: FACTORIO_MODS_DIR or ~/.factorio/mods.

Launch Factorio if detected (FACTORIO_PATH, Steam installs, PATH, or Steam protocol). Prefers steam-run when available.