Change from DynamicCommand to ContextCommand

This plugin is now headless friendly.