Skip to content

New command: spo commandset list #4329

@martinlingstuyl

Description

@martinlingstuyl

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions