Download the PHP package wp-packagist/wp-cli-global-config-command without Composer
On this page you can find all versions of the php package wp-packagist/wp-cli-global-config-command. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wp-packagist/wp-cli-global-config-command
More information about wp-packagist/wp-cli-global-config-command
Files in wp-packagist/wp-cli-global-config-command
Package wp-cli-global-config-command
Short Description WP-CLI Global Configuration Command.
License MIT
Homepage https://github.com/wp-packagist/wp-cli-global-config-command
Informations about the package wp-cli-global-config-command
WP-CLI Global Configuration Command
WP-CLI has a series of global parameters (e.g. --path=
This config saved in config.yml
or wp-cli.yml
files. [WP-CLI Document].
With this package, you can easily add, delete or edit WP-CLI global parameters in the command line and you no longer need to edit the source settings file.
Table of Contents
- Installation
- Structure
- Commands
- Show list
- Set New Config
- Set new config with the boolean value
- Set new config with the number value
- Set new config with the array value
- Set new config with the null value
- Set new config with empty value
- Set new config with nested array key
- Get Config Value
- Remove Config Value
- Reset Configuration
- Author
- Contributing
Installation
You can install this package with:
Installing this package requires WP-CLI v2 or greater. Update to the latest stable release with
wp cli update
.
Structure
For All commands in this package, you can use --local
flag for process in a local config file current working directory [wp-cli.local.yml].
Commands
List of WP-CLI global config Commands:
Show list
For show list all global parameters:
also for show list of all global config in the current directory:
Set New Config
Structure:
For example, set new path:
Set new config with the boolean value
Set new config with the number value
Set new config with the array value
use JSON Format.
Set new config with the null value
Set new config with space in key
Set new config with empty value
Set new config with nested array key
you can use :
caharacter per level.
example 2:
example 3:
disable plugin install command only in the current directory project.
Get Config Value
Structure:
For example:
or for local config:
Remove Config Value
Structure:
for example:
You can also nested key name in this command.
Reset Configuration
For local current directory config:
Author
- Mehrshad Darzi | PHP Full Stack and WordPress Expert
Contributing
We appreciate you taking the initiative to contribute to this project.
Contributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.
Reporting a bug
Think you’ve found a bug? We’d love for you to help us get it fixed. Before you create a new issue, you should search existing issues to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version.
Creating a pull request
Want to contribute a new feature? Please first open a new issue to discuss whether the feature is a good fit for the project.
Once you've decided to commit the time to seeing your pull request through, please follow our guidelines for creating a pull request to make sure it's a pleasant experience:
- Create a feature branch for each contribution.
- Submit your pull request early for feedback.
- Follow PSR-2 Coding Standards.