-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New command: spo site ensure #1404
Comments
Looks great! Thank you! |
Looks good to me 👍🏻 The descriptions for |
@garrytrinder good catch and fixed. Seems like MkDocs is more forgiving than GitHub MD. |
Before we can start implementing this command, we need to extend the |
Usage
spo site ensure [options]
Description
Ensures that the particular site collection exists and updates its properties if necessary. The command is a combination of
spo site get
,spo site add
andspo site set
.Options
--help
-u, --url <url>
--type [type]
TeamSite,CommunicationSite
, defaultTeamSite
-a, --alias [alias]
-t, --title [title]
-d, --description [description]
-c, --classification [classification]
-l, --lcid [lcid]
--isPublic
--shareByEmailEnabled [shareByEmailEnabled]
true
to allow to share files with guests (applies only to communication sites)--siteDesign [siteDesign]
Topic,Showcase,Blank
, defaultTopic
. When creating a communication site, specify eithersiteDesign
orsiteDesignId
(applies only to communication sites)--siteDesignId [siteDesignId]
siteDesign
orsiteDesignId
(applies only to communication sites)--owners [owners]
--classification [classification]
--disableFlows [disableFlows]
true
to disable using Microsoft Flow in this site collection--query [query]
-o, --output [output]
json,text
. Defaulttext
--pretty
json
output--verbose
--debug
Additional Information
If you specify the
type
option and the template of the existing site doesn't match it, the command will return an error. If you don't specifytype
and the site already exists, the command will not validate the type. If you don't specifytype
and no site exists at the specified URL, the command will create a team site (default value).If you set the
type
option toTeamSite
or don't specify it, you must specify thealias
option which is required to create a team site if it doesn't exist.If you specify the
lcid
option and the language of the existing site doesn't match it, the command will return an error.If the specified site already exists, options
alias
,siteDesign
andsiteDesignId
are ignored because they're used only for site creation.@garrytrinder @VelinGeorgiev looking forward to your feedback on the spec
The text was updated successfully, but these errors were encountered: