| 33 | | |
| 34 | | == Managing WordPress Sites == |
| 35 | | |
| 36 | | === wp === |
| 37 | | |
| 38 | | 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. |
| 39 | | |
| 40 | | For example: |
| 41 | | |
| 42 | | {{{ |
| 43 | | sudo -i |
| 44 | | su-user su-user recon |
| 45 | | cd ~/sites/default/ |
| 46 | | wp help |
| 47 | | Available commands: |
| 48 | | wp backup |
| 49 | | wp cache add|decr|delete|flush|get|incr|replace|set|type |
| 50 | | wp cap add|list|remove |
| 51 | | wp comment approve|count|create|delete|last|spam|status|trash|unapprove|unspam|untrash |
| 52 | | wp core config|download|install|install-network|is-installed|update|update-db|version |
| 53 | | wp db connect|create|drop|export|import|optimize|query|repair|reset |
| 54 | | wp eval |
| 55 | | wp eval-file |
| 56 | | wp export |
| 57 | | wp help |
| 58 | | wp home |
| 59 | | wp option add|delete|get|update |
| 60 | | wp plugin activate|deactivate|delete|install|path|status|toggle|uninstall|update|update-all |
| 61 | | wp post create|delete|edit|generate|list|update |
| 62 | | wp post-meta add|delete|get|update |
| 63 | | wp rewrite dump|flush|structure |
| 64 | | wp scaffold _s|plugin|post-type|taxonomy |
| 65 | | wp search-replace |
| 66 | | wp shell |
| 67 | | wp term create|delete|list|update |
| 68 | | wp theme activate|delete|install|path|status|update|update-all |
| 69 | | wp transient delete|get|set|type |
| 70 | | wp user add-role|create|delete|generate|import-csv|list|remove-role|set-role|update |
| 71 | | wp user-meta add|delete|get|update |
| 72 | | |
| 73 | | See 'wp help <command>' for more information on a specific command. |
| 74 | | |
| 75 | | Global parameters: |
| 76 | | --config=<path> Path to the wp-cli config file |
| 77 | | --path=<path> Path to the WordPress files |
| 78 | | --url=<url> Pretend request came from given URL |
| 79 | | --user=<id|login> Set the WordPress user |
| 80 | | --require=<path> Load given PHP file before running the command |
| 81 | | --color/--no-color Whether to colozire the output |
| 82 | | --debug Show all PHP errors |
| 83 | | --quiet Suppress informational messages |
| 84 | | }}} |