commands.sh

trunk

all

Bundle and serve Rust WASM web applications.

More info →

Options (2)

-p, --portboolean

Build the application and serve it on a specific port

Example: trunk serve {{[-p|--port]}} {{port}}
-d, --distboolean

Build for production at a specific output directory

Example: trunk build --release {{[-d|--dist]}} {{path/to/distribution}}

Examples (5)

Build the application in release mode and serve it locally

trunk serve --release

Build the application and serve it on a specific port

trunk serve [-p|--port] port

Build for production at a specific output directory

trunk build --release [-d|--dist] path/to/distribution

Build with a specific public URL path for hosting in a subdirectory

trunk build --release --public-url /path/to/app_subdirectory

Clean the output directory

trunk clean
made by @shridhargupta | data from tldr-pages