Hey! These docs are for version 2.8, which is no longer officially supported. Click here for the latest version, 2.15!






Lists all targets matching the file or target arguments.

Config section: <span style="color: purple"><code>[list]</code></span>

## Basic options

<div style="color: purple"> <h3><code>output_file</code></h3> <code>--list-output-file=&lt;path&gt;</code><br> <code>PANTS_LIST_OUTPUT_FILE</code><br> </div> <div style="padding-left: 2em;"> <span style="color: green">default: <code>None</code></span>

<br>

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

</div> <br>

<div style="color: purple"> <h3><code>sep</code></h3> <code>--list-sep=&lt;separator&gt;</code><br> <code>PANTS_LIST_SEP</code><br> </div> <div style="padding-left: 2em;"> <span style="color: green">default: <code>\n</code></span>

<br>

String to use to separate lines in line-oriented output.

</div> <br>

<div style="color: purple"> <h3><code>documented</code></h3> <code>--[no-]list-documented</code><br> <code>PANTS_LIST_DOCUMENTED</code><br> </div> <div style="padding-left: 2em;"> <span style="color: green">default: <code>False</code></span>

<br>

Print only targets that are documented with a description.

</div> <br>

## Advanced options

None

## Deprecated options

<div style="color: purple"> <h3><code>provides</code></h3> <code>--[no-]list-provides</code><br> <code>PANTS_LIST_PROVIDES</code><br> </div> <div style="padding-left: 2em;"> <span style="color: green">default: <code>False</code></span> <p style="color: darkred">Deprecated, will be removed in version: 2.9.0.dev0.<br>Filter on python distributions instead: ./pants filter --target-type=python_distribution :: </p> <br>

List only targets that provide an artifact.

</div> <br>