From af14ad74e24b49b78844dd5bc0e4e90fe80bbfa2 Mon Sep 17 00:00:00 2001 From: Hech Date: Tue, 29 Jul 2025 21:31:11 -0700 Subject: [PATCH] trunk: add page (#17376) Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/common/trunk.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/trunk.md diff --git a/pages/common/trunk.md b/pages/common/trunk.md new file mode 100644 index 0000000000..4140a4a62b --- /dev/null +++ b/pages/common/trunk.md @@ -0,0 +1,24 @@ +# trunk + +> Bundle and serve Rust web apps with CI/CD pipelines. +> More information: . + +- Start local/production server with hot reloading: + +`trunk serve --port {{port}} --release --proxy-backend {{URL}}` + +- Build for production at root or subdirectory: + +`trunk build --release --dist {{path/to/distribution}} --public-url {{/path/to/app/subdir}}` + +- List all available tools in the repo and if they are enabled: + +`trunk tools list` + +- Enable/disable a tool at a specific version: + +`trunk tools {{enable|disable}} {{tool}}@{{version}}` + +- Print an action's execution history: + +`trunk actions history {{action}}`