spo folder rename¶
Renames a folder
spo folder rename [options]
||output usage information|
||The URL of the site where the folder to be renamed is located|
||Site-relative URL of the folder (including the folder)|
||New name for the target folder|
||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 rename a folder, you have to first log in to SharePoint using the spo login command, eg.
spo login https://contoso.sharepoint.com.
Renames a folder with site-relative URL /Shared Documents/My Folder 1 located in site https://contoso.sharepoint.com/sites/project-x
spo folder rename --webUrl https://contoso.sharepoint.com/sites/project-x --folderUrl '/Shared Documents/My Folder 1' --name 'My Folder 2'