add cmd definition