WP-CLI
WP-CLI is the official command-line tool for WordPress
| Type | object |
|---|---|
| File match |
wp-cli.local.yml
wp-cli.yml
**/.wp-cli/config.yml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/wp-cli/latest.json |
| Source | https://raw.githubusercontent.com/wp-cli/wp-cli/refs/heads/main/schemas/wp-cli-config.json |
Validate with Lintel
npx @lintel/lintel check
JSON Schema for validating wp-cli.yml configuration files
Properties
JSON Schema reference
Path to the WordPress files.
Perform operation against a remote server over SSH (or a container using scheme of "docker", "docker-compose", "docker-compose-run", "vagrant").
Perform operation against a remote WordPress installation over HTTP.
Pretend request came from given URL. In multisite, this argument is how the target site is specified.
Set the WordPress user.
Skip loading all or some plugins. Note: mu-plugins are still loaded.
[]
Skip loading all or some themes.
[]
Skip loading all installed packages.
Load PHP file before running the command (may be used more than once).
[]
Execute PHP code before running the command (may be used more than once).
[]
Load WordPress in a given context.
(Sub)commands to disable.
[]
Whether to colorize the output.
Show all PHP errors; add verbosity to WP-CLI bootstrap.
Suppress informational messages.
List of Apache Modules that are to be reported as loaded.
[]
Set environment variable values. These will be used as fallbacks when the corresponding environment variable is not set in the shell. All values are converted to strings.
{}
'_' is a special value denoting configuration options for this wp-cli.yml
2 nested properties
Merge subcommand defaults from the upstream config.yml, instead of overriding
Inherit configuration from an arbitrary YAML file