Currently, we define the version in a WP_CLI_VERSION constant. This is hard to work with when deploying.
A better solution would be to have a simple VERSION text file, which is read when wp --info or wp --version is called.
This would make it easy to append the revision when building the Phar archive. Related: #658