spo folder list¶
Returns all folders under the specified parent folder
spo folder list [options]
||output usage information|
||The URL of the site where the folders to list are located|
||Site-relative URL of the parent folder|
||Runs command with verbose logging|
||Runs command with debug logging|
Before using this command, log in to a SharePoint Online site, using the spo login command.
To get list of folders under parent folder, you have to first log in to SharePoint using the spo login command, eg.
spo login https://contoso.sharepoint.com.
Gets list of folders under a parent folder with site-relative url /Shared Documents located in site https://contoso.sharepoint.com/sites/project-x
spo folder list --webUrl https://contoso.sharepoint.com/sites/project-x --parentFolderUrl '/Shared Documents'