CLI Commands
Reference for the grog CLI.
Commands
Section titled “Commands”groggrog buildgrog build-and-testgrog changesgrog checkgrog cleangrog depsgrog graphgrog infogrog listgrog logsgrog ownersgrog rdepsgrog rungrog taintgrog testgrog tracesgrog traces exportgrog traces listgrog traces prunegrog traces pullgrog traces showgrog traces statsgrog version
Options
Section titled “Options” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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 -h, --help help for grog --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)See also
Section titled “See also”grog build- Loads the user configuration and executes build targets.grog build-and-test- Loads the user configuration and executes build and test targets.grog changes- Lists targets whose inputs have been modified since a given commit.grog check- Loads the build graph and runs basic consistency checks.grog clean- Removes all cached artifacts.grog deps- Lists (transitive) dependencies of a target.grog graph- Outputs the target dependency graph.grog info- Prints information about the grog cli and workspace.grog list- Lists targets by pattern.grog logs- Print the latest log file for the given target.grog owners- Lists targets that own the specified files as inputs.grog rdeps- Lists (transitive) dependants (reverse dependencies) of a target.grog run- Builds and runs one or more targets’ binary outputs.grog taint- Taints targets by pattern to force execution regardless of cache status.grog test- Loads the user configuration and executes test targets.grog traces- View and manage build execution traces.grog version- Print the version info.
grog build
Section titled “grog build”Loads the user configuration and executes build targets.
Synopsis
Section titled “Synopsis”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]Examples
Section titled “Examples” grog build # Build all targets in the current package and subpackages grog build //path/to/package:target # Build a specific target grog build //path/to/package/... # Build all targets in a package and subpackagesOptions
Section titled “Options” -h, --help help for buildOptions inherited from parent commands
Section titled “Options inherited from parent commands” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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)See also
Section titled “See also”grog build-and-test
Section titled “grog build-and-test”Loads the user configuration and executes build and test targets.
Synopsis
Section titled “Synopsis”Loads the user configuration, checks which targets need to be rebuilt based on file hashes, builds the dependency graph, and executes both build and test targets.
grog build-and-test [flags]Examples
Section titled “Examples” grog build-and-test # Build all targets and run all tests in the current package and subpackages grog build-and-test //path/to/package:target # Build or test a specific target grog build-and-test //path/to/package/... # Build all targets and run all tests in a package and subpackagesOptions
Section titled “Options” -h, --help help for build-and-testOptions inherited from parent commands
Section titled “Options inherited from parent commands” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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)See also
Section titled “See also”grog changes
Section titled “grog changes”Lists targets whose inputs have been modified since a given commit.
Synopsis
Section titled “Synopsis”Identifies targets that need to be rebuilt due to changes in their input files since a specified git commit. Can optionally include transitive dependents of changed targets to find all affected targets.
grog changes [flags]Examples
Section titled “Examples” grog changes --since=HEAD~1 # Show targets changed in the last commit grog changes --since=main --dependents=transitive # Show targets changed since main branch, including dependents grog changes --since=v1.0.0 --target-type=test # Show only test targets changed since git tag v1.0.0Options
Section titled “Options” --dependents string Whether to include dependents of changed targets (none or transitive) (default "none") -h, --help help for changes --since string Git ref (commit or branch) to compare against --target-type string Filter targets by type (all, test, no_test, bin_output) (default "all")Options inherited from parent commands
Section titled “Options inherited from parent commands” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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)See also
Section titled “See also”grog check
Section titled “grog check”Loads the build graph and runs basic consistency checks.
Synopsis
Section titled “Synopsis”Loads the build graph and performs the same consistency checks as ‘grog build’ without actually building anything.
grog check [flags]Examples
Section titled “Examples” grog check # Validate the build graph for consistency issuesOptions
Section titled “Options” -h, --help help for checkOptions inherited from parent commands
Section titled “Options inherited from parent commands” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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)See also
Section titled “See also”grog clean
Section titled “grog clean”Removes all cached artifacts.
Synopsis
Section titled “Synopsis”Removes cached artifacts from the workspace or the entire grog cache. By default, only the workspace-specific cache is cleaned. Use the —expunge flag to remove all cached artifacts.
grog clean [flags]Examples
Section titled “Examples” grog clean # Clean the workspace cache grog clean --expunge # Clean the entire grog cacheOptions
Section titled “Options” -e, --expunge Expunge all cached artifacts -h, --help help for cleanOptions inherited from parent commands
Section titled “Options inherited from parent commands” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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)See also
Section titled “See also”grog deps
Section titled “grog deps”Lists (transitive) dependencies of a target.
Synopsis
Section titled “Synopsis”Lists the direct or transitive dependencies of a specified target. By default, only direct dependencies are shown. Use the —transitive flag to show all transitive dependencies. Dependencies can be filtered by target type using the —target-type flag.
grog deps [flags]Examples
Section titled “Examples” grog deps //path/to/package:target # Show direct dependencies grog deps -t //path/to/package:target # Show transitive dependencies grog deps --target-type=test //path/to/package:target # Show only test dependenciesOptions
Section titled “Options” -h, --help help for deps --target-type string Filter targets by type (all, test, no_test, bin_output) (default "all") -t, --transitive Include all transitive dependencies of the targetOptions inherited from parent commands
Section titled “Options inherited from parent commands” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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)See also
Section titled “See also”grog graph
Section titled “grog graph”Outputs the target dependency graph.
Synopsis
Section titled “Synopsis”Visualizes the dependency graph of targets in various formats. Supports tree, JSON, and Mermaid diagram output formats. By default, only direct dependencies are shown.
grog graph [flags]Examples
Section titled “Examples” grog graph # Show dependency tree for all targets grog graph //path/to/package:target # Show dependencies for a specific target grog graph -o mermaid //path/to/package:target # Output as Mermaid diagram grog graph -t //path/to/package:target # Include transitive dependenciesOptions
Section titled “Options” -h, --help help for graph -m, --mermaid-inputs-as-nodes Render inputs as nodes in mermaid graphs. -o, --output string Output format. One of: tree, json, mermaid. (default "tree") -t, --transitive Include all transitive dependencies of the selected targets.Options inherited from parent commands
Section titled “Options inherited from parent commands” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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)See also
Section titled “See also”grog info
Section titled “grog info”Prints information about the grog cli and workspace.
Synopsis
Section titled “Synopsis”Displays detailed information about the grog CLI configuration, workspace settings, and cache statistics.
grog info [flags]Examples
Section titled “Examples” grog info # Show all grog information grog info --version # Show only the version informationOptions
Section titled “Options” -h, --help help for infoOptions inherited from parent commands
Section titled “Options inherited from parent commands” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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)See also
Section titled “See also”grog list
Section titled “grog list”Lists targets by pattern.
Synopsis
Section titled “Synopsis”Lists targets that match the specified pattern. If no pattern is specified only lists the targets in the current workspace. Can filter targets by type using the —target-type flag.
grog list [flags]Examples
Section titled “Examples” grog list # List all targets in the current package grog list //path/to/package:target # List a specific target grog list //path/to/package/... # List all targets in a package and subpackages grog list --target-type=test # List only test targetsOptions
Section titled “Options” -h, --help help for list --target-type string Filter targets by type (all, test, no_test, bin_output) (default "all")Options inherited from parent commands
Section titled “Options inherited from parent commands” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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)See also
Section titled “See also”grog logs
Section titled “grog logs”Print the latest log file for the given target.
Synopsis
Section titled “Synopsis”Displays the contents of the most recent log file for a specified target. Use the —path-only flag to only print the path to the log file instead of its contents.
grog logs [flags]Examples
Section titled “Examples” grog logs //path/to/package:target # Show log contents grog logs -p //path/to/package:target # Show only the log file pathOptions
Section titled “Options” -h, --help help for logs -p, --path-only Only print out the path of the target logsOptions inherited from parent commands
Section titled “Options inherited from parent commands” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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)See also
Section titled “See also”grog owners
Section titled “grog owners”Lists targets that own the specified files as inputs.
Synopsis
Section titled “Synopsis”Identifies and lists all targets that include the specified files as inputs. This is useful for finding which targets will be affected by changes to specific files.
grog owners [flags]Examples
Section titled “Examples” grog owners path/to/file.txt # Find targets that use a specific file grog owners path/to/file1.txt path/to/file2.txt # Find targets that use any of the specified filesOptions
Section titled “Options” -h, --help help for ownersOptions inherited from parent commands
Section titled “Options inherited from parent commands” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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)See also
Section titled “See also”grog rdeps
Section titled “grog rdeps”Lists (transitive) dependants (reverse dependencies) of a target.
Synopsis
Section titled “Synopsis”Lists the direct or transitive dependants (reverse dependencies) of a specified target. By default, only direct dependants are shown. Use the —transitive flag to show all transitive dependants. Dependants can be filtered by target type using the —target-type flag.
grog rdeps [flags]Examples
Section titled “Examples” grog rdeps //path/to/package:target # Show direct dependants grog rdeps -t //path/to/package:target # Show transitive dependants grog rdeps --target-type=test //path/to/package:target # Show only test dependantsOptions
Section titled “Options” -h, --help help for rdeps --target-type string Filter targets by type (all, test, no_test, bin_output) (default "all") -t, --transitive Include all transitive dependants of the targetOptions inherited from parent commands
Section titled “Options inherited from parent commands” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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)See also
Section titled “See also”grog run
Section titled “grog run”Builds and runs one or more targets’ binary outputs.
Synopsis
Section titled “Synopsis”Builds targets that produce binary outputs and then executes them with the provided arguments. Use ”—” to separate the list of targets from the arguments passed to the binaries.
grog run [flags]Examples
Section titled “Examples” grog run //path/to/package:target -- arg1 arg2 # Run with arguments grog run //path/to/package:target //path:other -- # Run multiple targets grog run -i //path/to/package:target -- arg1 arg2 # Run in the package directoryOptions
Section titled “Options” -h, --help help for run -i, --in-package Run the target in the package directory where it is defined.Options inherited from parent commands
Section titled “Options inherited from parent commands” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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)See also
Section titled “See also”grog taint
Section titled “grog taint”Taints targets by pattern to force execution regardless of cache status.
Synopsis
Section titled “Synopsis”Marks specified targets as “tainted”, which forces them to be rebuilt on the next build command, regardless of whether they would normally be considered up-to-date according to the cache. This is useful when you want to force a rebuild of specific targets.
grog taint [flags]Examples
Section titled “Examples” grog taint //path/to/package:target # Taint a specific target grog taint //path/to/package/... # Taint all targets in a package and subpackages grog taint //path/to/package:* # Taint all targets in a packageOptions
Section titled “Options” -h, --help help for taintOptions inherited from parent commands
Section titled “Options inherited from parent commands” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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)See also
Section titled “See also”grog test
Section titled “grog test”Loads the user configuration and executes test targets.
Synopsis
Section titled “Synopsis”Loads the user configuration, checks which targets need to be rebuilt based on file hashes, builds the dependency graph, and executes test targets.
grog test [flags]Examples
Section titled “Examples” grog test # Run all tests in the current package and subpackages grog test //path/to/package:test # Run a specific test grog test //path/to/package/... # Run all tests in a package and subpackagesOptions
Section titled “Options” -h, --help help for testOptions inherited from parent commands
Section titled “Options inherited from parent commands” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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)See also
Section titled “See also”grog traces
Section titled “grog traces”View and manage build execution traces.
Synopsis
Section titled “Synopsis”View, analyze, and export build execution traces for performance analysis and dashboard integration.
Options
Section titled “Options” -h, --help help for tracesOptions inherited from parent commands
Section titled “Options inherited from parent commands” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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)See also
Section titled “See also”groggrog traces export- Export traces for dashboard integration.grog traces list- List recent build traces.grog traces prune- Delete traces older than a specified duration.grog traces pull- Download remote traces to local cache for querying.grog traces show- Show details of a specific trace.grog traces stats- Show aggregate statistics across recent traces.
grog traces export
Section titled “grog traces export”Export traces for dashboard integration.
grog traces export [flags]Examples
Section titled “Examples” grog traces export --format=jsonl grog traces export --format=otel --output traces.jsonOptions
Section titled “Options” --format string Export format: jsonl or otel (default "jsonl") -h, --help help for export --limit int Maximum number of traces to export (0 = all) --output string Output file (default: stdout) --since string Only export traces after this date (YYYY-MM-DD)Options inherited from parent commands
Section titled “Options inherited from parent commands” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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)See also
Section titled “See also”grog traces- View and manage build execution traces.
grog traces list
Section titled “grog traces list”List recent build traces.
grog traces list [flags]Examples
Section titled “Examples” grog traces list grog traces list --limit 50 grog traces list --since 2026-03-01 --command build grog traces list --failures-onlyOptions
Section titled “Options” --command string Filter by command type (build, test, run) --failures-only Only show traces with failures -h, --help help for list --limit int Maximum number of traces to display (default 20) --since string Only show traces after this date (YYYY-MM-DD)Options inherited from parent commands
Section titled “Options inherited from parent commands” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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)See also
Section titled “See also”grog traces- View and manage build execution traces.
grog traces prune
Section titled “grog traces prune”Delete traces older than a specified duration.
grog traces prune [flags]Examples
Section titled “Examples” grog traces prune --older-than 30d grog traces prune --older-than 7dOptions
Section titled “Options” -h, --help help for prune --older-than string Delete traces older than this duration (e.g. 30d, 72h) (default "30d")Options inherited from parent commands
Section titled “Options inherited from parent commands” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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)See also
Section titled “See also”grog traces- View and manage build execution traces.
grog traces pull
Section titled “grog traces pull”Download remote traces to local cache for querying.
grog traces pull [flags]Examples
Section titled “Examples” grog traces pullOptions
Section titled “Options” -h, --help help for pullOptions inherited from parent commands
Section titled “Options inherited from parent commands” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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)See also
Section titled “See also”grog traces- View and manage build execution traces.
grog traces show
Section titled “grog traces show”Show details of a specific trace.
grog traces show <trace-id> [flags]Examples
Section titled “Examples” grog traces show a1b2c3d4 grog traces show a1b2c3d4 --sort-by command --top 10Options
Section titled “Options” -h, --help help for show --sort-by string Sort targets by: total, command, queue, hash (default "total") --top int Show only the N slowest targets (0 = all)Options inherited from parent commands
Section titled “Options inherited from parent commands” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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)See also
Section titled “See also”grog traces- View and manage build execution traces.
grog traces stats
Section titled “grog traces stats”Show aggregate statistics across recent traces.
grog traces stats [flags]Examples
Section titled “Examples” grog traces stats grog traces stats --command-type build grog traces stats --ci true grog traces stats --detailed --command-type testOptions
Section titled “Options” --ci string Filter by CI origin (true, false, all) (default "all") --command-type string Filter by build command type (build, test, all) (default "all") --detailed Load full traces for per-target analysis -h, --help help for stats --limit int Number of recent traces to aggregate (default 20)Options inherited from parent commands
Section titled “Options inherited from parent commands” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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)See also
Section titled “See also”grog traces- View and manage build execution traces.
grog version
Section titled “grog version”Print the version info.
Synopsis
Section titled “Synopsis”Displays the current version of the grog CLI tool.
grog version [flags]Examples
Section titled “Examples” grog version # Show the version informationOptions
Section titled “Options” -h, --help help for versionOptions inherited from parent commands
Section titled “Options inherited from parent commands” -a, --all-platforms Select all platforms (bypasses platform selectors) --async-cache-writes Defer cache writes to background I/O workers during the build (default true) --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)