rx has a deliberately small command surface. All commands support the global flags --quiet (-q), --verbose (-v), and --profile <name>.
Command Description
rx initGenerate rx.toml with smart defaults
rx init --migrateAuto-detect project settings from existing tools
rx init --ciAlso generate .github/workflows/ci.yml
rx configShow resolved configuration
Command Description
rx buildBuild with fast linker
rx build --releaseRelease build
rx build --target <triple>Cross-compile for a target triple
rx run [-- args...]Build and run the binary
rx checkType-check without codegen (fast feedback)
rx cleanClean build artifacts
rx clean --gcClean local target/ and GC global cache
rx clean --allClean all workspace members
Command Description
rx testRun tests (nextest if available)
rx test --affectedOnly test changed packages + their dependents (single invocation, repeated -p)
rx test --affected --base mainChanged since a specific branch
rx lintLint with clippy (strict defaults)
rx fmtFormat code with rustfmt
rx fixAuto-fix everything (compiler + clippy + fmt)
rx ciRun full pipeline: fmt, clippy, test, build
rx ci --affectedRun the pipeline against affected packages only
Command Description
rx run <task>Run a task and its depends-on graph (built-ins: fmt, lint, test, build, check, ci)
rx run <task> --affectedScope the task to affected packages (RX_AFFECTED_PACKAGES for shell tasks)
rx run <task> -- <args>Append extra args to the task’s shell command
rx runList available tasks
Command Description
rx graphShow the workspace dependency graph
rx ws listList all workspace members
rx ws run <cmd>Run one cargo <cmd> --workspace from the root
rx ws exec <cmd>Run a shell command in each member directory
Command Description
rx cache status/gc/purgeManage the opt-in global artifact cache
rx doctorCheck your development environment
rx stats show/clearView or clear build time statistics
rx completions <shell>Generate shell completions
The 0.2 scope reset removed the toolchain-manager surface (new, pkg, toolchain, release, publish, audit, outdated, tree, deps, doc, size, bloat, coverage, bench, expand, compat, upgrade, self-update, sbom, telemetry, plugin, registry, lockfile, env, insights, explain, manpage, sandbox, watch, daemon, worker, test-smart, test-advanced). rx script was folded into rx run, and rx run no longer builds-and-executes your binary — use cargo run or define a task. Use the dedicated tools directly (rustup, cargo and its plugins, sccache, cargo-release, …) or invoke them from a configured rx task. See PRODUCT.md for the reasoning.