Add update functionality to the CLI.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>