Skip to content

Load global config from /etc/wp-cli/ if it exists #5088

@drzraf

Description

@drzraf

Usual wp-cli global configuration lives into ~/.wp-cli where, most notably, wp-cli reads aliases.

When multiples users are intended to use wp-cli, it's convenient to manage aliases in one common place.

Environment variable like WP_CLI_CONFIG_PATH, if correctly set and exported by each user, could help, but still, this is what /etc/ is for : provide machine-wide configuration.

Couldn't wp-cli load /etc/wp-cli if it exist (and override its directives with the ones from the home-directory configuration)?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions