Skip to content

spo folder list

Returns all folders under the specified parent folder


m365 spo folder list [options]


-u, --webUrl <webUrl>
The URL of the site where the folders to list are located
-p, --parentFolderUrl <parentFolderUrl>
Site-relative URL of the parent folder
-h, --help
output usage information
--query [query]
JMESPath query string. See for more information and examples
-o, --output [output]
Output type. json,text,csv. Default json
Runs command with verbose logging
Runs command with debug logging


Gets list of folders under a parent folder with site-relative url /Shared Documents located in site

m365 spo folder list --webUrl --parentFolderUrl '/Shared Documents'