add command and requirement api for plugins