spo folder add¶
Creates a folder within a parent folder
spo folder add [options]
||output usage information|
||The URL of the site where the folder will be created|
||Site-relative URL of the parent folder|
||Name of the new folder to be created|
||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 create a folder, you have to first log in to SharePoint using the spo login command, eg.
spo login https://contoso.sharepoint.com.
Creates folder in a parent folder with site relative url /Shared Documents located in site https://contoso.sharepoint.com/sites/project-x
spo folder add --webUrl https://contoso.sharepoint.com/sites/project-x --parentFolderUrl '/Shared Documents' --name 'My Folder Name'