add verion check between cli and server. fix cli version command bug