wp-cli is a set of tools for controlling WordPress installations from the command line. It should work fine for WP versions >= 3.3.
wp-cli follow the instructions from the project’s readme:
git clone --recursive git://github.com/wp-cli/wp-cli.git ~/git/wp-cli cd ~/git/wp-cli utils/dev-build
wp must be executed in a directory that contains a WordPress installation. Otherwise you will see this error:
Error: This does not seem to be a WordPress install. Pass --path=`path/to/wordpress` or run `wp core download`.
Get a list of available commands:
To upgrade the core WordPress installation:
wp core update
or any of the plugins:
wp plugin update <plugin> wp plugin update --all