forked from pnp/cli-microsoft365
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the 'spo web set' command solving pnp#191
- Loading branch information
1 parent
d362639
commit 8dd78fb
Showing
6 changed files
with
621 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# spo web set | ||
|
||
Updates subsite properties | ||
|
||
## Usage | ||
|
||
```sh | ||
spo web set [options] | ||
``` | ||
|
||
## Options | ||
|
||
Option|Description | ||
------|----------- | ||
`--help`|output usage information | ||
`-u, --webUrl <webUrl>`|URL of the subsite to update | ||
`-t, --title [title]`|New title for the subsite | ||
`-d, --description [description]`|New description for the subsite | ||
`--siteLogoUrl [siteLogoUrl]`|New site logo URL for the subsite | ||
`--quickLaunchEnabled [quickLaunchEnabled]`|Set to `true` to enable quick launch and to `false` to disable it | ||
`-o, --output [output]`|Output type. `json|text`. Default `text` | ||
`--verbose`|Runs command with verbose logging | ||
`--debug`|Runs command with debug logging | ||
|
||
!!! important | ||
Before using this command, connect to a SharePoint Online site, using the [spo connect](../connect.md) command. | ||
|
||
## Remarks | ||
|
||
To update subsite properties, you have to first connect to a SharePoint site using the [spo connect](../connect.md) command, eg. `spo connect https://contoso.sharepoint.com`. | ||
|
||
## Examples | ||
|
||
Update subsite title | ||
|
||
```sh | ||
spo web set --webUrl https://contoso.sharepoint.com/sites/team-a --title Team-a | ||
``` | ||
|
||
Hide quick launch on the subsite | ||
|
||
```sh | ||
spo web set --webUrl https://contoso.sharepoint.com/sites/team-a --quickLaunchEnabled false | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.