How to update Android version in command line?

For an accurate answer please quote the version string of what you are running now.