def METHOD_NAME(self):
    """Fetch all commands from plugins providing any."""
    import collections
    result = collections.OrderedDict()
    for name, hook in self.hooks.items():
        try:
            commands = hook(self, pass_octoprint_ctx)
            for command in commands:
                if not isinstance(command, click.Command):
                    self._logger.warning(
                        "Plugin {} provided invalid CLI command, ignoring it: {!r}".format(
                            name, command
                        )
                    )
                    continue
                result[name + self.sep + command.name] = command
        except Exception:
            self._logger.exception(
                f"Error while retrieving cli commands for plugin {name}",
                extra={"plugin": name},
            )
    return result