Skip to content

grog run

grog run

Builds and runs a single target’s binary output.

Synopsis

Builds a single target that produces a binary output and then executes it with the provided arguments. Any arguments after the target are passed directly to the binary being executed.

grog run [flags]

Examples

grog run //path/to/package:target # Run the target
grog run //path/to/package:target arg1 arg2 # Run with arguments
grog run -i //path/to/package:target # Run in the package directory

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

-a, --all-platforms Select all platforms (bypasses platform selectors)
--color string Set color output (yes, no, or auto) (default "auto")
--debug Enable debug logging
--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")
--profile string Select a configuration profile to use
--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

Auto generated by spf13/cobra on 25-Jun-2025