feature(cloudcmd) add middleware