# How do I get all of the subfolders in a folder using PnP PowerShell

How do I use the PnP PowerShell to get all of the subfolders in a folder ?

\$folders = Get-SPOFolderItem -FolderSiteRelativeUrl "/SPDocuments" -ItemType Folder