Skip to content

spo site rename

Renames the URL and title of a site collection


m365 spo site rename [options]


-u, --siteUrl <siteUrl>
The URL of the site to rename
--newSiteUrl <newSiteUrl>
New URL for the site collection
--newSiteTitle [newSiteTitle]
New title for the site
Suppress marketplace app check
Suppress 2013 workflow check
Wait for the job to complete
-h, --help
output usage information
--query [query]
JMESPath query string. See for more information and examples
-o, --output [output]
Output type. json,text. Default text
Runs command with verbose logging
Runs command with debug logging


To use this command you must have permissions to access the tenant admin site.


Renaming site collections is by default asynchronous and depending on the current state of Microsoft 365, might take up to few minutes. If you're building a script with steps that require the operation to complete fully, you should use the --wait flag. When using this flag, the spo site rename command will keep running until it receives confirmation from Microsoft 365 that the site rename operation has completed.


Starts the rename of the site collection with name "samplesite" to "renamed" without modifying the title

m365 spo site rename --siteUrl --newSiteUrl

Starts the rename of the site collection with name "samplesite" to "renamed" modifying the title of the site to "New Title"

m365 spo site rename --siteUrl --newSiteUrl --newSiteTitle "New Title"

Renames the specified site collection and waits for the operation to complete

m365 spo site rename --siteUrl --newSiteUrl --newSiteTitle "New Title" --wait