| | 104 | |
| | 105 | === wp === |
| | 106 | |
| | 107 | The server has the http://wp-cli.org/ script installed, this makes it very easy to maintain the sites and do things like installing, activating, deactivating and uninstalling plugins and adding and removing user accounts. |
| | 108 | |
| | 109 | For example: |
| | 110 | |
| | 111 | {{{ |
| | 112 | sudo -i |
| | 113 | su-user su-user recon |
| | 114 | cd ~/sites/default/ |
| | 115 | wp help |
| | 116 | Available commands: |
| | 117 | wp backup |
| | 118 | wp cache add|decr|delete|flush|get|incr|replace|set|type |
| | 119 | wp cap add|list|remove |
| | 120 | wp comment approve|count|create|delete|last|spam|status|trash|unapprove|unspam|untrash |
| | 121 | wp core config|download|install|install-network|is-installed|update|update-db|version |
| | 122 | wp db connect|create|drop|export|import|optimize|query|repair|reset |
| | 123 | wp eval |
| | 124 | wp eval-file |
| | 125 | wp export |
| | 126 | wp help |
| | 127 | wp home |
| | 128 | wp option add|delete|get|update |
| | 129 | wp plugin activate|deactivate|delete|install|path|status|toggle|uninstall|update|update-all |
| | 130 | wp post create|delete|edit|generate|list|update |
| | 131 | wp post-meta add|delete|get|update |
| | 132 | wp rewrite dump|flush|structure |
| | 133 | wp scaffold _s|plugin|post-type|taxonomy |
| | 134 | wp search-replace |
| | 135 | wp shell |
| | 136 | wp term create|delete|list|update |
| | 137 | wp theme activate|delete|install|path|status|update|update-all |
| | 138 | wp transient delete|get|set|type |
| | 139 | wp user add-role|create|delete|generate|import-csv|list|remove-role|set-role|update |
| | 140 | wp user-meta add|delete|get|update |
| | 141 | |
| | 142 | See 'wp help <command>' for more information on a specific command. |
| | 143 | |
| | 144 | Global parameters: |
| | 145 | --config=<path> Path to the wp-cli config file |
| | 146 | --path=<path> Path to the WordPress files |
| | 147 | --url=<url> Pretend request came from given URL |
| | 148 | --user=<id|login> Set the WordPress user |
| | 149 | --require=<path> Load given PHP file before running the command |
| | 150 | --color/--no-color Whether to colozire the output |
| | 151 | --debug Show all PHP errors |
| | 152 | --quiet Suppress informational messages |
| | 153 | }}} |