List all tabs in Microsoft Teams teams in the tenant using CLI for Microsoft 365
The CLI for Microsoft 365 is a solution provided by the PnP team. It allows you to manage your Microsoft 365 tenant trying to cover multiple services (e.g. SharePoint, Teams, Microsoft 365 Groups, Flow, Planner, etc.) and giving you a single experience when automating tasks in your environment. The CLI is running on every device compatible with Node, Therefore, you could consider it for any type of scripts running on almost any device or CI/CD pipelines.
This sample script shows you how to list all tabs, channels, and team information from your tenant. The inspiration was taken from the blog post written by Veronique Lengelle using PnP PowerShell.