Usage
spo commandset list [options]
Description
Get a list of ListView Command Sets that are added to a site.
Options
| Option |
Description |
-u, --webUrl <webUrl> |
The url of the site. |
-s, --scope [scope] |
Scope of the ListView Command Sets. Allowed values: Site, Web, All. Defaults to All. |
Examples
Retrieves a list of ListView Command Sets.
m365 spo commandset list --webUrl https://contoso.sharepoint.com/sites/sales
Additional Info
While developing we want to reuse the getCustomActions function of the spo util class.
We can use the shared code to only query customactions with a location value of ClientSideExtension.ListViewCommandSet, ClientSideExtension.ListViewCommandSet.CommandBar or , ClientSideExtension.ListViewCommandSet.ContextMenu.
Usage
spo commandset list [options]
Description
Get a list of ListView Command Sets that are added to a site.
Options
-u, --webUrl <webUrl>-s, --scope [scope]Site,Web,All. Defaults toAll.Examples
Retrieves a list of ListView Command Sets.
Additional Info
While developing we want to reuse the
getCustomActionsfunction of the spo util class.We can use the shared code to only query customactions with a location value of
ClientSideExtension.ListViewCommandSet,ClientSideExtension.ListViewCommandSet.CommandBaror ,ClientSideExtension.ListViewCommandSet.ContextMenu.