heimdallrj / wordpress-cli

[DEPRECATED] A command-line toolkit for WordPress Development
https://www.npmjs.com/package/wordpress-cli
MIT License
1 stars 3 forks source link

Allow to update config. <site.json> later anytime #9

Closed heimdallrj closed 7 years ago

heimdallrj commented 7 years ago

Command:

wp config update <config_key> <config_value>

Key fields allows to update

env.js

  allowUpdate: {
    config: [
      'mysqlDbHost',
      'mysqlDbPort',
      'mysqlDbUser',
      'mysqlDbPwd',
      'mysqlDbName',
      'mysqlDbTblPrefix'
    ]
  }