From 2aa9bedbb5da287b29ea3566ed781625c44d3e2a Mon Sep 17 00:00:00 2001 From: reshmee011 Date: Mon, 18 Nov 2024 18:29:40 +0000 Subject: [PATCH 01/20] publish home site list --- docs/docs/cmd/spo/homesite/homesite-list.mdx | 116 +++++++++++++++ src/m365/spo/commands.ts | 1 + .../commands/homesite/homesite-list.spec.ts | 137 ++++++++++++++++++ .../spo/commands/homesite/homesite-list.ts | 42 ++++++ 4 files changed, 296 insertions(+) create mode 100644 docs/docs/cmd/spo/homesite/homesite-list.mdx create mode 100644 src/m365/spo/commands/homesite/homesite-list.spec.ts create mode 100644 src/m365/spo/commands/homesite/homesite-list.ts diff --git a/docs/docs/cmd/spo/homesite/homesite-list.mdx b/docs/docs/cmd/spo/homesite/homesite-list.mdx new file mode 100644 index 00000000000..db22258081a --- /dev/null +++ b/docs/docs/cmd/spo/homesite/homesite-list.mdx @@ -0,0 +1,116 @@ +import Global from '/docs/cmd/_global.mdx'; +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# spo homesite list + +Lists all the Home Sites + +## Usage + +```sh +m365 spo homesite list [options] +``` + +## Options + + + +## Examples + +Lists all the Home Sites + +```sh +m365 spo homesite list +``` + +## Response + + + + + ```json + { + "value": [ + { + "Audiences": [ + { + "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, + "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" + }, + { + "Audiences": [], + "IsInDraftMode": false, + "IsVivaBackendSite": false, + "SiteId": "45d4a135-40e4-4571-8340-61d17fdfd58a", + "TargetedLicenseType": 0, + "Title": "Contoso Electronics", + "Url": "https://contoso.sharepoint.com/sites/contosoportal", + "VivaConnectionsDefaultStart": true, + "WebId": "9418e2a1-855c-4752-8dd4-48693f43b10a" + } + ] + } + ``` + + + + + ```text + LogoUrl: https://contoso.sharepoint.com/sites/intra/siteassets/work.png + SiteId : af80c11f-0138-4d72-bb37-514542c3aabb + Title : Intranet + Url : https://contoso.sharepoint.com/sites/intra + WebId : 6f90666d-b0e7-40c3-991f-4ab051d00a70 + ``` + + + + + ```csv + SiteId,WebId,LogoUrl,Title,Url + af80c11f-0138-4d72-bb37-514542c3aabb,6f90666d-b0e7-40c3-991f-4ab051d00a70,https://contoso.sharepoint.com/sites/intra/siteassets/work.png,Intranet,https://contoso.sharepoint.com/sites/intra + ``` + + + + + ```md + # spo homesite list + + Date: 2/20/2023 + + ## Intranet (https://contoso.sharepoint.com/sites/intra) + + Property | Value + ---------|------- + IsInDraftMode | false + SiteId | af80c11f-0138-4d72-bb37-514542c3aabb + WebId |6f90666d-b0e7-40c3-991f-4ab051d00a70 + LogoUrl | https://contoso.sharepoint.com/sites/intra/siteassets/work.png + Title | Intranet + Url | https://contoso.sharepoint.com/sites/intra + ``` + + + + +## More information + +- SharePoint home sites: a landing for your organization on the intelligent intranet: [https://techcommunity.microsoft.com/t5/Microsoft-SharePoint-Blog/SharePoint-home-sites-a-landing-for-your-organization-on-the/ba-p/621933](https://techcommunity.microsoft.com/t5/Microsoft-SharePoint-Blog/SharePoint-home-sites-a-landing-for-your-organization-on-the/ba-p/621933) diff --git a/src/m365/spo/commands.ts b/src/m365/spo/commands.ts index 9ad1de6b0f2..bc1a1f81ef8 100644 --- a/src/m365/spo/commands.ts +++ b/src/m365/spo/commands.ts @@ -118,6 +118,7 @@ export default { HIDEDEFAULTTHEMES_GET: `${prefix} hidedefaultthemes get`, HIDEDEFAULTTHEMES_SET: `${prefix} hidedefaultthemes set`, HOMESITE_GET: `${prefix} homesite get`, + HOMESITE_LIST: `${prefix} homesite list`, HOMESITE_REMOVE: `${prefix} homesite remove`, HOMESITE_SET: `${prefix} homesite set`, HUBSITE_CONNECT: `${prefix} hubsite connect`, diff --git a/src/m365/spo/commands/homesite/homesite-list.spec.ts b/src/m365/spo/commands/homesite/homesite-list.spec.ts new file mode 100644 index 00000000000..67e03568f20 --- /dev/null +++ b/src/m365/spo/commands/homesite/homesite-list.spec.ts @@ -0,0 +1,137 @@ +import assert from 'assert'; +import sinon from 'sinon'; +import auth from '../../../../Auth.js'; +import { Logger } from '../../../../cli/Logger.js'; +import { CommandError } from '../../../../Command.js'; +import request from '../../../../request.js'; +import { telemetry } from '../../../../telemetry.js'; +import { pid } from '../../../../utils/pid.js'; +import { session } from '../../../../utils/session.js'; +import { sinonUtil } from '../../../../utils/sinonUtil.js'; +import commands from '../../commands.js'; +import command from './homesite-list.js'; + +describe(commands.HOMESITE_LIST, () => { + let log: string[]; + let logger: Logger; + let loggerLogSpy: sinon.SinonSpy; + const homeSites = { + "value": [ + { + "Audiences": [ + { + "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, + "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" + }, + { + "Audiences": [], + "IsInDraftMode": false, + "IsVivaBackendSite": false, + "SiteId": "45d4a135-40e4-4571-8340-61d17fdfd58a", + "TargetedLicenseType": 0, + "Title": "Contoso Electronics", + "Url": "https://contoso.sharepoint.com/sites/contosoportal", + "VivaConnectionsDefaultStart": true, + "WebId": "9418e2a1-855c-4752-8dd4-48693f43b10a" + } + ] + }; + + before(() => { + sinon.stub(auth, 'restoreAuth').resolves(); + sinon.stub(telemetry, 'trackEvent').returns(); + sinon.stub(pid, 'getProcessName').returns(''); + sinon.stub(session, 'getId').returns(''); + auth.connection.active = true; + auth.connection.spoUrl = 'https://contoso-admin.sharepoint.com'; + }); + + beforeEach(() => { + log = []; + logger = { + log: async (msg: string) => { + log.push(msg); + }, + logRaw: async (msg: string) => { + log.push(msg); + }, + logToStderr: async (msg: string) => { + log.push(msg); + } + }; + loggerLogSpy = sinon.spy(logger, 'log'); + }); + + afterEach(() => { + sinonUtil.restore([ + request.get + ]); + }); + + after(() => { + sinon.restore(); + auth.connection.active = false; + auth.connection.spoUrl = undefined; + }); + + it('has correct name', () => { + assert.strictEqual(command.name, commands.HOMESITE_LIST); + }); + + it('has a description', () => { + assert.notStrictEqual(command.description, null); + }); + + it('defines correct properties for the default output', () => { + assert.deepStrictEqual(command.defaultProperties(), ['Url', 'Title']); + }); + + it('lists available home sites', async () => { + sinon.stub(request, 'get').callsFake(async (opts) => { + if ((opts.url as string).indexOf(`/GetTargetedSitesDetails`) > -1) { + return homeSites; + } + + throw 'Invalid request'; + }); + + await command.action(logger, { options: { output: 'json' } }); + + assert(loggerLogSpy.calledWith(homeSites)); + }); + + it('lists available home sites (debug)', async () => { + sinon.stub(request, 'get').callsFake(async (opts) => { + if ((opts.url as string).indexOf(`/GetTargetedSitesDetails`) > -1) { + return homeSites; + } + + throw 'Invalid request'; + }); + + await command.action(logger, { options: { debug: true, output: 'json' } }); + assert(loggerLogSpy.calledWith(homeSites)); + }); + + it('correctly handles OData error when retrieving available home sites', async () => { + sinon.stub(request, 'get').rejects({ error: { 'odata.error': { message: { value: 'An error has occurred' } } } }); + + await assert.rejects(command.action(logger, { options: {} } as any), new CommandError('An error has occurred')); + }); +}); diff --git a/src/m365/spo/commands/homesite/homesite-list.ts b/src/m365/spo/commands/homesite/homesite-list.ts new file mode 100644 index 00000000000..d6c81de5c0e --- /dev/null +++ b/src/m365/spo/commands/homesite/homesite-list.ts @@ -0,0 +1,42 @@ +import { Logger } from '../../../../cli/Logger.js'; +import request from '../../../../request.js'; +import { spo } from '../../../../utils/spo.js'; +import SpoCommand from '../../../base/SpoCommand.js'; +import commands from '../../commands.js'; + + +class SpoHomeSiteListCommand extends SpoCommand { + public get name(): string { + return commands.HOMESITE_LIST; + } + + public get description(): string { + return 'Lists available Home Sites'; + } + + public defaultProperties(): string[] | undefined { + return ['Url', 'Title']; + } + + public async commandAction(logger: Logger): Promise { + try { + const spoUrl: string = await spo.getSpoAdminUrl(logger, this.debug); + const requestOptions: any = { + url: `${spoUrl}/_api/SPO.Tenant/GetTargetedSitesDetails`, + headers: { + accept: 'application/json;odata=nometadata' + }, + responseType: 'json' + }; + const res = await request.get(requestOptions); + if (res) { + await logger.log(res); + } + } + catch (err: any) { + this.handleRejectedODataJsonPromise(err); + } + } +} + +export default new SpoHomeSiteListCommand(); \ No newline at end of file From c33f76f6cad456959e95a73243fa5631342f5ab0 Mon Sep 17 00:00:00 2001 From: reshmee011 Date: Mon, 18 Nov 2024 19:15:00 +0000 Subject: [PATCH 02/20] update homesite list --- docs/docs/cmd/spo/homesite/homesite-list.mdx | 31 +++++++------------- docs/src/config/sidebars.ts | 5 ++++ 2 files changed, 16 insertions(+), 20 deletions(-) diff --git a/docs/docs/cmd/spo/homesite/homesite-list.mdx b/docs/docs/cmd/spo/homesite/homesite-list.mdx index db22258081a..58ef47c8243 100644 --- a/docs/docs/cmd/spo/homesite/homesite-list.mdx +++ b/docs/docs/cmd/spo/homesite/homesite-list.mdx @@ -73,44 +73,35 @@ m365 spo homesite list ```text - LogoUrl: https://contoso.sharepoint.com/sites/intra/siteassets/work.png - SiteId : af80c11f-0138-4d72-bb37-514542c3aabb - Title : Intranet - Url : https://contoso.sharepoint.com/sites/intra - WebId : 6f90666d-b0e7-40c3-991f-4ab051d00a70 +Url Title +--------------------------------------------------------------- ------------------- +https://reshmeeauckloo.sharepoint.com/sites/TheLanding The Landing +https://reshmeeauckloo.sharepoint.com/sites/contosoportal Contoso Electronics ``` ```csv - SiteId,WebId,LogoUrl,Title,Url - af80c11f-0138-4d72-bb37-514542c3aabb,6f90666d-b0e7-40c3-991f-4ab051d00a70,https://contoso.sharepoint.com/sites/intra/siteassets/work.png,Intranet,https://contoso.sharepoint.com/sites/intra ``` ```md - # spo homesite list + m365 spo homesite list --output md +# spo homesite list - Date: 2/20/2023 +Date: 11/18/2024 - ## Intranet (https://contoso.sharepoint.com/sites/intra) +Property | Value +---------|------- - Property | Value - ---------|------- - IsInDraftMode | false - SiteId | af80c11f-0138-4d72-bb37-514542c3aabb - WebId |6f90666d-b0e7-40c3-991f-4ab051d00a70 - LogoUrl | https://contoso.sharepoint.com/sites/intra/siteassets/work.png - Title | Intranet - Url | https://contoso.sharepoint.com/sites/intra - ``` +``` ## More information -- SharePoint home sites: a landing for your organization on the intelligent intranet: [https://techcommunity.microsoft.com/t5/Microsoft-SharePoint-Blog/SharePoint-home-sites-a-landing-for-your-organization-on-the/ba-p/621933](https://techcommunity.microsoft.com/t5/Microsoft-SharePoint-Blog/SharePoint-home-sites-a-landing-for-your-organization-on-the/ba-p/621933) +- SharePoint home sites [Viva Connections set up](https://learn.microsoft.com/en-us/viva/connections/set-up-admin-center) diff --git a/docs/src/config/sidebars.ts b/docs/src/config/sidebars.ts index dd119e7f527..9582120d379 100644 --- a/docs/src/config/sidebars.ts +++ b/docs/src/config/sidebars.ts @@ -2710,6 +2710,11 @@ const sidebars: SidebarsConfig = { label: 'homesite get', id: 'cmd/spo/homesite/homesite-get' }, + { + type: 'doc', + label: 'homesite list', + id: 'cmd/spo/homesite/homesite-list' + }, { type: 'doc', label: 'homesite remove', From d605e6c7a65260e554d3fc14dbe3e2ecc65446a9 Mon Sep 17 00:00:00 2001 From: reshmee011 Date: Wed, 20 Nov 2024 08:53:46 +0000 Subject: [PATCH 03/20] updates based on Milan's comments --- docs/docs/cmd/spo/homesite/homesite-list.mdx | 25 ++++++++----------- .../commands/homesite/homesite-list.spec.ts | 4 +-- .../spo/commands/homesite/homesite-list.ts | 14 ++++------- 3 files changed, 18 insertions(+), 25 deletions(-) diff --git a/docs/docs/cmd/spo/homesite/homesite-list.mdx b/docs/docs/cmd/spo/homesite/homesite-list.mdx index 58ef47c8243..0b700149c2c 100644 --- a/docs/docs/cmd/spo/homesite/homesite-list.mdx +++ b/docs/docs/cmd/spo/homesite/homesite-list.mdx @@ -53,17 +53,6 @@ m365 spo homesite list "Url": "https://contoso.sharepoint.com/sites/TheLanding", "VivaConnectionsDefaultStart": true, "WebId": "626c1724-8ac8-45d5-af87-c07c752fab75" - }, - { - "Audiences": [], - "IsInDraftMode": false, - "IsVivaBackendSite": false, - "SiteId": "45d4a135-40e4-4571-8340-61d17fdfd58a", - "TargetedLicenseType": 0, - "Title": "Contoso Electronics", - "Url": "https://contoso.sharepoint.com/sites/contosoportal", - "VivaConnectionsDefaultStart": true, - "WebId": "9418e2a1-855c-4752-8dd4-48693f43b10a" } ] } @@ -75,14 +64,15 @@ m365 spo homesite list ```text Url Title --------------------------------------------------------------- ------------------- -https://reshmeeauckloo.sharepoint.com/sites/TheLanding The Landing -https://reshmeeauckloo.sharepoint.com/sites/contosoportal Contoso Electronics +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 ``` @@ -96,7 +86,14 @@ 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.spec.ts b/src/m365/spo/commands/homesite/homesite-list.spec.ts index 67e03568f20..814e07499fb 100644 --- a/src/m365/spo/commands/homesite/homesite-list.spec.ts +++ b/src/m365/spo/commands/homesite/homesite-list.spec.ts @@ -113,7 +113,7 @@ describe(commands.HOMESITE_LIST, () => { await command.action(logger, { options: { output: 'json' } }); - assert(loggerLogSpy.calledWith(homeSites)); + assert(loggerLogSpy.calledWith(homeSites.value)); }); it('lists available home sites (debug)', async () => { @@ -126,7 +126,7 @@ describe(commands.HOMESITE_LIST, () => { }); await command.action(logger, { options: { debug: true, output: 'json' } }); - assert(loggerLogSpy.calledWith(homeSites)); + assert(loggerLogSpy.calledWith(homeSites.value)); }); it('correctly handles OData error when retrieving available home sites', async () => { diff --git a/src/m365/spo/commands/homesite/homesite-list.ts b/src/m365/spo/commands/homesite/homesite-list.ts index d6c81de5c0e..500cc83b6cf 100644 --- a/src/m365/spo/commands/homesite/homesite-list.ts +++ b/src/m365/spo/commands/homesite/homesite-list.ts @@ -1,10 +1,8 @@ import { Logger } from '../../../../cli/Logger.js'; -import request from '../../../../request.js'; +import { odata } from '../../../../utils/odata.js'; import { spo } from '../../../../utils/spo.js'; import SpoCommand from '../../../base/SpoCommand.js'; import commands from '../../commands.js'; - - class SpoHomeSiteListCommand extends SpoCommand { public get name(): string { return commands.HOMESITE_LIST; @@ -20,18 +18,16 @@ class SpoHomeSiteListCommand extends SpoCommand { public async commandAction(logger: Logger): Promise { try { - const spoUrl: string = await spo.getSpoAdminUrl(logger, this.debug); + const spoAdminUrl: string = await spo.getSpoAdminUrl(logger, this.debug); const requestOptions: any = { - url: `${spoUrl}/_api/SPO.Tenant/GetTargetedSitesDetails`, + url: `${spoAdminUrl}/_api/SPO.Tenant/GetTargetedSitesDetails`, headers: { accept: 'application/json;odata=nometadata' }, responseType: 'json' }; - const res = await request.get(requestOptions); - if (res) { - await logger.log(res); - } + const res = await odata.getAllItems(requestOptions); + await logger.log(res); } catch (err: any) { this.handleRejectedODataJsonPromise(err); From 1efc3291235b4c422e106367c955b9ed26394c3b Mon Sep 17 00:00:00 2001 From: Reshmee Auckloo Date: Wed, 20 Nov 2024 09:08:17 +0000 Subject: [PATCH 04/20] Update docs/docs/cmd/spo/homesite/homesite-list.mdx Co-authored-by: Milan Holemans <11723921+milanholemans@users.noreply.github.com> --- docs/docs/cmd/spo/homesite/homesite-list.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/cmd/spo/homesite/homesite-list.mdx b/docs/docs/cmd/spo/homesite/homesite-list.mdx index 0b700149c2c..65f95987fcc 100644 --- a/docs/docs/cmd/spo/homesite/homesite-list.mdx +++ b/docs/docs/cmd/spo/homesite/homesite-list.mdx @@ -4,7 +4,7 @@ import TabItem from '@theme/TabItem'; # spo homesite list -Lists all the Home Sites +Lists all home sites ## Usage From b0d5aba71f15c1789007b4167aa9f4ef81c53ab7 Mon Sep 17 00:00:00 2001 From: Reshmee Auckloo Date: Wed, 20 Nov 2024 09:08:27 +0000 Subject: [PATCH 05/20] Update docs/docs/cmd/spo/homesite/homesite-list.mdx Co-authored-by: Milan Holemans <11723921+milanholemans@users.noreply.github.com> --- docs/docs/cmd/spo/homesite/homesite-list.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/cmd/spo/homesite/homesite-list.mdx b/docs/docs/cmd/spo/homesite/homesite-list.mdx index 65f95987fcc..7a89f2d416d 100644 --- a/docs/docs/cmd/spo/homesite/homesite-list.mdx +++ b/docs/docs/cmd/spo/homesite/homesite-list.mdx @@ -18,7 +18,7 @@ m365 spo homesite list [options] ## Examples -Lists all the Home Sites +List all the home sites ```sh m365 spo homesite list From a892672f966e4d8ef08e310116d25f5a42c72912 Mon Sep 17 00:00:00 2001 From: Reshmee Auckloo Date: Wed, 20 Nov 2024 10:19:54 +0000 Subject: [PATCH 06/20] Update src/m365/spo/commands/homesite/homesite-list.ts Co-authored-by: Milan Holemans <11723921+milanholemans@users.noreply.github.com> --- src/m365/spo/commands/homesite/homesite-list.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m365/spo/commands/homesite/homesite-list.ts b/src/m365/spo/commands/homesite/homesite-list.ts index 500cc83b6cf..271f4813b28 100644 --- a/src/m365/spo/commands/homesite/homesite-list.ts +++ b/src/m365/spo/commands/homesite/homesite-list.ts @@ -9,7 +9,7 @@ class SpoHomeSiteListCommand extends SpoCommand { } public get description(): string { - return 'Lists available Home Sites'; + return 'Lists all home sites'; } public defaultProperties(): string[] | undefined { From 70c06d937d008f0f75dcbcceefb979b0f31e0d08 Mon Sep 17 00:00:00 2001 From: reshmee011 Date: Wed, 20 Nov 2024 10:20:23 +0000 Subject: [PATCH 07/20] update --- .../commands/homesite/homesite-list.spec.ts | 20 +++---------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/src/m365/spo/commands/homesite/homesite-list.spec.ts b/src/m365/spo/commands/homesite/homesite-list.spec.ts index 814e07499fb..b3b92a76b9e 100644 --- a/src/m365/spo/commands/homesite/homesite-list.spec.ts +++ b/src/m365/spo/commands/homesite/homesite-list.spec.ts @@ -59,7 +59,7 @@ describe(commands.HOMESITE_LIST, () => { sinon.stub(pid, 'getProcessName').returns(''); sinon.stub(session, 'getId').returns(''); auth.connection.active = true; - auth.connection.spoUrl = 'https://contoso-admin.sharepoint.com'; + auth.connection.spoUrl = 'https://contoso.sharepoint.com'; }); beforeEach(() => { @@ -102,27 +102,13 @@ describe(commands.HOMESITE_LIST, () => { assert.deepStrictEqual(command.defaultProperties(), ['Url', 'Title']); }); - it('lists available home sites', async () => { - sinon.stub(request, 'get').callsFake(async (opts) => { - if ((opts.url as string).indexOf(`/GetTargetedSitesDetails`) > -1) { - return homeSites; - } - - throw 'Invalid request'; - }); - - await command.action(logger, { options: { output: 'json' } }); - - assert(loggerLogSpy.calledWith(homeSites.value)); - }); - it('lists available home sites (debug)', async () => { sinon.stub(request, 'get').callsFake(async (opts) => { - if ((opts.url as string).indexOf(`/GetTargetedSitesDetails`) > -1) { + if (opts.url === `https://contoso-admin.sharepoint.com/_api/SPO.Tenant/GetTargetedSitesDetails`) { return homeSites; } - throw 'Invalid request'; + throw opts.url; }); await command.action(logger, { options: { debug: true, output: 'json' } }); From 756b607d3120b44146b0db19a32b9c5829045022 Mon Sep 17 00:00:00 2001 From: Reshmee Auckloo Date: Wed, 20 Nov 2024 23:07:19 +0000 Subject: [PATCH 08/20] Update src/m365/spo/commands/homesite/homesite-list.ts Co-authored-by: Milan Holemans <11723921+milanholemans@users.noreply.github.com> --- src/m365/spo/commands/homesite/homesite-list.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m365/spo/commands/homesite/homesite-list.ts b/src/m365/spo/commands/homesite/homesite-list.ts index 271f4813b28..de2c29ce8a8 100644 --- a/src/m365/spo/commands/homesite/homesite-list.ts +++ b/src/m365/spo/commands/homesite/homesite-list.ts @@ -19,7 +19,7 @@ class SpoHomeSiteListCommand extends SpoCommand { public async commandAction(logger: Logger): Promise { try { const spoAdminUrl: string = await spo.getSpoAdminUrl(logger, this.debug); - const requestOptions: any = { + const requestOptions: CliRequestOptions = { url: `${spoAdminUrl}/_api/SPO.Tenant/GetTargetedSitesDetails`, headers: { accept: 'application/json;odata=nometadata' From abcdb9662df262208f1920b315724f240c7f4002 Mon Sep 17 00:00:00 2001 From: Reshmee Auckloo Date: Wed, 20 Nov 2024 23:07:54 +0000 Subject: [PATCH 09/20] Update src/m365/spo/commands/homesite/homesite-list.spec.ts Co-authored-by: Milan Holemans <11723921+milanholemans@users.noreply.github.com> --- src/m365/spo/commands/homesite/homesite-list.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/m365/spo/commands/homesite/homesite-list.spec.ts b/src/m365/spo/commands/homesite/homesite-list.spec.ts index b3b92a76b9e..e7237e83f5a 100644 --- a/src/m365/spo/commands/homesite/homesite-list.spec.ts +++ b/src/m365/spo/commands/homesite/homesite-list.spec.ts @@ -102,7 +102,7 @@ describe(commands.HOMESITE_LIST, () => { assert.deepStrictEqual(command.defaultProperties(), ['Url', 'Title']); }); - it('lists available home sites (debug)', async () => { + it('lists available home sites', async () => { sinon.stub(request, 'get').callsFake(async (opts) => { if (opts.url === `https://contoso-admin.sharepoint.com/_api/SPO.Tenant/GetTargetedSitesDetails`) { return homeSites; @@ -111,7 +111,7 @@ describe(commands.HOMESITE_LIST, () => { throw opts.url; }); - await command.action(logger, { options: { debug: true, output: 'json' } }); + await command.action(logger, { options: { verbose: true } }); assert(loggerLogSpy.calledWith(homeSites.value)); }); From 15d3652840eff5a9ce981fb4a7d5b50b098b48db Mon Sep 17 00:00:00 2001 From: Reshmee Auckloo Date: Wed, 20 Nov 2024 23:08:07 +0000 Subject: [PATCH 10/20] Update docs/docs/cmd/spo/homesite/homesite-list.mdx Co-authored-by: Milan Holemans <11723921+milanholemans@users.noreply.github.com> --- docs/docs/cmd/spo/homesite/homesite-list.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/cmd/spo/homesite/homesite-list.mdx b/docs/docs/cmd/spo/homesite/homesite-list.mdx index 7a89f2d416d..37ee38dca54 100644 --- a/docs/docs/cmd/spo/homesite/homesite-list.mdx +++ b/docs/docs/cmd/spo/homesite/homesite-list.mdx @@ -18,7 +18,7 @@ m365 spo homesite list [options] ## Examples -List all the home sites +List all home sites ```sh m365 spo homesite list From 508b84fb2e9732d9ba7b07bf4f4f3d270af6adf6 Mon Sep 17 00:00:00 2001 From: Reshmee Auckloo Date: Wed, 20 Nov 2024 23:08:40 +0000 Subject: [PATCH 11/20] Update docs/docs/cmd/spo/homesite/homesite-list.mdx Co-authored-by: Milan Holemans <11723921+milanholemans@users.noreply.github.com> --- docs/docs/cmd/spo/homesite/homesite-list.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/cmd/spo/homesite/homesite-list.mdx b/docs/docs/cmd/spo/homesite/homesite-list.mdx index 37ee38dca54..76c7e893e49 100644 --- a/docs/docs/cmd/spo/homesite/homesite-list.mdx +++ b/docs/docs/cmd/spo/homesite/homesite-list.mdx @@ -79,7 +79,7 @@ https://contoso.sharepoint.com/sites/TheLanding The Landing ```md - m365 spo homesite list --output md + m365 spo homesite list # spo homesite list Date: 11/18/2024 From 376b1b21272da26b6f8139c293e4395d19c5f0e9 Mon Sep 17 00:00:00 2001 From: reshmee011 Date: Wed, 20 Nov 2024 23:23:43 +0000 Subject: [PATCH 12/20] latest changes after Milan's review --- docs/docs/cmd/spo/homesite/homesite-list.mdx | 43 ++++++++----------- .../spo/commands/homesite/homesite-list.ts | 4 ++ 2 files changed, 23 insertions(+), 24 deletions(-) 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); } From aea2196ee3bfa8315182ca0c2cd5d0db4716271d Mon Sep 17 00:00:00 2001 From: reshmee011 Date: Wed, 20 Nov 2024 23:34:16 +0000 Subject: [PATCH 13/20] One line after imports --- src/m365/spo/commands/homesite/homesite-list.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/m365/spo/commands/homesite/homesite-list.ts b/src/m365/spo/commands/homesite/homesite-list.ts index e636ce883c3..3d0c4ac5488 100644 --- a/src/m365/spo/commands/homesite/homesite-list.ts +++ b/src/m365/spo/commands/homesite/homesite-list.ts @@ -4,6 +4,7 @@ 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; From 856a5ce41f0049700dc8c20e0525737294b40288 Mon Sep 17 00:00:00 2001 From: Reshmee Auckloo Date: Sun, 24 Nov 2024 06:25:40 +0000 Subject: [PATCH 14/20] Update src/m365/spo/commands/homesite/homesite-list.ts Co-authored-by: Milan Holemans <11723921+milanholemans@users.noreply.github.com> --- src/m365/spo/commands/homesite/homesite-list.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m365/spo/commands/homesite/homesite-list.ts b/src/m365/spo/commands/homesite/homesite-list.ts index 3d0c4ac5488..1fe842b9b19 100644 --- a/src/m365/spo/commands/homesite/homesite-list.ts +++ b/src/m365/spo/commands/homesite/homesite-list.ts @@ -20,7 +20,7 @@ class SpoHomeSiteListCommand extends SpoCommand { public async commandAction(logger: Logger): Promise { try { - const spoAdminUrl: string = await spo.getSpoAdminUrl(logger, this.debug); + const spoAdminUrl: string = await spo.getSpoAdminUrl(logger, this.verbose); const requestOptions: CliRequestOptions = { url: `${spoAdminUrl}/_api/SPO.Tenant/GetTargetedSitesDetails`, headers: { From f2ddd9b3380e90e0741b10a0cdc7a0f139dfd363 Mon Sep 17 00:00:00 2001 From: Reshmee Auckloo Date: Sun, 24 Nov 2024 06:25:51 +0000 Subject: [PATCH 15/20] Update src/m365/spo/commands/homesite/homesite-list.ts Co-authored-by: Milan Holemans <11723921+milanholemans@users.noreply.github.com> --- src/m365/spo/commands/homesite/homesite-list.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m365/spo/commands/homesite/homesite-list.ts b/src/m365/spo/commands/homesite/homesite-list.ts index 1fe842b9b19..16e90e80323 100644 --- a/src/m365/spo/commands/homesite/homesite-list.ts +++ b/src/m365/spo/commands/homesite/homesite-list.ts @@ -29,7 +29,7 @@ class SpoHomeSiteListCommand extends SpoCommand { responseType: 'json' }; if (this.verbose) { - await logger.logToStderr(`List all home sites...`); + await logger.logToStderr(`Retrieving all home sites...`); } const res = await odata.getAllItems(requestOptions); await logger.log(res); From 1a08980de1d2efb1c537f67e7a48f99b6ec0525d Mon Sep 17 00:00:00 2001 From: Reshmee Auckloo Date: Sun, 24 Nov 2024 06:31:01 +0000 Subject: [PATCH 16/20] Update docs/docs/cmd/spo/homesite/homesite-list.mdx Co-authored-by: Milan Holemans <11723921+milanholemans@users.noreply.github.com> --- docs/docs/cmd/spo/homesite/homesite-list.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/cmd/spo/homesite/homesite-list.mdx b/docs/docs/cmd/spo/homesite/homesite-list.mdx index cccdfbf9062..611accafbda 100644 --- a/docs/docs/cmd/spo/homesite/homesite-list.mdx +++ b/docs/docs/cmd/spo/homesite/homesite-list.mdx @@ -57,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 ``` From 5eb45fbcf0dc944d76a33c965338a394dd06685f Mon Sep 17 00:00:00 2001 From: reshmee011 Date: Sun, 24 Nov 2024 07:02:10 +0000 Subject: [PATCH 17/20] changes to the md file --- docs/docs/cmd/spo/homesite/homesite-list.mdx | 42 +++++++++----------- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/docs/docs/cmd/spo/homesite/homesite-list.mdx b/docs/docs/cmd/spo/homesite/homesite-list.mdx index 611accafbda..269fdaddfc3 100644 --- a/docs/docs/cmd/spo/homesite/homesite-list.mdx +++ b/docs/docs/cmd/spo/homesite/homesite-list.mdx @@ -30,27 +30,25 @@ m365 spo homesite list ```json - { - "value": [ - { - "Audiences": [ - { - "Email": "ColumnSearchable@contoso.onmicrosoft.com", - "Id": "978b5280-4f80-47ea-a1db-b0d1d2fb1ba4", - "Title": "ColumnSearchable Members" - } - ], - "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" - } - ] - } + [ + { + "Audiences": [ + { + "Email": "ColumnSearchable@contoso.onmicrosoft.com", + "Id": "978b5280-4f80-47ea-a1db-b0d1d2fb1ba4", + "Title": "ColumnSearchable Members" + } + ], + "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" + } + ] ``` @@ -74,7 +72,6 @@ m365 spo homesite list ```md - m365 spo homesite list # spo homesite list Date: 11/18/2024 @@ -90,7 +87,6 @@ m365 spo homesite list VivaConnectionsDefaultStart | true WebId | 626c1724-8ac8-45d5-af87-c07c752fab75 ``` - From cb30e6bc28131179f1339e562e258dd7c62a2131 Mon Sep 17 00:00:00 2001 From: reshmee011 Date: Thu, 28 Nov 2024 12:43:51 +0000 Subject: [PATCH 18/20] update to move home site list under tenant location --- .../tenant-homesite-list.mdx} | 4 ++-- docs/src/config/sidebars.ts | 10 +++++----- src/m365/spo/commands.ts | 2 +- .../tenant-homesite-list.spec.ts} | 6 +++--- .../tenant-homesite-list.ts} | 6 +++--- 5 files changed, 14 insertions(+), 14 deletions(-) rename docs/docs/cmd/spo/{homesite/homesite-list.mdx => tenant/tenant-homesite-list.mdx} (96%) rename src/m365/spo/commands/{homesite/homesite-list.spec.ts => tenant/tenant-homesite-list.spec.ts} (95%) rename src/m365/spo/commands/{homesite/homesite-list.ts => tenant/tenant-homesite-list.ts} (88%) diff --git a/docs/docs/cmd/spo/homesite/homesite-list.mdx b/docs/docs/cmd/spo/tenant/tenant-homesite-list.mdx similarity index 96% rename from docs/docs/cmd/spo/homesite/homesite-list.mdx rename to docs/docs/cmd/spo/tenant/tenant-homesite-list.mdx index 269fdaddfc3..aca1da65c81 100644 --- a/docs/docs/cmd/spo/homesite/homesite-list.mdx +++ b/docs/docs/cmd/spo/tenant/tenant-homesite-list.mdx @@ -9,7 +9,7 @@ Lists all home sites ## Usage ```sh -m365 spo homesite list [options] +m365 spo tenant homesite list [options] ``` ## Options @@ -21,7 +21,7 @@ m365 spo homesite list [options] List all home sites ```sh -m365 spo homesite list +m365 spo tenant homesite list ``` ## Response diff --git a/docs/src/config/sidebars.ts b/docs/src/config/sidebars.ts index f2c6718bcde..4cc27250433 100644 --- a/docs/src/config/sidebars.ts +++ b/docs/src/config/sidebars.ts @@ -2710,11 +2710,6 @@ const sidebars: SidebarsConfig = { label: 'homesite get', id: 'cmd/spo/homesite/homesite-get' }, - { - type: 'doc', - label: 'homesite list', - id: 'cmd/spo/homesite/homesite-list' - }, { type: 'doc', label: 'homesite remove', @@ -3742,6 +3737,11 @@ const sidebars: SidebarsConfig = { label: 'tenant commandset set', id: 'cmd/spo/tenant/tenant-commandset-set' }, + { + type: 'doc', + label: 'homesite list', + id: 'cmd/spo/tenant/tenant-homesite-list' + }, { type: 'doc', label: 'tenant recyclebinitem list', diff --git a/src/m365/spo/commands.ts b/src/m365/spo/commands.ts index bc1a1f81ef8..f17b2edca20 100644 --- a/src/m365/spo/commands.ts +++ b/src/m365/spo/commands.ts @@ -118,7 +118,6 @@ export default { HIDEDEFAULTTHEMES_GET: `${prefix} hidedefaultthemes get`, HIDEDEFAULTTHEMES_SET: `${prefix} hidedefaultthemes set`, HOMESITE_GET: `${prefix} homesite get`, - HOMESITE_LIST: `${prefix} homesite list`, HOMESITE_REMOVE: `${prefix} homesite remove`, HOMESITE_SET: `${prefix} homesite set`, HUBSITE_CONNECT: `${prefix} hubsite connect`, @@ -319,6 +318,7 @@ export default { TENANT_COMMANDSET_LIST: `${prefix} tenant commandset list`, TENANT_COMMANDSET_REMOVE: `${prefix} tenant commandset remove`, TENANT_COMMANDSET_SET: `${prefix} tenant commandset set`, + TENANT_HOMESITE_LIST: `${prefix} tenant homesite list`, TENANT_RECYCLEBINITEM_LIST: `${prefix} tenant recyclebinitem list`, TENANT_RECYCLEBINITEM_REMOVE: `${prefix} tenant recyclebinitem remove`, TENANT_RECYCLEBINITEM_RESTORE: `${prefix} tenant recyclebinitem restore`, diff --git a/src/m365/spo/commands/homesite/homesite-list.spec.ts b/src/m365/spo/commands/tenant/tenant-homesite-list.spec.ts similarity index 95% rename from src/m365/spo/commands/homesite/homesite-list.spec.ts rename to src/m365/spo/commands/tenant/tenant-homesite-list.spec.ts index e7237e83f5a..c046e6d4b74 100644 --- a/src/m365/spo/commands/homesite/homesite-list.spec.ts +++ b/src/m365/spo/commands/tenant/tenant-homesite-list.spec.ts @@ -9,9 +9,9 @@ import { pid } from '../../../../utils/pid.js'; import { session } from '../../../../utils/session.js'; import { sinonUtil } from '../../../../utils/sinonUtil.js'; import commands from '../../commands.js'; -import command from './homesite-list.js'; +import command from './tenant-homesite-list.js'; -describe(commands.HOMESITE_LIST, () => { +describe(commands.TENANT_HOMESITE_LIST, () => { let log: string[]; let logger: Logger; let loggerLogSpy: sinon.SinonSpy; @@ -91,7 +91,7 @@ describe(commands.HOMESITE_LIST, () => { }); it('has correct name', () => { - assert.strictEqual(command.name, commands.HOMESITE_LIST); + assert.strictEqual(command.name, commands.TENANT_HOMESITE_LIST); }); it('has a description', () => { diff --git a/src/m365/spo/commands/homesite/homesite-list.ts b/src/m365/spo/commands/tenant/tenant-homesite-list.ts similarity index 88% rename from src/m365/spo/commands/homesite/homesite-list.ts rename to src/m365/spo/commands/tenant/tenant-homesite-list.ts index 16e90e80323..5595fb39207 100644 --- a/src/m365/spo/commands/homesite/homesite-list.ts +++ b/src/m365/spo/commands/tenant/tenant-homesite-list.ts @@ -5,9 +5,9 @@ import SpoCommand from '../../../base/SpoCommand.js'; import commands from '../../commands.js'; import { CliRequestOptions } from "../../../../request.js"; -class SpoHomeSiteListCommand extends SpoCommand { +class SpoTenantHomeSiteListCommand extends SpoCommand { public get name(): string { - return commands.HOMESITE_LIST; + return commands.TENANT_HOMESITE_LIST; } public get description(): string { @@ -40,4 +40,4 @@ class SpoHomeSiteListCommand extends SpoCommand { } } -export default new SpoHomeSiteListCommand(); \ No newline at end of file +export default new SpoTenantHomeSiteListCommand(); \ No newline at end of file From 1181f3a9522fb70b58f5bff2fca6d55bf5a0aaf2 Mon Sep 17 00:00:00 2001 From: Reshmee Auckloo Date: Sun, 15 Dec 2024 03:43:32 +0000 Subject: [PATCH 19/20] Update docs/docs/cmd/spo/tenant/tenant-homesite-list.mdx Co-authored-by: Milan Holemans <11723921+milanholemans@users.noreply.github.com> --- docs/docs/cmd/spo/tenant/tenant-homesite-list.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/cmd/spo/tenant/tenant-homesite-list.mdx b/docs/docs/cmd/spo/tenant/tenant-homesite-list.mdx index aca1da65c81..78fb188f74c 100644 --- a/docs/docs/cmd/spo/tenant/tenant-homesite-list.mdx +++ b/docs/docs/cmd/spo/tenant/tenant-homesite-list.mdx @@ -2,7 +2,7 @@ import Global from '/docs/cmd/_global.mdx'; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -# spo homesite list +# spo tenant homesite list Lists all home sites From f80fc37dda20352b53dcee418b35cf1df59badb0 Mon Sep 17 00:00:00 2001 From: Reshmee Auckloo Date: Sun, 15 Dec 2024 03:43:42 +0000 Subject: [PATCH 20/20] Update docs/src/config/sidebars.ts Co-authored-by: Milan Holemans <11723921+milanholemans@users.noreply.github.com> --- docs/src/config/sidebars.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/config/sidebars.ts b/docs/src/config/sidebars.ts index 4cc27250433..1d41ebdeff4 100644 --- a/docs/src/config/sidebars.ts +++ b/docs/src/config/sidebars.ts @@ -3739,7 +3739,7 @@ const sidebars: SidebarsConfig = { }, { type: 'doc', - label: 'homesite list', + label: 'tenant homesite list', id: 'cmd/spo/tenant/tenant-homesite-list' }, {