View Single Post
Old 07-22-2012, 06:30 PM  
Brujah
Beer Money Baron
 
Brujah's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
Quote:
Originally Posted by fris View Post
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
__________________

Last edited by Brujah; 07-22-2012 at 06:31 PM..
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote