Skip to content

spo apppage add

Creates a single-part app page

Usage

m365 spo apppage add [options]

Options

-u, --webUrl <webUrl>
The URL of the site where the page should be created
-t, --title <title>
The title of the page to be created
-d, --webPartData <webPartData>
JSON string of the web part to put on the page
--addToQuickLaunch
Set, to add the page to the quick launch
-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 http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text,csv,md. Default json
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Remarks

If you want to add the single-part app page to quick launch, use the addToQuickLaunch flag.

Examples

Create a single-part app page in a site with url https://contoso.sharepoint.com, webpart data is stored in the $webPartData variable

m365 spo apppage add --title "Contoso" --webUrl "https://contoso.sharepoint.com" --webPartData $webPartData --addToQuickLaunch