Skip to main content

spo page template list

Lists all page templates in the given site

Usage

m365 spo page template list [options]

Options

-u, --webUrl <webUrl>

URL of the site from which to retrieve available pages.

-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 options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Examples

Lists all page templates in the given site

m365 spo page template list --webUrl https://contoso.sharepoint.com/sites/team-a

Response

[
{
"AbsoluteUrl": "https://contoso.sharepoint.com/sites/SPDemo/SitePages/Templates/Company-Policy.aspx",
"AuthorByline": [
"i:0#.f|membership|user@contoso.com"
],
"BannerImageUrl": "https://cdn.hubblecontent.osi.office.net/m365content/publish/d22d83c8-3fb2-4168-8902-a29dc31e95b1/thumbnails/large.jpg?file=1131975775.jpg",
"BannerThumbnailUrl": "https://cdn.hubblecontent.osi.office.net/m365content/publish/d22d83c8-3fb2-4168-8902-a29dc31e95b1/thumbnails/large.jpg?file=1131975775.jpg",
"CallToAction": "",
"Categories": null,
"ContentTypeId": "0x0101009D1CB255DA76424F860D91F20E6C411800F1678937A82C3142BEF3C962300813B5",
"Description": "Company policy are set in place to establish the rules of conduct within an organization, outlining the responsibilities of both employees and employers. The management of company policy and procedures aim to protect the rights of workers as well as…",
"DoesUserHaveEditPermission": true,
"FileName": "Company-Policy.aspx",
"FirstPublished": "0001-01-01T08:00:00Z",
"Id": 27,
"IsPageCheckedOutToCurrentUser": false,
"IsWebWelcomePage": false,
"Modified": "2022-11-26T10:51:12Z",
"PageLayoutType": "Article",
"Path": {
"DecodedUrl": "SitePages/Templates/Company-Policy.aspx"
},
"PromotedState": 0,
"Title": "Company Policy",
"TopicHeader": null,
"UniqueId": "06509101-7e2f-4467-afd2-97bad4a53ef2",
"Url": "SitePages/Templates/Company-Policy.aspx",
"Version": "0.1",
"VersionInfo": {
"LastVersionCreated": "0001-01-01T00:00:00-08:00",
"LastVersionCreatedBy": ""
}
}
]
CTRL + M