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.
Default Bun implementation of a CLI using
process.stdout,process.stderrandprocess.argv.Degrades gracefully when
stdin,stdoutorstderrare not TTYs (e.g. piped or redirected): color and hyperlinks are disabled, prompting is disabled, and non-TTY streams are wrapped in a NonTtyTerminal rather than the usual TtyTerminal.