Added support for cli auto update

Close #10