get-pages-by-site
Lists pages of a Sitecore site by finding items that have presentation (layout on item or template standard values), returning addressable pages for a site, section, or subtree.
Instructions
Lists the pages of a site. Returns { Matched, Returned, Truncated, Root, SiteName, Pages: [{ ID, Path, Template, TemplateID }] }. An item counts as a page when it has presentation (a layout on the item or on its template's standard values), which is what makes it addressable as a page — not a guess from template naming.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Any item path inside the site, used to work out which site is meant (e.g. /sitecore/content/Stride/Cova/Home). Supply this or siteName. | |
| limit | No | Maximum rows to return (default 500). Matched always reports the true count, and Truncated says whether rows were withheld. | |
| database | No | The database to read. Defaults to the site's own database, or master. | |
| rootPath | No | Scan this subtree instead of the site's home item, e.g. to list one section. Must be inside the site. | |
| siteName | No | The site name as Sitecore knows it (e.g. 'Cova'). Use list-sites to see the names. Supply this or path. |