{"id":14955186,"url":"https://github.com/wp-packagist/wp-cli-global-config-command","last_synced_at":"2026-01-21T10:36:09.508Z","repository":{"id":57082059,"uuid":"183907899","full_name":"wp-packagist/wp-cli-global-config-command","owner":"wp-packagist","description":"WP-CLI Global Configuration Command.","archived":false,"fork":false,"pushed_at":"2021-07-20T03:08:34.000Z","size":45,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-19T01:41:45.644Z","etag":null,"topics":["command","command-line","command-line-tool","wordpress","wordpress-development","wp-cli","wp-cli-command","wp-cli-config","wp-cli-package"],"latest_commit_sha":null,"homepage":"https://wp-packagist.github.io/wp-cli-global-config-command/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wp-packagist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-28T12:52:13.000Z","updated_at":"2024-09-23T10:45:39.000Z","dependencies_parsed_at":"2022-08-24T14:42:30.849Z","dependency_job_id":null,"html_url":"https://github.com/wp-packagist/wp-cli-global-config-command","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/wp-packagist/wp-cli-global-config-command","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-packagist%2Fwp-cli-global-config-command","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-packagist%2Fwp-cli-global-config-command/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-packagist%2Fwp-cli-global-config-command/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-packagist%2Fwp-cli-global-config-command/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wp-packagist","download_url":"https://codeload.github.com/wp-packagist/wp-cli-global-config-command/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-packagist%2Fwp-cli-global-config-command/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28631936,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command","command-line","command-line-tool","wordpress","wordpress-development","wp-cli","wp-cli-command","wp-cli-config","wp-cli-package"],"created_at":"2024-09-24T13:10:37.806Z","updated_at":"2026-01-21T10:36:09.491Z","avatar_url":"https://github.com/wp-packagist.png","language":"PHP","readme":"# WP-CLI Global Configuration Command\n\n[![Build Status](https://travis-ci.com/wp-packagist/wp-cli-global-config-command.svg?branch=master)](https://travis-ci.com/wp-packagist/wp-cli-global-config-command) ![GitHub](https://img.shields.io/github/license/wp-packagist/wp-cli-global-config-command) ![Packagist Version](https://img.shields.io/packagist/v/wp-packagist/wp-cli-global-config-command)\n\nWP-CLI has a series of global parameters (e.g. --path=\u003cpath\u003e and --user=\u003cuser\u003e) which work with all commands.\n\nThis config saved in `config.yml` or `wp-cli.yml` files. [[WP-CLI Document]](https://make.wordpress.org/cli/handbook/config/).\n\nWith 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.\n\n\u003cbr\u003e\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/wp-packagist/wp-cli-global-config-command/master/wp-cli-logo.png\" alt=\"WP-CLI logo\"\u003e\n\u003c/p\u003e\n  \n## Table of Contents\n  \n- [Installation](#installation)\n- [Structure](#structure)\n- [Commands](#commands)\n  * [Show list](#show-list)\n  * [Set New Config](#set-new-config)\n      - [Set new config with the boolean value](#set-new-config-with-the-boolean-value)\n      - [Set new config with the number value](#set-new-config-with-the-number-value)\n      - [Set new config with the array value](#set-new-config-with-the-array-value)\n      - [Set new config with the null value](#set-new-config-with-the-null-value)\n      - [Set new config with empty value](#set-new-config-with-empty-value)\n  * [Set new config with nested array key](#set-new-config-with-nested-array-key)\n  * [Get Config Value](#get-config-value)\n  * [Remove Config Value](#remove-config-value)\n  * [Reset Configuration](#reset-configuration)\n- [Author](#author)\n- [Contributing](#contributing)\n  \n\n## Installation\n\nYou can install this package with:\n\n```console\nwp package install wp-packagist/wp-cli-global-config-command\n```\n\n\u003e Installing this package requires WP-CLI v2 or greater. Update to the latest stable release with `wp cli update`.\n\n\n\n## Structure\n\n```\nNAME\n\n  wp global-config\n\nDESCRIPTION\n\n  Global Configuration.\n\nSYNOPSIS\n\n  wp global-config \u003ccommand\u003e\n\nSUBCOMMANDS\n\n  get         Show Custom Config.\n  list        Show Configuration list.\n  remove      Remove Config Parameter.\n  reset       Reset Configuration.\n  set         Set new config.\n```\n\nFor All commands in this package, you can use `--local` flag for process in a local config file current working directory [wp-cli.local.yml]. \n\n\n\n## Commands\n\nList of WP-CLI global config Commands:\n\n\n\n### Show list\n\nFor show list all global parameters:\n\n```console\nwp global-config list\n```\n\nalso for show list of all global config in the current directory:\n\n```console\nwp global-config list --local\n```\n\n\n\n### Set New Config\n\nStructure:\n\n```console\nwp global-config set \u003ckey\u003e \u003cvalue\u003e [--local]\n```\n\nFor example, set new path:\n\n```console\nwp global-config set path ~/wp-cli/site\n```\n\n##### Set new config with the boolean value\n\n```console\nwp global-config set color false\n```\n\n##### Set new config with the number value\n\n```console\nwp global-config set my-custom-number 100\n```\n\n##### Set new config with the array value\n\nuse JSON Format.\n\n```console\nwp global-config set disabled_commands '[\"db drop\",\"plugin install\"]'\n```\n\n##### Set new config with the null value\n\n```console\nwp global-config set db_pass null\n```\n\n\n##### Set new config with space in key\n\n```console\nwp global-config set \"config create\" new_value\n```\n\n##### Set new config with empty value\n\n```console\nwp global-config set db_pass ''\n```\n\n### Set new config with nested array key\n\nyou can use `:` caharacter per level.\n\n```console\nwp global-config set @staging:user \u003cvalue\u003e\n```\n\nexample 2:\n\n```console\nwp global-config set @staging:user:ID 32\n```\n\nexample 3:\n\ndisable plugin install command only in the current directory project.\n\n```console\nwp global-config set disabled_commands '[\"plugin install\"]' --local\n```\n\n\n### Get Config Value\n\nStructure:\n\n```console\nwp global-config get \u003ckey\u003e [--local]\n```\n\nFor example:\n\n```console\nwp global-config get port\n```\n\nor for local config:\n\n```console\nwp global-config get url --local\n```\n\n### Remove Config Value\n\nStructure:\n\n```console\nwp global-config remove \u003ckey\u003e\n```\n\nfor example:\n\n```console\nwp global-config remove path\n```\n\n```console\nwp global-config remove color --local\n```\n\nYou can also nested key name in this command.\n\n```console\nwp global-config remove key_1:key_2_child\n```\n\n### Reset Configuration\n\n```console\nwp global-config reset\n```\n\nFor local current directory config:\n\n```console\nwp global-config reset --local\n```\n\n## Author\n\n- [Mehrshad Darzi](https://www.linkedin.com/in/mehrshaddarzi/) | PHP Full Stack and WordPress Expert\n\n## Contributing\n\nWe appreciate you taking the initiative to contribute to this project.\n\nContributing 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.\n\n### Reporting a bug\n\nThink you’ve found a bug? We’d love for you to help us get it fixed.\nBefore you create a new issue, you should [search existing issues](https://github.com/wp-packagist/wp-cli-global-config-command/issues?q=label%3Abug%20) to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version.\n\n### Creating a pull request\n\nWant to contribute a new feature? Please first [open a new issue](https://github.com/wp-packagist/wp-cli-global-config-command/issues/new) to discuss whether the feature is a good fit for the project.\n\nOnce 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:\n\n1. Create a feature branch for each contribution.\n2. Submit your pull request early for feedback.\n3. Follow [PSR-2 Coding Standards](http://www.php-fig.org/psr/psr-2/).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-packagist%2Fwp-cli-global-config-command","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwp-packagist%2Fwp-cli-global-config-command","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-packagist%2Fwp-cli-global-config-command/lists"}