Groups are a way to organize your commands, effectively turning them into subcommands.
To assign groups, you need to register them first. You can do this from the
@Register decorator or registerGroup.
You can then use the @Group decorator to assign a command to a group.
You can assign groups in two ways:
At the class-level, which assigns the group to all commands in the class.
At the method-level, which assigns the group to a single command.
For example, let’s say you want to organize view and delete commands under a profile group:
Nested groups
Groups at the top level can have child group(s), whereas groups that have a parent
cannot have child groups. This limitation means the maximum nesting level is 2, as of now.
To define a group as a child of another group, you specify its name using the root key: