Skip to main content
Version: 2.7 (deprecated)

run


pants run [args]

Runs a binary target.

This goal propagates the return code of the underlying executable. Run echo $? to inspect the resulting return code.

Backend: ``

Config section: [run]

Basic options

args

--run-args="[<shell_str>, <shell_str>, ...]", ... -- [<shell_str> [<shell_str> [...]]]
PANTS_RUN_ARGS
pants.toml
[run]
args = [
<shell_str>,
<shell_str>,
...,
]
default: []

Arguments to pass directly to the executed target, e.g. --run-args="val1 val2 --debug"

Advanced options

None

Deprecated options

None