Skip to content

grog deps

grog deps

Lists (transitive) dependencies of a target.

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

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 dependencies

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 target

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")
--platform string Force a specific platform in the form os/arch
--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 30-Jun-2025