LogoLogo
SlackLogin
  • Overview
    • Welcome
  • Setup & Configuration
    • Connecting to Trunk
    • Managing Your Organization
      • GitHub App Permissions
  • Integration with Slack
  • Flaky Tests (Beta)
    • Overview
    • Get Started
      • Test Frameworks
        • Android
        • Bazel
        • Behave
        • cargo-nextest
        • Cypress
        • Dart Test
        • Go
        • GoogleTest
        • Gradle
        • Jasmine
        • Jest
        • Karma
        • Maven
        • minitest
        • Mocha
        • Nightwatch
        • NUnit
        • Pest
        • PHPUnit
        • Playwright
        • Pytest
        • Robot Framework
        • RSpec
        • Swift Testing
        • Vitest
        • XCTest
        • Other Test Frameworks
      • CI Providers
        • Azure DevOps Pipelines
        • BitBucket Pipelines
        • Buildkite
        • CircleCI
        • Drone CI
        • GitHub Actions
        • GitLab
        • Jenkins
        • Semaphore CI
        • TeamCity
        • Travis CI
        • Other CI Providers
    • Dashboard
    • Flaky Test Detection
    • Quarantining
    • PR Comments
    • Ticketing Integrations
      • Jira Integration
      • Linear Integration
      • Other Ticketing Platforms
    • Webhooks
      • Slack Integration
      • Microsoft Teams Integration
      • GitHub Issues Integration
      • Linear Integration
    • Uploader CLI Reference
  • Merge Queue
    • Overview
    • How does it work?
    • Setup
      • Quick Start
      • Settings
      • Integration for Slack
    • Concepts and Optimizations
      • Predictive Testing
      • Optimistic Merging
      • Pending Failure Depth
      • Anti-Flake Protection
      • Batching
      • Parallel Queues
        • Bazel
        • Nx
        • API
      • FAQ
    • Priority
    • Managing Merge Queue
      • Using the Merge UI
      • Metrics
      • Command Line
    • Webhooks
    • Reference
  • Code Quality
    • Overview
    • Why Metalinters?
      • How does it work?
      • Why Code Quality?
    • Setup & Installation
      • Initialize Trunk
      • Local Linting
      • Linting in CI
      • Nightly Report (Deprecated)
    • IDE Integration
      • VSCode
      • Neovim
      • GitHub Codespaces
    • Linters
      • Supported Linters
        • Actionlint
        • Ansible-lint
        • Autopep8
        • Bandit
        • Biome
        • Black
        • Brakeman
        • buf
        • Buildifier
        • cfnlint
        • Checkov
        • circleci
        • ClangFormat
        • clang-tidy
        • Clippy
        • cmake-format
        • codespell
        • cspell
        • cue-fmt
        • dart
        • deno
        • Detekt
        • djlint
        • dotenv-linter
        • dotnet-format
        • dustilock
        • ESLint
        • Flake8
        • git-diff-check
        • Gitleaks
        • Gofmt
        • gofumpt
        • goimports
        • gokart
        • golangci-lint
        • golines
        • google-java-format
        • graphql-schema-linter
        • hadolint
        • haml-lint
        • isort
        • iwyu
        • ktlint
        • kube-linter
        • markdown-link-check
        • markdown-table-prettify
        • Markdownlint
        • markdownlint-cli2
        • mypy
        • nancy
        • nixpkgs-fmt
        • opa
        • OSV-Scanner
        • Oxipng
        • perlcritic
        • perltidy
        • php-cs-fixer
        • phpstan
        • pmd
        • pragma-once
        • pre-commit-hooks
        • Prettier
        • prisma
        • psscriptanalyzer
        • Pylint
        • pyright
        • regal
        • remark-lint
        • renovate
        • rome
        • rubocop
        • Ruff
        • rufo
        • rustfmt
        • scalafmt
        • semgrep
        • ShellCheck
        • shfmt
        • sort-package-json
        • sourcery
        • sql-formatter
        • SQLFluff
        • sqlfmt
        • squawk
        • standardrb
        • stringslint
        • stylelint
        • stylua
        • SVGO
        • swiftformat
        • swiftlint
        • taplo
        • Terraform
        • terragrunt
        • terrascan
        • TFLint
        • tfsec
        • tofu
        • Trivy
        • Trufflehog
        • txtpbfmt
        • vale
        • Yamllint
        • yapf
      • Run Linters
      • Manage Linters
      • Configure Linters
      • Ignoring Issues and Files
      • Custom Linters
      • Shared Configs
      • Upgrades
    • Debugging
    • Licensing
  • CLI & API References
    • CLI Reference
      • Install
      • Getting Started
        • Code Quality
        • Merge Queue
        • Flaky Tests
        • Tools
        • Actions
          • Git Hooks
        • Announce
      • Compatibility
      • Caching
      • Commands Reference
        • Code Quality
        • Actions
        • Merge
      • Configuration
        • Plugins
          • Share Config Between Codebases
          • Exporting Linter Configs
        • Runtimes
        • Tools
        • Lint
          • Definitions
          • Commands
          • Output
          • Output Parsing
          • Files and Caching
          • Dependencies
          • Auto-Enable
        • Actions
          • Notifications
          • Logging and Troubleshooting
        • Merge
        • Telemetry
        • Per User Overrides
    • API Reference
      • Flaky Tests
      • Merge Queue
      • Webhooks Reference
  • Pricing & Security
    • Security
  • Billing
  • Community & Support
  • Links
    • Open App
    • Slack Community
    • Changelog
    • Feature Requests
