@pnp/cli-microsoft365 6.3.0-beta.655c566 → 6.3.0-beta.80fcd21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/appInsights.js +2 -1
- package/dist/cli/Cli.js +58 -1
- package/dist/m365/aad/commands/license/license-list.js +41 -0
- package/dist/m365/aad/commands/user/user-add.js +223 -0
- package/dist/m365/aad/commands/user/user-license-add.js +88 -0
- package/dist/m365/aad/commands/user/user-license-list.js +99 -0
- package/dist/m365/aad/commands/user/user-license-remove.js +114 -0
- package/dist/m365/aad/commands/user/user-recyclebinitem-clear.js +103 -0
- package/dist/m365/aad/commands/user/user-recyclebinitem-list.js +41 -0
- package/dist/m365/aad/commands/user/user-recyclebinitem-remove.js +92 -0
- package/dist/m365/aad/commands/user/user-recyclebinitem-restore.js +77 -0
- package/dist/m365/aad/commands/user/user-remove.js +107 -0
- package/dist/m365/aad/commands.js +10 -0
- package/dist/m365/flow/commands/environment/FlowEnvironmentDetails.js +3 -0
- package/dist/m365/flow/commands/environment/environment-get.js +26 -11
- package/dist/m365/pa/commands/environment/environment-get.js +13 -5
- package/dist/m365/planner/commands/plan/plan-get.js +17 -10
- package/dist/m365/planner/commands/plan/plan-remove.js +1 -1
- package/dist/m365/planner/commands/roster/roster-member-remove.js +140 -0
- package/dist/m365/planner/commands.js +1 -0
- package/dist/m365/pp/commands/environment/environment-get.js +18 -9
- package/dist/m365/purview/commands/retentionevent/retentionevent-get.js +3 -4
- package/dist/m365/purview/commands/retentionevent/retentionevent-list.js +3 -4
- package/dist/m365/purview/commands/retentionevent/retentionevent-remove.js +97 -0
- package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-get.js +5 -0
- package/dist/m365/purview/commands/retentioneventtype/retentioneventtype-list.js +3 -4
- package/dist/m365/purview/commands/retentionlabel/retentionlabel-add.js +5 -0
- package/dist/m365/purview/commands/retentionlabel/retentionlabel-get.js +5 -0
- package/dist/m365/purview/commands/retentionlabel/retentionlabel-list.js +5 -0
- package/dist/m365/purview/commands/retentionlabel/retentionlabel-remove.js +5 -0
- package/dist/m365/purview/commands/retentionlabel/retentionlabel-set.js +11 -1
- package/dist/m365/purview/commands.js +1 -0
- package/dist/m365/spo/commands/customaction/customaction-get.js +17 -66
- package/dist/m365/spo/commands/customaction/customaction-list.js +2 -36
- package/dist/m365/spo/commands/customaction/customaction-remove.js +11 -18
- package/dist/m365/spo/commands/file/file-move.js +0 -2
- package/dist/m365/spo/commands/folder/folder-copy.js +0 -2
- package/dist/m365/spo/commands/folder/folder-move.js +0 -2
- package/dist/m365/spo/commands/site/site-add.js +0 -3
- package/dist/m365/spo/commands/site/site-remove.js +0 -3
- package/dist/m365/spo/commands/site/site-set.js +0 -2
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +0 -1
- package/dist/m365/teams/commands/team/team-add.js +3 -8
- package/dist/utils/aadUser.js +38 -0
- package/dist/utils/planner.js +1 -4
- package/dist/utils/session.js +18 -0
- package/dist/utils/spo.js +64 -12
- package/docs/docs/cmd/aad/license/license-list.md +87 -0
- package/docs/docs/cmd/aad/user/user-add.md +168 -0
- package/docs/docs/cmd/aad/user/user-license-add.md +108 -0
- package/docs/docs/cmd/aad/user/user-license-list.md +98 -0
- package/docs/docs/cmd/aad/user/user-license-remove.md +43 -0
- package/docs/docs/cmd/aad/user/user-recyclebinitem-clear.md +42 -0
- package/docs/docs/cmd/aad/user/user-recyclebinitem-list.md +82 -0
- package/docs/docs/cmd/aad/user/user-recyclebinitem-remove.md +45 -0
- package/docs/docs/cmd/aad/user/user-recyclebinitem-restore.md +99 -0
- package/docs/docs/cmd/aad/user/user-remove.md +51 -0
- package/docs/docs/cmd/aad/user/user-set.md +1 -1
- package/docs/docs/cmd/flow/environment/environment-get.md +31 -3
- package/docs/docs/cmd/login.md +26 -0
- package/docs/docs/cmd/logout.md +4 -0
- package/docs/docs/cmd/pa/environment/environment-get.md +8 -2
- package/docs/docs/cmd/planner/plan/plan-get.md +12 -12
- package/docs/docs/cmd/planner/roster/roster-member-remove.md +51 -0
- package/docs/docs/cmd/purview/retentionevent/retentionevent-list.md +1 -1
- package/docs/docs/cmd/purview/retentionevent/retentionevent-remove.md +45 -0
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-get.md +3 -0
- package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-list.md +1 -1
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-add.md +3 -0
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-get.md +3 -0
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-list.md +3 -0
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-remove.md +3 -0
- package/docs/docs/cmd/purview/retentionlabel/retentionlabel-set.md +3 -0
- package/docs/docs/cmd/request.md +74 -0
- package/docs/docs/cmd/spo/homesite/homesite-get.md +20 -1
- package/docs/docs/cmd/spo/homesite/homesite-remove.md +8 -2
- package/docs/docs/cmd/spo/homesite/homesite-set.md +8 -2
- package/docs/docs/cmd/spo/hubsite/hubsite-connect.md +9 -9
- package/docs/docs/cmd/spo/hubsite/hubsite-data-get.md +34 -5
- package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.md +6 -6
- package/docs/docs/cmd/spo/hubsite/hubsite-get.md +36 -19
- package/docs/docs/cmd/spo/hubsite/hubsite-list.md +59 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-register.md +30 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-grant.md +6 -6
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-revoke.md +4 -4
- package/docs/docs/cmd/spo/hubsite/hubsite-set.md +40 -15
- package/docs/docs/cmd/spo/hubsite/hubsite-unregister.md +4 -4
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-get.md +7 -1
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-remove.md +9 -3
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.md +8 -2
- package/docs/docs/cmd/spo/list/list-add.md +123 -57
- package/docs/docs/cmd/spo/list/list-contenttype-add.md +50 -5
- package/docs/docs/cmd/spo/list/list-contenttype-default-set.md +4 -4
- package/docs/docs/cmd/spo/list/list-contenttype-list.md +49 -4
- package/docs/docs/cmd/spo/list/list-contenttype-remove.md +6 -6
- package/docs/docs/cmd/spo/list/list-get.md +70 -4
- package/docs/docs/cmd/spo/list/list-list.md +70 -2
- package/docs/docs/cmd/spo/list/list-remove.md +6 -6
- package/docs/docs/cmd/spo/list/list-retentionlabel-ensure.md +2 -2
- package/docs/docs/cmd/spo/list/list-retentionlabel-get.md +36 -3
- package/docs/docs/cmd/spo/list/list-retentionlabel-remove.md +3 -3
- package/docs/docs/cmd/spo/list/list-roleassignment-add.md +6 -6
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.md +3 -3
- package/docs/docs/cmd/spo/list/list-roleinheritance-break.md +9 -9
- package/docs/docs/cmd/spo/list/list-roleinheritance-reset.md +7 -7
- package/docs/docs/cmd/spo/list/list-set.md +61 -61
- package/docs/docs/cmd/spo/list/list-sitescript-get.md +35 -3
- package/docs/docs/cmd/spo/list/list-view-add.md +66 -5
- package/docs/docs/cmd/spo/list/list-view-field-add.md +10 -10
- package/docs/docs/cmd/spo/list/list-view-get.md +61 -0
- package/docs/docs/cmd/spo/list/list-view-list.md +61 -0
- package/docs/docs/cmd/spo/list/list-view-set.md +1 -1
- package/docs/docs/cmd/spo/list/list-webhook-add.md +19 -0
- package/docs/docs/cmd/spo/list/list-webhook-get.md +19 -0
- package/docs/docs/cmd/spo/list/list-webhook-list.md +19 -0
- package/docs/docs/cmd/spo/listitem/listitem-add.md +29 -0
- package/docs/docs/cmd/spo/listitem/listitem-attachment-list.md +17 -2
- package/docs/docs/cmd/spo/listitem/listitem-get.md +57 -0
- package/docs/docs/cmd/spo/listitem/listitem-isrecord.md +6 -0
- package/docs/docs/cmd/spo/listitem/listitem-list.md +28 -0
- package/docs/docs/cmd/spo/listitem/listitem-record-declare.md +15 -0
- package/docs/docs/cmd/spo/listitem/listitem-set.md +30 -0
- package/docs/docs/cmd/spo/navigation/navigation-node-add.md +22 -0
- package/docs/docs/cmd/status.md +46 -0
- package/docs/docs/cmd/version.md +26 -0
- package/npm-shrinkwrap.json +912 -876
- package/package.json +13 -12
|
@@ -121,3 +121,64 @@ m365 spo list view list --webUrl https://contoso.sharepoint.com/sites/project-x
|
|
|
121
121
|
Id,Title,DefaultView,Hidden,BaseViewId
|
|
122
122
|
3cd2e934-f482-4d4a-a9b8-a13b49b3d226,All events,,,1
|
|
123
123
|
```
|
|
124
|
+
|
|
125
|
+
=== "Markdown"
|
|
126
|
+
|
|
127
|
+
```md
|
|
128
|
+
# spo list view list --webUrl "https://contoso.sharepoint.com" --listTitle "My List"
|
|
129
|
+
|
|
130
|
+
Date: 2/20/2023
|
|
131
|
+
|
|
132
|
+
## All Items (6275ed5c-8e4f-4e81-8060-2d9162b29952)
|
|
133
|
+
|
|
134
|
+
Property | Value
|
|
135
|
+
---------|-------
|
|
136
|
+
Aggregations | null
|
|
137
|
+
AggregationsStatus | null
|
|
138
|
+
AssociatedContentTypeId | null
|
|
139
|
+
BaseViewId | 1
|
|
140
|
+
CalendarViewStyles | null
|
|
141
|
+
ColumnWidth | null
|
|
142
|
+
ContentTypeId | {"StringValue":"0x"}
|
|
143
|
+
CustomFormatter |
|
|
144
|
+
CustomOrder | null
|
|
145
|
+
DefaultView | true
|
|
146
|
+
DefaultViewForContentType | false
|
|
147
|
+
EditorModified | false
|
|
148
|
+
Formats | null
|
|
149
|
+
GridLayout | null
|
|
150
|
+
Hidden | false
|
|
151
|
+
HtmlSchemaXml | <View Name="{6275ED5C-8E4F-4E81-8060-2D9162B29952}" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" Type="HTML" DisplayName="All Items" Url="/teams/AllStars/Lists/My List/AllItems.aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/\_layouts/15/images/generic.png?rev=47"><Query /><ViewFields><FieldRef Name="LinkTitle" /><FieldRef Name="FieldName1" /></ViewFields><Toolbar Type="Standard" /><CustomFormatter /><XslLink Default="TRUE">main.xsl</XslLink><JSLink>clienttemplates.js</JSLink><RowLimit Paged="TRUE">30</RowLimit><ParameterBindings><ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY\_LIST)" /><ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY\_DEFAULT)" /></ParameterBindings></View>
|
|
152
|
+
Id | 6275ed5c-8e4f-4e81-8060-2d9162b29952
|
|
153
|
+
ImageUrl | /\_layouts/15/images/generic.png?rev=47
|
|
154
|
+
IncludeRootFolder | false
|
|
155
|
+
ViewJoins | null
|
|
156
|
+
JSLink | clienttemplates.js
|
|
157
|
+
ListViewXml | <View Name="{6275ED5C-8E4F-4E81-8060-2D9162B29952}" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" Type="HTML" DisplayName="All Items" Url="/teams/AllStars/Lists/My List/AllItems.aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/\_layouts/15/images/generic.png?rev=47" ><Query /><ViewFields><FieldRef Name="LinkTitle" /><FieldRef Name="FieldName1" /></ViewFields><RowLimit Paged="TRUE">30</RowLimit><JSLink>clienttemplates.js</JSLink><XslLink Default="TRUE">main.xsl</XslLink><CustomFormatter /><Toolbar Type="Standard"/></View>
|
|
158
|
+
Method | null
|
|
159
|
+
MobileDefaultView | true
|
|
160
|
+
MobileView | true
|
|
161
|
+
ModerationType | null
|
|
162
|
+
NewDocumentTemplates | null
|
|
163
|
+
OrderedView | false
|
|
164
|
+
Paged | true
|
|
165
|
+
PersonalView | false
|
|
166
|
+
ViewProjectedFields | null
|
|
167
|
+
ViewQuery |
|
|
168
|
+
ReadOnlyView | false
|
|
169
|
+
RequiresClientIntegration | false
|
|
170
|
+
RowLimit | 30
|
|
171
|
+
Scope | 0
|
|
172
|
+
ServerRelativePath | {"DecodedUrl":"/teams/AllStars/Lists/My List/AllItems.aspx"}
|
|
173
|
+
ServerRelativeUrl | /teams/AllStars/Lists/My List/AllItems.aspx
|
|
174
|
+
StyleId | null
|
|
175
|
+
TabularView | true
|
|
176
|
+
Threaded | false
|
|
177
|
+
Title | All Items
|
|
178
|
+
Toolbar |
|
|
179
|
+
ToolbarTemplateName | null
|
|
180
|
+
ViewType | HTML
|
|
181
|
+
ViewData | null
|
|
182
|
+
ViewType2 | null
|
|
183
|
+
VisualizationInfo | null
|
|
184
|
+
```
|
|
@@ -19,7 +19,7 @@ m365 spo list view set [options]
|
|
|
19
19
|
`--listTitle [listTitle]`
|
|
20
20
|
: Title of the list where the view is located. Specify either `listId`, `listTitle`, or `listUrl`.
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
`--listUrl [listUrl]`
|
|
23
23
|
: Server- or site-relative URL of the list. Specify either `listId` , `listTitle` or `listUrl`.
|
|
24
24
|
|
|
25
25
|
`--id [id]`
|
|
@@ -86,3 +86,22 @@ m365 spo list webhook add --webUrl https://contoso.sharepoint.com/sites/ninja --
|
|
|
86
86
|
clientState,expirationDateTime,id,notificationUrl,resource,resourceData
|
|
87
87
|
random client state,2019-05-29T23:00:00.000Z,ef69c37d-cb0e-46d9-9758-5ebdeffd6959,https://contoso-funcions.azurewebsites.net/webhook,0987cfd9-f02c-479b-9fb4-3f0550462848,
|
|
88
88
|
```
|
|
89
|
+
|
|
90
|
+
=== "Markdown"
|
|
91
|
+
|
|
92
|
+
```md
|
|
93
|
+
# spo list webhook add --webUrl "https://contoso.sharepoint.com/sites/ninja" --listUrl "/sites/ninja/Documents" --notificationUrl "https://contoso-funcions.azurewebsites.net/webhook" --expirationDateTime "2019-01-21"
|
|
94
|
+
|
|
95
|
+
Date: 2/20/2023
|
|
96
|
+
|
|
97
|
+
## ef69c37d-cb0e-46d9-9758-5ebdeffd6959
|
|
98
|
+
|
|
99
|
+
Property | Value
|
|
100
|
+
---------|-------
|
|
101
|
+
clientState | random client state
|
|
102
|
+
expirationDateTime | 2019-05-29T23:00:00.000Z
|
|
103
|
+
id | ef69c37d-cb0e-46d9-9758-5ebdeffd6959
|
|
104
|
+
notificationUrl | https://contoso-funcions.azurewebsites.net/webhook
|
|
105
|
+
resource | 0987cfd9-f02c-479b-9fb4-3f0550462848
|
|
106
|
+
resourceData | null
|
|
107
|
+
```
|
|
@@ -83,3 +83,22 @@ m365 spo list webhook get --webUrl https://contoso.sharepoint.com/sites/project-
|
|
|
83
83
|
clientState,expirationDateTime,id,notificationUrl,resource,resourceData
|
|
84
84
|
system-managed:8082D436-D8DA-458D-96AD-34C902B73F37,2022-11-16T20:25:12.2735056Z,b8838bbb-9ddb-44fb-9016-0aacb9e02b77,https://northeurope1-0.pushnp.svc.ms/notifications?token=1e263e06-4bea-4db1-9f9f-5c8f713eef76,97d19285-b8a6-4c7f-9c6c-d6b850a6561a,
|
|
85
85
|
```
|
|
86
|
+
|
|
87
|
+
=== "Markdown"
|
|
88
|
+
|
|
89
|
+
```md
|
|
90
|
+
# spo list webhook get --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "Documents" --id "b8838bbb-9ddb-44fb-9016-0aacb9e02b77"
|
|
91
|
+
|
|
92
|
+
Date: 2/20/2023
|
|
93
|
+
|
|
94
|
+
## b8838bbb-9ddb-44fb-9016-0aacb9e02b77
|
|
95
|
+
|
|
96
|
+
Property | Value
|
|
97
|
+
---------|-------
|
|
98
|
+
clientState| system-managed:8082D436-D8DA-458D-96AD-34C902B73F37
|
|
99
|
+
expirationDateTime| 2022-11-16T20:25:12.2735056Z
|
|
100
|
+
id| b8838bbb-9ddb-44fb-9016-0aacb9e02b77
|
|
101
|
+
notificationUrl| https://northeurope1-0.pushnp.svc.ms/notifications?token=1e263e06-4bea-4db1-9f9f-5c8f713eef76
|
|
102
|
+
resource| 97d19285-b8a6-4c7f-9c6c-d6b850a6561a
|
|
103
|
+
resourceData| null
|
|
104
|
+
```
|
|
@@ -75,3 +75,22 @@ m365 spo list webhook list --webUrl https://contoso.sharepoint.com/sites/project
|
|
|
75
75
|
id,clientState,expirationDateTime,resource
|
|
76
76
|
b8838bbb-9ddb-44fb-9016-0aacb9e02b77,system-managed:8082D436-D8DA-458D-96AD-34C902B73F37,2022-11-16T20:25:12.2735056Z,97d19285-b8a6-4c7f-9c6c-d6b850a6561a
|
|
77
77
|
```
|
|
78
|
+
|
|
79
|
+
=== "Markdown"
|
|
80
|
+
|
|
81
|
+
```md
|
|
82
|
+
# spo list webhook list --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "Documents"
|
|
83
|
+
|
|
84
|
+
Date: 2/20/2023
|
|
85
|
+
|
|
86
|
+
## b8838bbb-9ddb-44fb-9016-0aacb9e02b77
|
|
87
|
+
|
|
88
|
+
Property | Value
|
|
89
|
+
---------|-------
|
|
90
|
+
clientState| system-managed:8082D436-D8DA-458D-96AD-34C902B73F37
|
|
91
|
+
expirationDateTime| 2022-11-16T20:25:12.2735056Z
|
|
92
|
+
id| b8838bbb-9ddb-44fb-9016-0aacb9e02b77
|
|
93
|
+
notificationUrl| https://northeurope1-0.pushnp.svc.ms/notifications?token=1e263e06-4bea-4db1-9f9f-5c8f713eef76
|
|
94
|
+
resource| 97d19285-b8a6-4c7f-9c6c-d6b850a6561a
|
|
95
|
+
resourceData| null
|
|
96
|
+
```
|
|
@@ -132,3 +132,32 @@ m365 spo listitem add --listTitle "Demo List" --webUrl https://contoso.sharepoin
|
|
|
132
132
|
FileSystemObjectType,Id,ServerRedirectedEmbedUri,ServerRedirectedEmbedUrl,ID,ContentTypeId,Title,Modified,Created,AuthorId,EditorId,OData__UIVersionString,Attachments,GUID,ComplianceAssetId,OData__vti_ItemDeclaredRecord
|
|
133
133
|
0,235,,,235,0x01003CDBEB7138618C47A98D56499135D6EE0004C0F5794DEBCC4BAC981AC4AE1BD803,Test,2022-11-16T20:56:09Z,2022-11-16T20:56:09Z,10,10,1.0,,7aa8f3bd-a0a2-4974-81c8-2ac7ddc8e2d8,,
|
|
134
134
|
```
|
|
135
|
+
|
|
136
|
+
=== "Markdown"
|
|
137
|
+
|
|
138
|
+
```md
|
|
139
|
+
# spo listitem add --contentType "Item" --listTitle "My List" --webUrl "https://contoso.sharepoint.com/sites/project-x" --Title "Test"
|
|
140
|
+
|
|
141
|
+
Date: 2/20/2023
|
|
142
|
+
|
|
143
|
+
## Test (234)
|
|
144
|
+
|
|
145
|
+
Property | Value
|
|
146
|
+
---------|-------
|
|
147
|
+
FileSystemObjectType | 0
|
|
148
|
+
Id | 234
|
|
149
|
+
ServerRedirectedEmbedUri | null
|
|
150
|
+
ServerRedirectedEmbedUrl |
|
|
151
|
+
ContentTypeId | 0x01003CDBEB7138618C47A98D56499135D6EE0004C0F5794DEBCC4BAC981AC4AE1BD803
|
|
152
|
+
Title | Test
|
|
153
|
+
ComplianceAssetId | null
|
|
154
|
+
FieldName1 | null
|
|
155
|
+
ID | 234
|
|
156
|
+
Modified | 2022-11-16T20:55:45Z
|
|
157
|
+
Created | 2022-11-16T20:55:45Z
|
|
158
|
+
AuthorId | 10
|
|
159
|
+
EditorId | 10
|
|
160
|
+
OData\_\_UIVersionString | 1.0
|
|
161
|
+
Attachments | false
|
|
162
|
+
GUID | 352e3855-56fa-4b68-b6be-4644d6adf204
|
|
163
|
+
```
|
|
@@ -11,7 +11,7 @@ m365 spo listitem attachment list [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-u, --webUrl <webUrl>`
|
|
14
|
-
URL of the site from which the item should be retrieved
|
|
14
|
+
: URL of the site from which the item should be retrieved
|
|
15
15
|
|
|
16
16
|
`--listId [listId]`
|
|
17
17
|
: ID of the list where the item should be retrieved. Specify either `listTitle`, `listId` or `listUrl`
|
|
@@ -23,7 +23,7 @@ URL of the site from which the item should be retrieved
|
|
|
23
23
|
: Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`
|
|
24
24
|
|
|
25
25
|
`--itemId <itemId>`
|
|
26
|
-
ID of the list item to in question
|
|
26
|
+
: ID of the list item to in question
|
|
27
27
|
|
|
28
28
|
--8<-- "docs/cmd/_global.md"
|
|
29
29
|
|
|
@@ -80,3 +80,18 @@ m365 spo listitem attachment list --webUrl https://contoso.sharepoint.com/sites/
|
|
|
80
80
|
FileName,ServerRelativeUrl
|
|
81
81
|
DummyDocument.docx,/Lists/Test/Attachments/236/DummyDocument.docx
|
|
82
82
|
```
|
|
83
|
+
|
|
84
|
+
=== "Markdown"
|
|
85
|
+
|
|
86
|
+
```md
|
|
87
|
+
# spo listitem attachment list --webUrl "https://contoso.sharepoint.com" --listTitle "Test" --itemId "236"
|
|
88
|
+
|
|
89
|
+
Date: 2/20/2023
|
|
90
|
+
|
|
91
|
+
Property | Value
|
|
92
|
+
---------|-------
|
|
93
|
+
FileName | DummyDocument.docx
|
|
94
|
+
FileNameAsPath | {"DecodedUrl":"DummyDocument.docx"}
|
|
95
|
+
ServerRelativePath | {"DecodedUrl":"/Lists/Test/Attachments/236/DummyDocument.docx"}
|
|
96
|
+
ServerRelativeUrl | /Lists/Test/Attachments/236/DummyDocument.docx
|
|
97
|
+
```
|
|
@@ -118,6 +118,34 @@ m365 spo listitem get --listTitle "Demo List" --id 147 --webUrl https://contoso.
|
|
|
118
118
|
0,147,,,0x010078BC2C6F12F0DB41BA554210A2BFA81600A320A11ABE6E90468525ECC747660126,Demo Item,2022-10-30T10:55:37Z,2022-10-30T10:55:22Z,10,10,3.0,,87f3138d-fac3-4126-97c0-543e55672261,
|
|
119
119
|
```
|
|
120
120
|
|
|
121
|
+
=== "Markdown"
|
|
122
|
+
|
|
123
|
+
```md
|
|
124
|
+
# spo listitem get --webUrl "https://contoso.sharepoint.com" --listTitle "My List" --id "147"
|
|
125
|
+
|
|
126
|
+
Date: 2/20/2023
|
|
127
|
+
|
|
128
|
+
## Demo Item (147)
|
|
129
|
+
|
|
130
|
+
Property | Value
|
|
131
|
+
---------|-------
|
|
132
|
+
FileSystemObjectType | 0
|
|
133
|
+
Id | 147
|
|
134
|
+
ServerRedirectedEmbedUri | null
|
|
135
|
+
ServerRedirectedEmbedUrl |
|
|
136
|
+
ContentTypeId | 0x010078BC2C6F12F0DB41BA554210A2BFA81600A320A11ABE6E90468525ECC747660126
|
|
137
|
+
Title | Demo Item
|
|
138
|
+
ComplianceAssetId | null
|
|
139
|
+
FieldName1 | null
|
|
140
|
+
Modified | 2022-10-30T10:55:37Z
|
|
141
|
+
Created | 2022-10-30T10:55:22Z
|
|
142
|
+
AuthorId | 10
|
|
143
|
+
EditorId | 10
|
|
144
|
+
OData\_\_UIVersionString | 3.0
|
|
145
|
+
Attachments | false
|
|
146
|
+
GUID | 87f3138d-fac3-4126-97c0-543e55672261
|
|
147
|
+
```
|
|
148
|
+
|
|
121
149
|
### `withPermissions` response
|
|
122
150
|
|
|
123
151
|
When we make use of the option `withPermissions` the response will differ.
|
|
@@ -242,3 +270,32 @@ When we make use of the option `withPermissions` the response will differ.
|
|
|
242
270
|
FileSystemObjectType,Id,ServerRedirectedEmbedUri,ServerRedirectedEmbedUrl,ContentTypeId,Title,Modified,Created,AuthorId,EditorId,OData__UIVersionString,Attachments,GUID,ComplianceAssetId,RoleAssignments
|
|
243
271
|
0,147,,,0x010078BC2C6F12F0DB41BA554210A2BFA81600A320A11ABE6E90468525ECC747660126,Demo Item,2022-10-30T10:55:37Z,2022-10-30T10:55:22Z,10,10,3.0,,87f3138d-fac3-4126-97c0-543e55672261,"[{""Member"":{""Id"":3,""IsHiddenInUI"":false,""LoginName"":""Communication site Owners"",""Title"":""Communication site Owners"",""PrincipalType"":8,""AllowMembersEditMembership"":false,""AllowRequestToJoinLeave"":false,""AutoAcceptRequestToJoinLeave"":false,""Description"":null,""OnlyAllowMembersViewMembership"":false,""OwnerTitle"":""Communication site Owners"",""RequestToJoinLeaveEmailSetting"":""""},""RoleDefinitionBindings"":[{""BasePermissions"":{""High"":""2147483647"",""Low"":""4294967295""},""Description"":""Has full control."",""Hidden"":false,""Id"":1073741829,""Name"":""Full Control"",""Order"":1,""RoleTypeKind"":5,""BasePermissionsValue"":[""ViewListItems"",""AddListItems"",""EditListItems"",""DeleteListItems"",""ApproveItems"",""OpenItems"",""ViewVersions"",""DeleteVersions"",""CancelCheckout"",""ManagePersonalViews"",""ManageLists"",""ViewFormPages"",""AnonymousSearchAccessList"",""Open"",""ViewPages"",""AddAndCustomizePages"",""ApplyThemeAndBorder"",""ApplyStyleSheets"",""ViewUsageData"",""CreateSSCSite"",""ManageSubwebs"",""CreateGroups"",""ManagePermissions"",""BrowseDirectories"",""BrowseUserInfo"",""AddDelPrivateWebParts"",""UpdatePersonalWebParts"",""ManageWeb"",""AnonymousSearchAccessWebLists"",""UseClientIntegration"",""UseRemoteAPIs"",""ManageAlerts"",""CreateAlerts"",""EditMyUserInfo"",""EnumeratePermissions""],""RoleTypeKindValue"":""Administrator""}],""PrincipalId"":3}]"
|
|
244
272
|
```
|
|
273
|
+
|
|
274
|
+
=== "Markdown"
|
|
275
|
+
|
|
276
|
+
```md
|
|
277
|
+
# spo listitem get --webUrl "https://contoso.sharepoint.com" --listTitle "My List" --id "147" --withPermissions "true"
|
|
278
|
+
|
|
279
|
+
Date: 2/20/2023
|
|
280
|
+
|
|
281
|
+
## Demo Item (1)
|
|
282
|
+
|
|
283
|
+
Property | Value
|
|
284
|
+
---------|-------
|
|
285
|
+
FileSystemObjectType | 0
|
|
286
|
+
Id | 147
|
|
287
|
+
ServerRedirectedEmbedUri | null
|
|
288
|
+
ServerRedirectedEmbedUrl |
|
|
289
|
+
ContentTypeId | 0x010078BC2C6F12F0DB41BA554210A2BFA81600A320A11ABE6E90468525ECC747660126
|
|
290
|
+
Title | Demo Item
|
|
291
|
+
ComplianceAssetId | null
|
|
292
|
+
FieldName1 | null
|
|
293
|
+
Modified | 2022-10-30T10:55:37Z
|
|
294
|
+
Created | 2022-10-30T10:55:22Z
|
|
295
|
+
AuthorId | 10
|
|
296
|
+
EditorId | 10
|
|
297
|
+
OData\_\_UIVersionString | 3.0
|
|
298
|
+
Attachments | false
|
|
299
|
+
GUID | 87f3138d-fac3-4126-97c0-543e55672261
|
|
300
|
+
RoleAssignments | [{"Member":{"Id":3,"IsHiddenInUI":false,"LoginName":"Communication site Owners","Title":"Communication site Owners","PrincipalType":8,"AllowMembersEditMembership":false,"AllowRequestToJoinLeave":false,"AutoAcceptRequestToJoinLeave":false,"Description":null,"OnlyAllowMembersViewMembership":false,"OwnerTitle":"Communication site Owners","RequestToJoinLeaveEmailSetting":""},"RoleDefinitionBindings":[{"BasePermissions":{"High":"2147483647","Low":"4294967295"},"Description":"Has full control.","Hidden":false,"Id":1073741829,"Name":"Full Control","Order":1,"RoleTypeKind":5,"BasePermissionsValue":["ViewListItems","AddListItems","EditListItems","DeleteListItems","ApproveItems","OpenItems","ViewVersions","DeleteVersions","CancelCheckout","ManagePersonalViews","ManageLists","ViewFormPages","AnonymousSearchAccessList","Open","ViewPages","AddAndCustomizePages","ApplyThemeAndBorder","ApplyStyleSheets","ViewUsageData","CreateSSCSite","ManageSubwebs","CreateGroups","ManagePermissions","BrowseDirectories","BrowseUserInfo","AddDelPrivateWebParts","UpdatePersonalWebParts","ManageWeb","AnonymousSearchAccessWebLists","UseClientIntegration","UseRemoteAPIs","ManageAlerts","CreateAlerts","EditMyUserInfo","EnumeratePermissions"],"RoleTypeKindValue":"Administrator"}],"PrincipalId":3}]
|
|
301
|
+
```
|
|
@@ -135,3 +135,31 @@ m365 spo listitem list --listUrl /sites/project-x/documents --webUrl https://con
|
|
|
135
135
|
FileSystemObjectType,Id,ServerRedirectedEmbedUri,ServerRedirectedEmbedUrl,ContentTypeId,Title,Modified,Created,AuthorId,EditorId,OData__UIVersionString,Attachments,GUID,ComplianceAssetId,OData__vti_ItemDeclaredRecord
|
|
136
136
|
0,236,,,0x01003CDBEB7138618C47A98D56499135D6EE0004C0F5794DEBCC4BAC981AC4AE1BD803,Test,2022-11-16T21:00:03Z,2022-11-16T20:56:31Z,10,10,6.0,1,cac57513-e870-4e7a-9f23-f4ea10e14f4e,,
|
|
137
137
|
```
|
|
138
|
+
|
|
139
|
+
=== "Markdown"
|
|
140
|
+
|
|
141
|
+
```md
|
|
142
|
+
# spo listitem list --webUrl "https://contoso.sharepoint.com" --listTitle "My List"
|
|
143
|
+
|
|
144
|
+
Date: 2/20/2023
|
|
145
|
+
|
|
146
|
+
## Demo Item (147)
|
|
147
|
+
|
|
148
|
+
Property | Value
|
|
149
|
+
---------|-------
|
|
150
|
+
FileSystemObjectType | 0
|
|
151
|
+
Id | 236
|
|
152
|
+
ServerRedirectedEmbedUri | null
|
|
153
|
+
ServerRedirectedEmbedUrl |
|
|
154
|
+
ContentTypeId | 0x01003CDBEB7138618C47A98D56499135D6EE0004C0F5794DEBCC4BAC981AC4AE1BD803
|
|
155
|
+
Title | Test
|
|
156
|
+
ComplianceAssetId | null
|
|
157
|
+
Modified | 2022-11-16T21:00:03Z
|
|
158
|
+
Created | 2022-11-16T20:56:31Z
|
|
159
|
+
AuthorId | 10
|
|
160
|
+
EditorId | 10
|
|
161
|
+
OData\_\_UIVersionString | 6.0
|
|
162
|
+
Attachments | false
|
|
163
|
+
GUID | cac57513-e870-4e7a-9f23-f4ea10e14f4e
|
|
164
|
+
OData__vti_ItemDeclaredRecord | null
|
|
165
|
+
```
|
|
@@ -84,3 +84,18 @@ m365 spo listitem record declare --webUrl https://contoso.sharepoint.com/sites/p
|
|
|
84
84
|
SchemaVersion,LibraryVersion,ErrorInfo,TraceCorrelationId
|
|
85
85
|
15.0.0.0,16.0.23102.12004,,0d4779a0-609c-5000-843d-c98e4764c937
|
|
86
86
|
```
|
|
87
|
+
|
|
88
|
+
=== "Markdown"
|
|
89
|
+
|
|
90
|
+
```md
|
|
91
|
+
# spo listitem record declare --webUrl "https://contoso.sharepoint.com/sites/project-x" --listTitle "Demo List" --listItemId "1" --date "2012-03-14"
|
|
92
|
+
|
|
93
|
+
Date: 2/20/2023
|
|
94
|
+
|
|
95
|
+
Property | Value
|
|
96
|
+
---------|-------
|
|
97
|
+
SchemaVersion | 15.0.0.0
|
|
98
|
+
LibraryVersion | 16.0.23102.12004
|
|
99
|
+
ErrorInfo | null
|
|
100
|
+
TraceCorrelationId | 064779a0-d05b-5000-843d-c36803e58f12
|
|
101
|
+
```
|
|
@@ -129,3 +129,33 @@ m365 spo listitem set --listTitle "Demo List" --id 147 --webUrl https://contoso.
|
|
|
129
129
|
FileSystemObjectType,Id,ServerRedirectedEmbedUri,ServerRedirectedEmbedUrl,ID,ContentTypeId,Title,Modified,Created,AuthorId,EditorId,OData__UIVersionString,Attachments,GUID,ComplianceAssetId,OData__vti_ItemDeclaredRecord
|
|
130
130
|
0,236,,,236,0x01003CDBEB7138618C47A98D56499135D6EE0004C0F5794DEBCC4BAC981AC4AE1BD803,Updated Title,2022-11-16T21:10:55Z,2022-11-16T20:56:31Z,10,10,9.0,1,cac57513-e870-4e7a-9f23-f4ea10e14f4e,,
|
|
131
131
|
```
|
|
132
|
+
|
|
133
|
+
=== "Markdown"
|
|
134
|
+
|
|
135
|
+
```md
|
|
136
|
+
# spo listitem set --listTitle "My List" --id "236" --webUrl "https://contoso.sharepoint.com" --Title "Updated Title"
|
|
137
|
+
|
|
138
|
+
Date: 2/20/2023
|
|
139
|
+
|
|
140
|
+
## Updated Title (236)
|
|
141
|
+
|
|
142
|
+
Property | Value
|
|
143
|
+
---------|-------
|
|
144
|
+
FileSystemObjectType | 0
|
|
145
|
+
Id | 236
|
|
146
|
+
ServerRedirectedEmbedUri | null
|
|
147
|
+
ServerRedirectedEmbedUrl |
|
|
148
|
+
ContentTypeId | 0x01003CDBEB7138618C47A98D56499135D6EE0004C0F5794DEBCC4BAC981AC4AE1BD803
|
|
149
|
+
Title | Updated Title
|
|
150
|
+
ComplianceAssetId | null
|
|
151
|
+
FieldName1 | null
|
|
152
|
+
ID | 236
|
|
153
|
+
Modified | 2022-11-16T21:10:06Z
|
|
154
|
+
Created | 2022-11-16T20:56:31Z
|
|
155
|
+
AuthorId | 10
|
|
156
|
+
EditorId | 10
|
|
157
|
+
OData\_\_UIVersionString | 7.0
|
|
158
|
+
Attachments | true
|
|
159
|
+
GUID | cac57513-e870-4e7a-9f23-f4ea10e14f4e
|
|
160
|
+
OData__vti_ItemDeclaredRecord | null
|
|
161
|
+
```
|
|
@@ -103,3 +103,25 @@ m365 spo navigation node add --webUrl https://contoso.sharepoint.com/sites/team-
|
|
|
103
103
|
AudienceIds,CurrentLCID,Id,IsDocLib,IsExternal,IsVisible,ListTemplateType,Title,Url
|
|
104
104
|
"[""7aa4a1ca-4035-4f2f-bac7-7beada59b5ba""]",1033,2032,1,1,1,0,Navigation Link,https://contoso.sharepoint.com
|
|
105
105
|
```
|
|
106
|
+
|
|
107
|
+
=== "Markdown"
|
|
108
|
+
|
|
109
|
+
```md
|
|
110
|
+
# spo navigation node get --webUrl "https://contoso.sharepoint.com/sites/team-a" --location "TopNavigationBar" --title "Navigation Link" --url "https://contoso.sharepoint.com"
|
|
111
|
+
|
|
112
|
+
Date: 2/20/2023
|
|
113
|
+
|
|
114
|
+
## Navigation Link (2030)
|
|
115
|
+
|
|
116
|
+
Property | Value
|
|
117
|
+
---------|-------
|
|
118
|
+
AudienceIds | ["7aa4a1ca-4035-4f2f-bac7-7beada59b5ba"]
|
|
119
|
+
CurrentLCID | 1033
|
|
120
|
+
Id | 2030
|
|
121
|
+
IsDocLib | true
|
|
122
|
+
IsExternal | false
|
|
123
|
+
IsVisible | true
|
|
124
|
+
ListTemplateType | 0
|
|
125
|
+
Title | Navigation Link
|
|
126
|
+
Url | https://contoso.sharepoint.com
|
|
127
|
+
```
|
package/docs/docs/cmd/status.md
CHANGED
|
@@ -23,3 +23,49 @@ Show the information about the current login to the Microsoft 365
|
|
|
23
23
|
```sh
|
|
24
24
|
m365 status
|
|
25
25
|
```
|
|
26
|
+
|
|
27
|
+
## Response
|
|
28
|
+
|
|
29
|
+
=== "JSON"
|
|
30
|
+
|
|
31
|
+
```json
|
|
32
|
+
{
|
|
33
|
+
"connectedAs": "john.doe@contoso.onmicrosoft.com",
|
|
34
|
+
"authType": "DeviceCode",
|
|
35
|
+
"appId": "31359c7f-bd7e-475c-86db-fdb8c937548e",
|
|
36
|
+
"appTenant": "common"
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
=== "Text"
|
|
41
|
+
|
|
42
|
+
```text
|
|
43
|
+
appId : 31359c7f-bd7e-475c-86db-fdb8c937548e
|
|
44
|
+
appTenant : common
|
|
45
|
+
authType : DeviceCode
|
|
46
|
+
connectedAs: john.doe@contoso.onmicrosoft.com
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
=== "CSV"
|
|
50
|
+
|
|
51
|
+
```csv
|
|
52
|
+
connectedAs,authType,appId,appTenant
|
|
53
|
+
john.doe@contoso.onmicrosoft.com,DeviceCode,31359c7f-bd7e-475c-86db-fdb8c937548e,common
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
=== "Markdown"
|
|
57
|
+
|
|
58
|
+
```md
|
|
59
|
+
# status
|
|
60
|
+
|
|
61
|
+
Date: 7/2/2023
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
Property | Value
|
|
66
|
+
---------|-------
|
|
67
|
+
connectedAs | john.doe@contoso.onmicrosoft.com
|
|
68
|
+
authType | DeviceCode
|
|
69
|
+
appId | 31359c7f-bd7e-475c-86db-fdb8c937548e
|
|
70
|
+
appTenant | common
|
|
71
|
+
```
|
package/docs/docs/cmd/version.md
CHANGED
|
@@ -19,3 +19,29 @@ Show the version of CLI for Microsoft 365
|
|
|
19
19
|
```sh
|
|
20
20
|
m365 version
|
|
21
21
|
```
|
|
22
|
+
|
|
23
|
+
## Response
|
|
24
|
+
|
|
25
|
+
=== "JSON"
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
v6.3.0
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
=== "Text"
|
|
32
|
+
|
|
33
|
+
```text
|
|
34
|
+
v6.3.0
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
=== "CSV"
|
|
38
|
+
|
|
39
|
+
```csv
|
|
40
|
+
v6.3.0
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
=== "Markdown"
|
|
44
|
+
|
|
45
|
+
```md
|
|
46
|
+
v6.3.0
|
|
47
|
+
```
|