diff --git a/docs/docs/cmd/spo/homesite/homesite-list.mdx b/docs/docs/cmd/spo/homesite/homesite-list.mdx index 76c7e893e49..cccdfbf9062 100644 --- a/docs/docs/cmd/spo/homesite/homesite-list.mdx +++ b/docs/docs/cmd/spo/homesite/homesite-list.mdx @@ -38,11 +38,6 @@ m365 spo homesite list "Email": "ColumnSearchable@contoso.onmicrosoft.com", "Id": "978b5280-4f80-47ea-a1db-b0d1d2fb1ba4", "Title": "ColumnSearchable Members" - }, - { - "Email": "contosoteam@contoso.onmicrosoft.com", - "Id": "21af775d-17b3-4637-94a4-2ba8625277cb", - "Title": "Contoso TeamR Members" } ], "IsInDraftMode": false, @@ -62,9 +57,9 @@ m365 spo homesite list ```text -Url Title ---------------------------------------------------------------- ------------------- -https://contoso.sharepoint.com/sites/TheLanding The Landing + Url Title + --------------------------------------------------------------- ------------------- + https://contoso.sharepoint.com/sites/TheLanding The Landing ``` @@ -72,7 +67,7 @@ https://contoso.sharepoint.com/sites/TheLanding The Landing ```csv IsInDraftMode,IsVivaBackendSite,SiteId,TargetedLicenseType,Title,Url,VivaConnectionsDefaultStart,WebId -0,0,431d7819-4aaf-49a1-b664-b2fe9e609b63,2,The Landing,https://contoso.sharepoint.com/sites/TheLanding,1,626c1724-8ac8-45d5-af87-c07c752fab75 + 0,0,431d7819-4aaf-49a1-b664-b2fe9e609b63,2,The Landing,https://contoso.sharepoint.com/sites/TheLanding,1,626c1724-8ac8-45d5-af87-c07c752fab75 ``` @@ -80,21 +75,21 @@ https://contoso.sharepoint.com/sites/TheLanding The Landing ```md m365 spo homesite list -# spo homesite list - -Date: 11/18/2024 - -Property | Value ----------|------- -IsInDraftMode | false -IsVivaBackendSite | false -SiteId | 431d7819-4aaf-49a1-b664-b2fe9e609b63 -TargetedLicenseType | 2 -Title | The Landing -Url | https://contoso.sharepoint.com/sites/TheLanding -VivaConnectionsDefaultStart | true -WebId | 626c1724-8ac8-45d5-af87-c07c752fab75 -``` + # spo homesite list + + Date: 11/18/2024 + + Property | Value + ---------|------- + IsInDraftMode | false + IsVivaBackendSite | false + SiteId | 431d7819-4aaf-49a1-b664-b2fe9e609b63 + TargetedLicenseType | 2 + Title | The Landing + Url | https://contoso.sharepoint.com/sites/TheLanding + VivaConnectionsDefaultStart | true + WebId | 626c1724-8ac8-45d5-af87-c07c752fab75 + ``` diff --git a/src/m365/spo/commands/homesite/homesite-list.ts b/src/m365/spo/commands/homesite/homesite-list.ts index de2c29ce8a8..e636ce883c3 100644 --- a/src/m365/spo/commands/homesite/homesite-list.ts +++ b/src/m365/spo/commands/homesite/homesite-list.ts @@ -3,6 +3,7 @@ import { odata } from '../../../../utils/odata.js'; import { spo } from '../../../../utils/spo.js'; import SpoCommand from '../../../base/SpoCommand.js'; import commands from '../../commands.js'; +import { CliRequestOptions } from "../../../../request.js"; class SpoHomeSiteListCommand extends SpoCommand { public get name(): string { return commands.HOMESITE_LIST; @@ -26,6 +27,9 @@ class SpoHomeSiteListCommand extends SpoCommand { }, responseType: 'json' }; + if (this.verbose) { + await logger.logToStderr(`List all home sites...`); + } const res = await odata.getAllItems(requestOptions); await logger.log(res); }