Priority
(Low) Something is a little off
Description
None of the examples mentioned in the documentation for this command are yielding the expected results.
Steps to reproduce
- Log in to Microsoft 365
- Execute examples as suggested in
spo site ensure docs
Expected results
m365 spo site ensure --url https://contoso.sharepoint.com/sites/team1 --alias team1 --title "Team 1" should not throw error on existing site.
m365 spo site ensure --url https://7566ava.sharepoint.com/sites/commsite --title commsite --type ClassicSite should not update the title, and it should throw error.
m365 spo site ensure --url https://contoso.sharepoint.com/sites/team1 --alias team1 --title "Team 1" --isPublic --shareByEmailEnabled should accept --shareByEmailEnabled option
Actual results
m365 spo site ensure --url https://contoso.sharepoint.com/teams/team1 --alias team1 --title "Team 1" should update the title if site exists.
m365 spo site ensure --url https://7566ava.sharepoint.com/sites/commsite --title commsite --type ClassicSite running this command on an existing communication site should throw error.
m365 spo site ensure --url https://contoso.sharepoint.com/sites/team1 --alias team1 --title "Team 1" --isPublic --shareByEmailEnabled does not accept --shareByEmailEnabled as suggested in example
Diagnostics
No response
CLI for Microsoft 365 version
v6.9.0
nodejs version
v18.16.0
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
No response
Additional Info
No response
Priority
(Low) Something is a little off
Description
None of the examples mentioned in the documentation for this command are yielding the expected results.
Steps to reproduce
spo site ensuredocsExpected results
m365 spo site ensure --url https://contoso.sharepoint.com/sites/team1 --alias team1 --title "Team 1"should not throw error on existing site.m365 spo site ensure --url https://7566ava.sharepoint.com/sites/commsite --title commsite --type ClassicSiteshould not update the title, and it should throw error.m365 spo site ensure --url https://contoso.sharepoint.com/sites/team1 --alias team1 --title "Team 1" --isPublic --shareByEmailEnabledshould accept--shareByEmailEnabledoptionActual results
m365 spo site ensure --url https://contoso.sharepoint.com/teams/team1 --alias team1 --title "Team 1"should update the title if site exists.m365 spo site ensure --url https://7566ava.sharepoint.com/sites/commsite --title commsite --type ClassicSiterunning this command on an existing communication site should throw error.m365 spo site ensure --url https://contoso.sharepoint.com/sites/team1 --alias team1 --title "Team 1" --isPublic --shareByEmailEnableddoes not accept--shareByEmailEnabledas suggested in exampleDiagnostics
No response
CLI for Microsoft 365 version
v6.9.0
nodejs version
v18.16.0
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
No response
Additional Info
No response