On this page
  • Trunk Actions
  • Trunk Actions Run
  • Trunk Actions History
  • Trunk Actions List
  • Trunk Actions Enable
  • Trunk Actions Disable
  • Trunk Shellhooks
  • Trunk Git Hooks
  • Trunk show announcements since a commit
  • Trunk show announcements post-merge
  • Trunk show announcements pre-rebase
  • Trunk show announcements post-checkout
Edit on GitHub
  1. CLI & API References
  2. CLI Reference
  3. Commands Reference

Actions

Trunk Actions

trunk actions: Workflow automation for your repo.

Usage example

trunk actions [options] [subcommand]

Options

  • --version: The version

  • --monitor: Enable the trunk daemon to monitor file changes in your repo

  • --ci: Run in continuous integration mode

  • --no-progress: Don't show progress updates

  • --ci-progress: Rate limit progress updates to every 30s (implied by --ci)

  • --action_timeout: Timeout for downloads, lint runs, etc

  • -v, --verbose: Output details about what's happening under the hood

  • --color: Enable/disable color output

Trunk Actions Run

trunk actions run: Run a specified trunk action. Usage bash

trunk actions run [options]

Options

  • --nolog: Don't create a log file for the action run

  • --version: The version

  • --monitor: Enable the trunk daemon to monitor file changes in your repo

  • --ci: Run in continuous integration mode

  • --no-progress: Don't show progress updates

  • --ci-progress: Rate limit progress updates to every 30s (implied by --ci)

  • --action_timeout: Timeout for downloads, lint runs, etc.

  • -v, --verbose: Output details about what's happening under the hood

  • --color: Enable/disable color output

  • --name <action_name>: Specify the name of the Trunk action to be executed

  • --branch <branch_name>: Run the action on a specific branch

  • --retry <number>: Number of times to retry the action on failure

Trunk Actions History

trunk actions history: View the history of Trunk actions.

Usage Example

trunk actions history [options]

Options

  • --count: Number of logs to show

  • --version: The version

  • --monitor: Enable the trunk daemon to monitor file changes in your repo

  • --ci: Run in continuous integration mode

  • --no-progress: Don't show progress updates

  • --ci-progress: Rate limit progress updates to every 30s (implied by --ci)

  • --action_timeout: Timeout for downloads, lint runs, etc.

  • -v, --verbose: Output details about what's happening under the hood

  • --color: Enable/disable color output

Trunk Actions List

trunk actions list: List all Trunk actions.

Usage Example

trunk actions list [options]

Options

  • --version: The version

  • --monitor: Enable the trunk daemon to monitor file changes in your repo

  • --ci: Run in continuous integration mode

  • --no-progress: Don't show progress updates

  • --ci-progress: Rate limit progress updates to every 30s (implied by --ci)

  • --action_timeout: Timeout for downloads, lint runs, etc.

  • -v, --verbose: Output details about what's happening under the hood

  • --color: Enable/disable color output

Trunk Actions Enable

trunk actions enable: Enable a specified Trunk action.

Usage Example

trunk actions enable [options]

Options

  • --version: The version

  • --monitor: Enable the trunk daemon to monitor file changes in your repo

  • --ci: Run in continuous integration mode

  • --no-progress: Don't show progress updates

  • --ci-progress: Rate limit progress updates to every 30s (implied by --ci)

  • --action_timeout: Timeout for downloads, lint runs, etc.

  • -v, --verbose: Output details about what's happening under the hood

  • --color: Enable/disable color output

Trunk Actions Disable

trunk actions disable: Disable a specified Trunk action.

Usage Example

trunk actions disable [options]

Options

  • --version: The version

  • --monitor: Enable the trunk daemon to monitor file changes in your repo

  • --ci: Run in continuous integration mode

  • --no-progress: Don't show progress updates

  • --ci-progress: Rate limit progress updates to every 30s (implied by --ci)

  • --action_timeout: Timeout for downloads, lint runs, etc.

  • -v, --verbose: Output details about what's happening under the hood

  • --color: Enable/disable color output

Trunk Shellhooks

trunk shellhooks: Let Trunk manage your shell hooks similar to direnvs trunk shellhooks install <shell_name>

Usage Example

trunk shellhooks install <shell_name> [options]

Trunk Git Hooks

trunk git-hooks sync: Sync githooks with what's defined in trunk.yaml

Usage Example

trunk git-hook sync [options]

Trunk show announcements since a commit

trunk show-announcements since: Show announcements since a specified commit

Example Usage:

trunk show-announcements since --commit abc123

Options:

  • --color: Enable/disable color output

  • -v, --verbose: Output details about what's happening under the hood

  • --action_timeout: Timeout for downloads, lint runs, etc.

  • --ci-progress: Rate limit progress updates to every 30s (implied by --ci)

  • --no-progress: Don't show progress updates

  • --ci: Run in continuous integration mode

  • --monitor: Enable the trunk daemon to monitor file changes in your repo

  • --version: The version

Trunk show announcements post-merge

trunk show-announcements post-merge: Run on git pull/merge, usually run by a git-hook and not directly.

Example Usage:

trunk show-announcements post-merge --verbose

Trunk show announcements pre-rebase

trunk show-announcements pre-rebase: Run on git pre-rebase, usually run by a git-hook and not directly.

Example Usage:

trunk show-announcements pre-rebase [options] [branch-refs...]

Trunk show announcements post-checkout

trunk show-announcements post-checkout: Run on git checkout/switch, usually run by a git-hook and not directly.

Example Usage:

trunk show-announcements post-checkout [options] [branch-refs...]

Last updated 3 months ago