Export the commandpromise