spo folder add
Creates a folder within a parent folder
Usage
m365 spo folder add [options]
Options
-u, --webUrl <webUrl>
The URL of the site where the folder will be created.
-p, --parentFolderUrl <parentFolderUrl>
The server- or site-relative URL of the parent folder.
-n, --name <name>
Name of the new folder to be created
-h, --help [help]
Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options
,examples
,remarks
,response
,full
. Default isfull
.--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]
Output type.
json
,text
,csv
,md
. Defaultjson
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
Examples
Creates folder in a specific library within the site
m365 spo folder add --webUrl https://contoso.sharepoint.com/sites/project-x --parentFolderUrl '/Shared Documents' --name 'My Folder Name'
Creates folder in a specific folder within the site
m365 spo folder add --webUrl https://contoso.sharepoint.com/sites/project-x --parentFolderUrl '/sites/project-x/Shared Documents/Reports' --name 'Financial reports'