Quote:
Originally Posted by fris
mind sending me a link? wouldnt mind taking a peak
|
mine isn't flexible enough for re-use, but i'm thinking of switching to this:
https://github.com/wp-cli/wp-cli
then in any wp folder, it's just a:
wp core update
wp core update-db
etc.
Code:
$ wp help
Available commands:
wp core [download|config|install|install_network|version|update|update_db]
wp db [create|drop|optimize|repair|connect|cli|query|export|import]
wp eval-file [bindTo]
wp eval [bindTo]
wp export [validate_arguments]
wp generate [posts|users]
wp home [bindTo]
wp option [add|update|delete|get]
wp plugin [activate|deactivate|toggle|path|update|uninstall|delete|status|install]
wp post-meta [get|delete|add|update]
wp post [create|update|delete]
wp theme [activate|path|delete|status|install|update]
wp transient [get|set|delete|type]
wp user-meta [get|delete|add|update]
wp user[list|delete|create|update]
See 'wp help <command>' for more information on a specific command.
Global parameters:
--user=<id|login> set the current user
--url=<url> set the current URL
--path=<path> set the current path to the WP install
--require=<path> load a certain file before running the command
--version print wp-cli version
$ wp core version
3.4.1