pnp / cli-microsoft365

Manage Microsoft 365 and SharePoint Framework projects on any platform
https://aka.ms/cli-m365
MIT License
882 stars 312 forks source link

New command: m365 spo stx model publications list #6120

Closed mkm17 closed 18 hours ago

mkm17 commented 5 days ago

Usage

m365 spo stx model publications list [options]

Description

Retrieves information about a model and the library where it has been applied.

Options

Option Description
-u, --siteUrl <siteUrl> The URL of the content center site.
-i, --uniqueId [uniqueId] The ID of the model to retrieve. Specify either uniqueId or title, but not both.
-t, --title [title] The display name (case-sensitive) of the model to retrieve. Specify either uniqueId or title, but not both.

Examples

Gets information about a model and the library where it has been applied, using the model’s UniqueId:

m365 spo stx model publications list --siteUrl "https://contoso.sharepoint.com/sites/ContentCentre" --uniqueId "7645e69d-21fb-4a24-a17a-9bdfa7cb63dc"

Gets information about a model and the library where it has been applied, using the model’s Title:

m365 spo stx model publications list --siteUrl "https://contoso.sharepoint.com/sites/ContentCentre" --title "climicrosoft365Model"

Default properties

Additional Info

This endpoint should be used -> https://learn.microsoft.com/en-us/sharepoint/dev/apis/syntex/rest-getmodelandlibraryinfo

Adam-it commented 4 days ago

@mkm17 I wonder if we need a separate command for that. Seems like additional proprties that could be retrieved as part of model get command? What if we would have some additional option like --listPublications flag that when specified in the model get would retrieve this as an additional output. That way this separate command won't be needed. I am very interested in your opinion on that? I wonder if it will be 'visible' and easy to find functionality for others 🤔 a sperate command if for sure always easier to find than an setting/option in an existing command 🤔

@pnp/cli-for-microsoft-365-maintainers what do you think?

mkm17 commented 19 hours ago

@Adam-it good idea, we can merge both commands into one :) then we can just close this issue.

Adam-it commented 18 hours ago

@Adam-it good idea, we can merge both commands into one :) then we can just close this issue.

awesome. Lets update the model get command that with new option. I will close this issue then 👍