add cmd publish support