2025-09-14 18:48:49 -06:00
|
|
|
# trunk
|
|
|
|
|
|
|
|
|
|
> Bundle and serve Rust web apps with CI/CD pipelines.
|
|
|
|
|
> More information: <https://docs.trunk.io/references/cli>.
|
|
|
|
|
|
|
|
|
|
- Start local/production server with hot reloading:
|
|
|
|
|
|
|
|
|
|
`trunk serve --port {{port}} --release --proxy-backend {{URL}}`
|
|
|
|
|
|
|
|
|
|
- Build for production at root or subdirectory:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`trunk build --release --dist {{path/to/distribution}} --public-url /{{path/to/app_subdirectory}}`
|
2025-09-14 18:48:49 -06:00
|
|
|
|
|
|
|
|
- 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}}`
|