spo set --url <url>
Sets the context URL for the root SharePoint site collection.
| Option |
Description |
--url |
The URL of the root SharePoint site collection |
Rationale
In v2, Office 365 CLI automatically discovers the URL of the root SharePoint site collection/SharePoint tenant admin site (whichever is needed to run the particular command). In specific cases, like when managing multi-geo Office 365 tenant, it could be desirable to make the CLI manage the specific geography. For such cases, you can use this command to explicitly specify the SPO URL that should be used when executing SPO commands.
spo set --url <url>Sets the context URL for the root SharePoint site collection.
--urlRationale
In v2, Office 365 CLI automatically discovers the URL of the root SharePoint site collection/SharePoint tenant admin site (whichever is needed to run the particular command). In specific cases, like when managing multi-geo Office 365 tenant, it could be desirable to make the CLI manage the specific geography. For such cases, you can use this command to explicitly specify the SPO URL that should be used when executing SPO commands.