add cmd support

the same as cis