spo file list¶
Gets all files within the specified folder and site
spo file list [options]
||output usage information|
||The URL of the site where the folder from which to retrieve files is located|
||The server- or site-relative URL of the folder from which to retrieve files|
||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 all files, you have to first log in to a SharePoint Online site using the spo login command, eg.
spo login https://contoso.sharepoint.com.
Return all files from folder Shared Documents located in site https://contoso.sharepoint.com/sites/project-x
spo file list --webUrl https://contoso.sharepoint.com/sites/project-x --folder 'Shared Documents'