Skip to content

grog build

Loads the user configuration and executes build targets.

Loads the user configuration, checks which targets need to be rebuilt based on file hashes, builds the dependency graph, and executes targets.

grog build [flags]
grog build # Build all targets in the current package
grog build //path/to/package:target # Build a specific target
grog build //path/to/package/... # Build all targets in a package and subpackages
-h, --help help for build
-a, --all-platforms Select all platforms (bypasses platform selectors)
--color string Set color output (yes, no, or auto) (default "auto")
--debug Enable debug logging
--disable-default-shell-flags Do not prepend "set -eu" to target commands
--disable-progress-tracker Disable progress tracking updates
--disable-tea Disable interactive TUI (Bubble Tea)
--enable-cache Enable cache (default true)
--exclude-tag strings Exclude targets by tag. Can be used multiple times. Example: --exclude-tag=foo --exclude-tag=bar
--fail-fast Fail fast on first error
--load-outputs string Level of output loading for cached targets. One of: all, minimal. (default "all")
--log-level string Set log level (trace, debug, info, warn, error)
--platform string Force a specific platform in the form os/arch
--profile string Select a configuration profile to use
--skip-workspace-lock Skip the workspace level lock (DANGEROUS: may corrupt the cache)
--stream-logs Forward all target build/test logs to stdout/-err
--tag strings Filter targets by tag. Can be used multiple times. Example: --tag=foo --tag=bar
-v, --verbose count Set verbosity level (-v, -vv)
Auto generated by spf13/cobra on 2-Dec-2025
Section titled “Auto generated by spf13/cobra on 2-Dec-2025”