Skip to content

New command: file list #2804

@waldekmastykarz

Description

@waldekmastykarz

Usage

m365 file list [options]

Description

Retrieves files from the specified folder and site

Options

-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

-r, --recursive
Set to retrieve files from subfolders

Additional Info

This command is an improved version of the spo file list command. The main difference is that it's based on MS Graph and properly supports working with large folders, which isn't supported in spo file list #2704. The usage of the command should be similar, eg. users can pass the URL of the site and folder and we resolve them internally to the necessary Graph objects to get a reference of the folder and retrieve all files.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions