def METHOD_NAME(
    cls,
    command: Union[List[str], str],
    **kwargs: Optional[Union[bool, Iterable[str], str]],
) -> List[str]:
    """Generate command to be executed and log it.
    Args:
        command: Command to run.
        args: Additional args to pass to the command.
    Returns:
        The full command to be passed into a subprocess.
    """
    cmd = [cls.EXECUTABLE, *(command if isinstance(command, list) else [command])]
    cmd.extend(cls._generate_command_handle_kwargs(**kwargs))
    LOGGER.debug("generated command: %s", cls.list2cmdline(cmd))
    return cmd