wp-cli — A command line interface for WordPress

wp-cli is a set of command-line tools for managing WordPress installations. You can update plugins, set up multisite installs, create posts and much more.

Once installed, you can run commands such as:

wp plugin install hello-dolly

which will output:

Installing Hello Dolly (1.5)

Downloading install package from http://downloads.WordPress.org/plugin/hello-dolly.1.5.zip ...
Unpacking the package ...
Installing the plugin ...
Plugin installed successfully.

wp-cli →

Autocomplete git branch name

Turns out it’s possible to enable autocompletion of git branch names when working on the command line. The script can be automatically installed on OS X using these commands:

$ curl -G https://raw.github.com/git/git/master/contrib/completion/git-completion.bash > ~/.git-completion.sh
$ echo 'source ~/.git-completion.sh' >> ~/.bash_profile

Don’t forget to re-open any already open Terminal windows.

(via @decthomas)

UPDATE: I’ve been notified that this script also autocompletes names of remotes and the like 🙂

Composer – Dependency Manager for PHP

Composer is a tool for dependency management in PHP. It allows you to declare the dependent libraries your project needs and it will install them in your project for you.

Think npm install but then for PHP

{
    "require": {
        "monolog/monolog": "1.2.*"
    }
}
$ composer install

Plays nice with packages that support PSR-0 autoloading. Packages can be found on packagist.org

Composer →

Firefox Command Line

The command line gives you quick keyboard control over your tools and access to features that don’t have any other user interface.

With the GCLI, included in Firefox 16 (now in beta), you can start the built-in inspector …

inspect "#home-news h3"

… or can even grab a screenshot of certain element …

screenshot heading.png 0 false h1

… amongst many other commands

New Firefox Command Line helps you develop faster →

Cordova client tool

The command line tool to build, deploy and manage Cordova-based applications.

Once installed — via npm — you get to do stuff like this:

cordova create ~/KewlApp
cd ~/KewlApp
cordova platform add ios
cordova platform add android
cordova plugin add http://example.org/Kewlio-1.2.3.tar.gz
cordova build

Great to see how the Cordova Platform (formerly known as PhoneGap — which now is a distribution of Cordova) is maturing

Cordova Client Tool →

PHP CLI, The Other SAPI

Most developers use PHP in a web context and run their code via Apache. The command line interface (CLI) is another approach to run PHP without the overhead of your webserver. This talk not only illustrates the usage of the PHP binary, but also some use cases for which the CLI is the better tool.

Enlightening talk at PHPNW11 by Thijs Feryn. Video also available.