[cli] fixed #411, support new enc rpc