Optionaloptions: BaseCLIFeatureOptionsAdd a Command to the CLI's CommandRegistry.
If only one non-modifier Command is added, the CLI will operate as a single command CLI and the provided command will be set as a default command. If more than one command is added, the CLI will operate as a multi-command CLI. In this case the default command will be set to a help command.
Add a ServiceProvider to the CLI's ServiceProviderRegistry.
This will register the ServiceProvider, add any provided services to the Context and register any provided Command instances.
the ServiceProvider to add.
Extension of DefaultRuntimeCLI that discovers and loads installed plugins before running.
On each invocation of run, all locally installed plugins are discovered via the MarketplacePluginManager. Commands provided by CommandFactory extensions and service providers provided by ServiceProviderFactory extensions are registered before the runner starts, so they participate in the full initialization lifecycle.