Let's expand the command spo list get with the possibility to retrieve the default list in a site.
This means that options id, title, and url will no longer be required.
Options
| Option |
Description |
--default |
Get the default list of the site. |
Example
m365 spo list get --webUrl https://contoso.sharepoint.com/sites/project-x --default
API request
GET https://contoso.sharepoint.com/sites/project-x/_api/web/DefaultDocumentLibrary
Personally, I would find it useful to expand RootFolder by default. This contains some useful information of the list (like server relative URL). Not everyone has knowledge of which properties are available to expand on a list object. Therefore I think it would make it a bit more user-friendly. Does anyone agree to expand this property by default or should we leave it this way?
Let's expand the command spo list get with the possibility to retrieve the default list in a site.
This means that options
id,title, andurlwill no longer be required.Options
--defaultExample
API request
Personally, I would find it useful to expand
RootFolderby default. This contains some useful information of the list (like server relative URL). Not everyone has knowledge of which properties are available to expand on a list object. Therefore I think it would make it a bit more user-friendly. Does anyone agree to expand this property by default or should we leave it this way?