Skip to content

spo page section add

Adds section to modern page


m365 spo page section add [options]


-n, --pageName <pageName>
Name of the page to add section to.
-u, --webUrl <webUrl>
URL of the site where the page to retrieve is located.
-t, --sectionTemplate <sectionTemplate>
Type of section to add. Allowed values OneColumn, OneColumnFullWidth, TwoColumn, ThreeColumn, TwoColumnLeft, TwoColumnRight.
--order [order]
Order of the section to add.
-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 is full.
--query [query]
JMESPath query string. See for more information and examples
-o, --output [output]
Output type. json,text,csv,md. Default json
Runs command with verbose logging
Runs command with debug logging


If the specified pageName doesn't refer to an existing modern page, you will get a File doesn't exists error.


Add section to the modern page

m365 spo page section add --pageName home.aspx --webUrl --sectionTemplate OneColumn --order 1


The command won't return a response on success.