HomeDocs
DocsCommunityTestimonialsUsersGitHubTwitterBlogJobsTermsPrivacyCookies
TermsPrivacyCookies
Hey! These docs are for version 2.14, which is no longer officially supported. Click here for the latest version, 2.17!

Options for configuring CLI behavior, such as command line aliases.

Backend:
Config section: [cli]

Basic options

alias

--cli-alias="{'key1': val1, 'key2': val2, ...}"

PANTS_CLI_ALIAS

default: {}

Register command line aliases.

Example:

[cli.alias]
green = "fmt lint check"
all-changed = "--changed-since=HEAD --changed-dependees=transitive"

This would allow you to run ./pants green all-changed, which is shorthand for ./pants fmt lint check --changed-since=HEAD --changed-dependees=transitive.

Notice: this option must be placed in a config file (e.g. pants.toml or pantsrc) to have any effect.


Advanced options

None

Deprecated options

None