commands.sh

trunk

all

Run linters, formatters, and security analyzers on code.

More info →

Examples (7)

Initialize trunk in a repository

Run all applicable linters and formatters on changed files

trunk check

Run linters and formatters on specific files

trunk check path/to/file1 path/to/file2 ...

Format files in place

List all available tools and their status

trunk tools list

Enable a tool at a specific version

trunk tools enable tool@version

Print an action's execution history

trunk actions history action
made by @shridhargupta | data from tldr-pages