Skip to content

spo file list

Gets all files within the specified folder and site

Usage

spo file list [options]

Options

Option Description
--help output usage information
-u, --webUrl <webUrl> The URL of the site where the folder from which to retrieve files is located
-f, --folder <folder> The server- or site-relative URL of the folder from which to retrieve files
-o, --output [output] Output type. json|text. Default text
--verbose Runs command with verbose logging
--debug Runs command with debug logging

Examples

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'