com.yammer.dropwizard.config.Bootstrap contains the addCommand method to add ConfiguredCommand . You will gain access to this object by overriding the initialization method in your service class, for example.
public void initialize (Bootstrap<T> configurationBootstrap) { configurationBootstrap.addCommand(yourCommand); }
source share