cli-microsoft365 icon indicating copy to clipboard operation
cli-microsoft365 copied to clipboard

Enhancement: add option to get spo folder by id

Open martinlingstuyl opened this issue 2 years ago • 0 comments

About: https://pnp.github.io/cli-microsoft365/cmd/spo/folder/folder-get/

The spo folder get command allows you to get folders by server relative url.

For completeness I'd suggest we should also be able to get a folder by uniqueId, just like with the file-get command.

Option Description
-u, --folderUrl [folderUrl] The server-relative URL of the folder to retrieve. Specify either folderUrl or id but not both.
-i, --id [id] The UniqueId (GUID) of the folder to retrieve. Specify either folderUrl or id but not both.

The current option name is folderUrl, this will change in v6 to url to align with our naming convention.

martinlingstuyl avatar Aug 21 '22 14:08 martinlingstuyl