View Single Post
Old 07-22-2012, 07:27 PM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
Quote:
Originally Posted by Brujah View Post
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
ya i already use wp-cli
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote