CLI
The framework ships the swift-rust binary for the dev server, builds, and scaffolding. UI components are added with a separate swift-rust-ui binary from the @swift-rust/ui package, so the two never collide when installed together.
swift-rust dev
Start the dev server with hot module replacement, error overlay, and request timing.
terminal
bunx swift-rust dev
bunx swift-rust dev --port 4000
bunx swift-rust dev --openswift-rust build
Build for production. Produces a single binary.
terminal
bunx swift-rust build
bunx swift-rust build --target aarch64-unknown-linux-muslswift-rust start
Start the production server from a built binary.
terminal
bunx swift-rust start --port 3210swift-rust-ui add
Add shadcn-style UI components to your project.
terminal
bunx @swift-rust/ui add button card input
bunx @swift-rust/ui add --all
bunx @swift-rust/ui add dialog --dir src/components/ui --overwriteswift-rust-ui init
Initialize the UI registry in an existing project.
terminal
bunx @swift-rust/ui init
bunx @swift-rust/ui init --dir src/libswift-rust-ui list
List all 35 available UI components.