./pants peek [args]

Display BUILD target info

Config section: [peek]

Basic options

output_file

--peek-output-file=<path>
PANTS_PEEK_OUTPUT_FILE
default: None

Output the goal's stdout to this file. If unspecified, outputs to stdout.


output

--peek-output=<OutputOptions>
PANTS_PEEK_OUTPUT
one of: raw, json
default: json

Which output style peek should use: json will show each target as a seperate entry, whereas raw will simply show the original non-normalized BUILD files.


exclude_defaults

--[no-]peek-exclude-defaults
PANTS_PEEK_EXCLUDE_DEFAULTS
default: False

Whether to leave off values that match the target-defined default values when using json output.


Advanced options

None

Deprecated options

None

Related subsystems

peek, protoc, python-infer, shell-setup


Did this page help you?