@pnp/cli-microsoft365 7.0.0-beta.4ebf3ad → 7.0.0-beta.669444a
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/.eslintrc.cjs +1 -1
- package/dist/Auth.js +2 -1
- package/dist/Command.js +1 -1
- package/dist/cli/Cli.js +19 -2
- package/dist/m365/aad/commands/{o365group/o365group-add.js → m365group/m365group-add.js} +17 -17
- package/dist/m365/aad/commands/{o365group/o365group-conversation-list.js → m365group/m365group-conversation-list.js} +10 -10
- package/dist/m365/aad/commands/{o365group/o365group-conversation-post-list.js → m365group/m365group-conversation-post-list.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-get.js → m365group/m365group-get.js} +13 -10
- package/dist/m365/aad/commands/{o365group/o365group-list.js → m365group/m365group-list.js} +13 -28
- package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-clear.js → m365group/m365group-recyclebinitem-clear.js} +15 -15
- package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-list.js → m365group/m365group-recyclebinitem-list.js} +10 -10
- package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-remove.js → m365group/m365group-recyclebinitem-remove.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-recyclebinitem-restore.js → m365group/m365group-recyclebinitem-restore.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-remove.js → m365group/m365group-remove.js} +12 -12
- package/dist/m365/aad/commands/{o365group/o365group-renew.js → m365group/m365group-renew.js} +10 -10
- package/dist/m365/aad/commands/{o365group/o365group-report-activitycounts.js → m365group/m365group-report-activitycounts.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-report-activitydetail.js → m365group/m365group-report-activitydetail.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-report-activityfilecounts.js → m365group/m365group-report-activityfilecounts.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-report-activitygroupcounts.js → m365group/m365group-report-activitygroupcounts.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-report-activitystorage.js → m365group/m365group-report-activitystorage.js} +4 -4
- package/dist/m365/aad/commands/{o365group/o365group-set.js → m365group/m365group-set.js} +17 -17
- package/dist/m365/aad/commands/{o365group/o365group-teamify.js → m365group/m365group-teamify.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-user-add.js → m365group/m365group-user-add.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-user-list.js → m365group/m365group-user-list.js} +12 -12
- package/dist/m365/aad/commands/{o365group/o365group-user-remove.js → m365group/m365group-user-remove.js} +14 -14
- package/dist/m365/aad/commands/{o365group/o365group-user-set.js → m365group/m365group-user-set.js} +15 -15
- package/dist/m365/aad/commands.js +22 -22
- package/dist/m365/cli/commands/config/config-list.js +16 -0
- package/dist/m365/cli/commands.js +1 -0
- package/dist/m365/pa/commands/app/app-permission-ensure.js +162 -0
- package/dist/m365/pa/commands/app/app-permission-list.js +2 -2
- package/dist/m365/pa/commands/app/app-permission-remove.js +153 -0
- package/dist/m365/pa/commands.js +2 -0
- package/dist/m365/planner/commands/bucket/bucket-add.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-get.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-list.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-remove.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-set.js +2 -2
- package/dist/m365/planner/commands/plan/plan-get.js +1 -2
- package/dist/m365/planner/commands/plan/plan-list.js +4 -5
- package/dist/m365/planner/commands/plan/plan-set.js +2 -2
- package/dist/m365/spfx/commands/project/project-externalize/rules/PnPJsRule.js +2 -2
- package/dist/m365/spfx/commands/spfx-doctor.js +73 -103
- package/dist/m365/spo/commands/file/file-add.js +13 -13
- package/dist/m365/spo/commands/file/file-checkin.js +1 -1
- package/dist/m365/spo/commands/file/file-checkout.js +1 -1
- package/dist/m365/spo/commands/file/file-copy.js +36 -4
- package/dist/m365/spo/commands/file/file-list.js +4 -4
- package/dist/m365/spo/commands/file/file-move.js +74 -98
- package/dist/m365/spo/commands/file/file-remove.js +6 -6
- package/dist/m365/spo/commands/file/file-rename.js +2 -2
- package/dist/m365/spo/commands/file/file-retentionlabel-ensure.js +1 -1
- package/dist/m365/spo/commands/file/file-retentionlabel-remove.js +1 -1
- package/dist/m365/spo/commands/file/file-roleassignment-add.js +1 -1
- package/dist/m365/spo/commands/file/file-roleassignment-remove.js +1 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-break.js +1 -1
- package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +1 -1
- package/dist/m365/spo/commands/file/file-version-clear.js +1 -1
- package/dist/m365/spo/commands/file/file-version-get.js +1 -1
- package/dist/m365/spo/commands/file/file-version-list.js +1 -1
- package/dist/m365/spo/commands/file/file-version-remove.js +1 -1
- package/dist/m365/spo/commands/file/file-version-restore.js +1 -1
- package/dist/m365/spo/commands/folder/folder-add.js +2 -4
- package/dist/m365/spo/commands/folder/folder-copy.js +89 -45
- package/dist/m365/spo/commands/folder/folder-get.js +1 -1
- package/dist/m365/spo/commands/folder/folder-list.js +2 -2
- package/dist/m365/spo/commands/folder/folder-move.js +89 -47
- package/dist/m365/spo/commands/folder/folder-remove.js +7 -4
- package/dist/m365/spo/commands/folder/folder-rename.js +13 -17
- package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +1 -1
- package/dist/m365/spo/commands/folder/folder-retentionlabel-remove.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-add.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleassignment-remove.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleinheritance-break.js +1 -1
- package/dist/m365/spo/commands/folder/folder-roleinheritance-reset.js +1 -1
- package/dist/m365/spo/commands/group/group-list.js +0 -1
- package/dist/m365/spo/commands/navigation/navigation-node-set.js +2 -2
- package/dist/m365/spo/commands/site/site-set.js +2 -2
- package/dist/m365/spo/commands/theme/theme-list.js +1 -9
- package/dist/utils/planner.js +4 -3
- package/dist/utils/spo.js +13 -54
- package/docs/docs/cmd/aad/{o365group/o365group-add.mdx → m365group/m365group-add.mdx} +13 -13
- package/docs/docs/cmd/aad/{o365group/o365group-conversation-list.mdx → m365group/m365group-conversation-list.mdx} +4 -4
- package/docs/docs/cmd/aad/{o365group/o365group-conversation-post-list.mdx → m365group/m365group-conversation-post-list.mdx} +8 -8
- package/docs/docs/cmd/aad/{o365group/o365group-get.mdx → m365group/m365group-get.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-list.mdx → m365group/m365group-list.mdx} +12 -29
- package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-clear.mdx → m365group/m365group-recyclebinitem-clear.mdx} +5 -5
- package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-list.mdx → m365group/m365group-recyclebinitem-list.mdx} +8 -8
- package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-remove.mdx → m365group/m365group-recyclebinitem-remove.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-recyclebinitem-restore.mdx → m365group/m365group-recyclebinitem-restore.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-remove.mdx → m365group/m365group-remove.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-renew.mdx → m365group/m365group-renew.mdx} +4 -4
- package/docs/docs/cmd/aad/{o365group/o365group-report-activitycounts.mdx → m365group/m365group-report-activitycounts.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-report-activitydetail.mdx → m365group/m365group-report-activitydetail.mdx} +7 -7
- package/docs/docs/cmd/aad/{o365group/o365group-report-activityfilecounts.mdx → m365group/m365group-report-activityfilecounts.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-report-activitygroupcounts.mdx → m365group/m365group-report-activitygroupcounts.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-report-activitystorage.mdx → m365group/m365group-report-activitystorage.mdx} +6 -6
- package/docs/docs/cmd/aad/{o365group/o365group-set.mdx → m365group/m365group-set.mdx} +8 -8
- package/docs/docs/cmd/aad/{o365group/o365group-teamify.mdx → m365group/m365group-teamify.mdx} +5 -5
- package/docs/docs/cmd/aad/{o365group/o365group-user-add.mdx → m365group/m365group-user-add.mdx} +5 -5
- package/docs/docs/cmd/aad/{o365group/o365group-user-list.mdx → m365group/m365group-user-list.mdx} +7 -7
- package/docs/docs/cmd/aad/{o365group/o365group-user-remove.mdx → m365group/m365group-user-remove.mdx} +5 -5
- package/docs/docs/cmd/aad/{o365group/o365group-user-set.mdx → m365group/m365group-user-set.mdx} +5 -5
- package/docs/docs/cmd/aad/user/user-set.mdx +1 -1
- package/docs/docs/cmd/cli/config/config-list.mdx +78 -0
- package/docs/docs/cmd/flow/flow-enable.mdx +2 -2
- package/docs/docs/cmd/login.mdx +6 -0
- package/docs/docs/cmd/pa/app/app-permission-ensure.mdx +85 -0
- package/docs/docs/cmd/pa/app/app-permission-remove.mdx +74 -0
- package/docs/docs/cmd/planner/plan/plan-add.mdx +1 -1
- package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +2 -2
- package/docs/docs/cmd/pp/dataverse/dataverse-table-list.mdx +2 -2
- package/docs/docs/cmd/pp/dataverse/dataverse-table-remove.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-checkin.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +1 -9
- package/docs/docs/cmd/spo/file/file-checkout.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-copy.mdx +20 -16
- package/docs/docs/cmd/spo/file/file-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-list.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-move.mdx +36 -18
- package/docs/docs/cmd/spo/file/file-remove.mdx +8 -8
- package/docs/docs/cmd/spo/file/file-rename.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +2 -2
- package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +3 -3
- package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-clear.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-get.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-list.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-remove.mdx +1 -1
- package/docs/docs/cmd/spo/file/file-version-restore.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-add.mdx +76 -1
- package/docs/docs/cmd/spo/folder/folder-copy.mdx +39 -12
- package/docs/docs/cmd/spo/folder/folder-get.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-list.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-move.mdx +40 -13
- package/docs/docs/cmd/spo/folder/folder-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-rename.mdx +5 -1
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +2 -2
- package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.mdx +1 -1
- package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.mdx +1 -1
- package/docs/docs/cmd/spo/listitem/listitem-attachment-list.mdx +1 -1
- package/docs/docs/cmd/spo/site/site-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +1 -1
- package/docs/docs/cmd/teams/team/team-add.mdx +1 -1
- package/docs/docs/cmd/yammer/network/network-list.mdx +1 -1
- package/npm-shrinkwrap.json +142 -88
- package/package.json +13 -13
- /package/dist/m365/aad/commands/{o365group → m365group}/GroupExtended.js +0 -0
|
@@ -14,16 +14,28 @@ m365 spo folder copy [options]
|
|
|
14
14
|
|
|
15
15
|
```md definition-list
|
|
16
16
|
`-u, --webUrl <webUrl>`
|
|
17
|
-
: The URL of the site where the folder is located
|
|
17
|
+
: The URL of the site where the folder is located.
|
|
18
18
|
|
|
19
|
-
`-s, --sourceUrl
|
|
20
|
-
: The server
|
|
19
|
+
`-s, --sourceUrl [sourceUrl]`
|
|
20
|
+
: The server-, site-relative or absolute decoded URL of the folder to copy. Specify either `sourceUrl` or `sourceId` but not both.
|
|
21
|
+
|
|
22
|
+
`-i, --sourceId [sourceId]`
|
|
23
|
+
: The UniqueId (GUID) of the folder. Specify either `sourceUrl` or `sourceId` but not both.
|
|
21
24
|
|
|
22
25
|
`-t, --targetUrl <targetUrl>`
|
|
23
|
-
: Server-relative URL where to copy the folder
|
|
26
|
+
: Server-relative or absolute decoded URL where to copy the folder.
|
|
27
|
+
|
|
28
|
+
`--newName [newName]`
|
|
29
|
+
: New name of the destination folder.
|
|
30
|
+
|
|
31
|
+
`--nameConflictBehavior [nameConflictBehavior]`
|
|
32
|
+
: Behavior when a file or folder with the same name is already present at the destination. Possible values: `fail`, `rename`. The default is `fail`.
|
|
24
33
|
|
|
25
|
-
`--
|
|
26
|
-
:
|
|
34
|
+
`--resetAuthorAndCreated`
|
|
35
|
+
: Use this option to clear the author and created date. When not specified, the values from the source folder are used.
|
|
36
|
+
|
|
37
|
+
`--bypassSharedLock`
|
|
38
|
+
: This indicates whether a folder with a shared lock can still be moved. Use this option to copy a folder that is locked.
|
|
27
39
|
```
|
|
28
40
|
|
|
29
41
|
<Global />
|
|
@@ -32,26 +44,41 @@ m365 spo folder copy [options]
|
|
|
32
44
|
|
|
33
45
|
When you copy a folder with documents that have version history, only the latest document version is copied.
|
|
34
46
|
|
|
47
|
+
When you specify a value for `nameConflictBehavior`, consider the following:
|
|
48
|
+
|
|
49
|
+
- `fail` will throw an error when the destination folder already exists.
|
|
50
|
+
- `rename` will add a suffix (e.g. Folder1) when the destination folder already exists.
|
|
51
|
+
|
|
35
52
|
## Examples
|
|
36
53
|
|
|
37
|
-
|
|
54
|
+
Copy a folder a folder to another location using server-relative URLs
|
|
38
55
|
|
|
39
56
|
```sh
|
|
40
|
-
m365 spo folder copy --webUrl https://contoso.sharepoint.com/sites/
|
|
57
|
+
m365 spo folder copy --webUrl https://contoso.sharepoint.com/sites/project-x --sourceUrl "/sites/project-x/Shared Documents/Reports" --targetUrl "/sites/project-y/Shared Documents/Project files"
|
|
41
58
|
```
|
|
42
59
|
|
|
43
|
-
|
|
60
|
+
Copy a folder a folder to another location using site-relative URLs and rename it
|
|
44
61
|
|
|
45
62
|
```sh
|
|
46
|
-
m365 spo folder copy --webUrl https://contoso.sharepoint.com/sites/
|
|
63
|
+
m365 spo folder copy --webUrl https://contoso.sharepoint.com/sites/project-x --sourceUrl "/Shared Documents/Reports" --targetUrl "/sites/project-y/Shared Documents" --newName "Reports January"
|
|
47
64
|
```
|
|
48
65
|
|
|
49
|
-
|
|
66
|
+
Copy a folder to another location and use new name on conflict
|
|
50
67
|
|
|
51
68
|
```sh
|
|
52
|
-
m365 spo folder copy --webUrl https://contoso.sharepoint.com/sites/
|
|
69
|
+
m365 spo folder copy --webUrl https://contoso.sharepoint.com/sites/project-x --sourceUrl "/sites/project-x/Shared Documents/Reports" --targetUrl "/sites/project-y/Shared Documents/Project files" --nameConflictBehavior rename
|
|
53
70
|
```
|
|
54
71
|
|
|
72
|
+
Copy a folder referenced by its ID to another document library and reset author and created date
|
|
73
|
+
|
|
74
|
+
```sh
|
|
75
|
+
m365 spo folder copy --webUrl https://contoso.sharepoint.com/sites/project-x --sourceId b8cc341b-9c11-4f2d-aa2b-0ce9c18bcba2 --targetUrl "/sites/project-x/Project files" --retainEditorAndModified
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Response
|
|
79
|
+
|
|
80
|
+
The command won't return a response on success.
|
|
81
|
+
|
|
55
82
|
## More information
|
|
56
83
|
|
|
57
84
|
- Copy items from a SharePoint document library: [https://support.office.com/en-us/article/move-or-copy-items-from-a-sharepoint-document-library-00e2f483-4df3-46be-a861-1f5f0c1a87bc](https://support.office.com/en-us/article/move-or-copy-items-from-a-sharepoint-document-library-00e2f483-4df3-46be-a861-1f5f0c1a87bc)
|
|
@@ -17,7 +17,7 @@ m365 spo folder get [options]
|
|
|
17
17
|
: The URL of the site where the folder is located.
|
|
18
18
|
|
|
19
19
|
`--url [url]`
|
|
20
|
-
: The server- or site-relative URL of the folder to retrieve. Specify either `folderUrl` or `id` but not both.
|
|
20
|
+
: The server- or site-relative decoded URL of the folder to retrieve. Specify either `folderUrl` or `id` but not both.
|
|
21
21
|
|
|
22
22
|
`-i, --id [id]`
|
|
23
23
|
: The UniqueId (GUID) of the folder to retrieve. Specify either `url` or `id` but not both.
|
|
@@ -19,7 +19,7 @@ m365 spo folder list [options]
|
|
|
19
19
|
: The URL of the site where the folders to list are located.
|
|
20
20
|
|
|
21
21
|
`-p, --parentFolderUrl <parentFolderUrl>`
|
|
22
|
-
: The server- or site-relative URL of the parent folder.
|
|
22
|
+
: The server- or site-relative decoded URL of the parent folder.
|
|
23
23
|
|
|
24
24
|
`--fields [fields]`
|
|
25
25
|
: Comma-separated list of fields to retrieve. Will retrieve all fields if not specified and json output is requested.
|
|
@@ -14,44 +14,71 @@ m365 spo folder move [options]
|
|
|
14
14
|
|
|
15
15
|
```md definition-list
|
|
16
16
|
`-u, --webUrl <webUrl>`
|
|
17
|
-
: The URL of the site where the folder is located
|
|
17
|
+
: The URL of the site where the folder is located.
|
|
18
18
|
|
|
19
|
-
`-s, --sourceUrl
|
|
20
|
-
: The server
|
|
19
|
+
`-s, --sourceUrl [sourceUrl]`
|
|
20
|
+
: The server-, site-relative or absolute decoded URL of the folder to move. Specify either `sourceUrl` or `sourceId` but not both.
|
|
21
|
+
|
|
22
|
+
`-i, --sourceId [sourceId]`
|
|
23
|
+
: The ID of the folder to move. Specify either `sourceUrl` or `sourceId` but not both.
|
|
21
24
|
|
|
22
25
|
`-t, --targetUrl <targetUrl>`
|
|
23
|
-
: Server-relative URL where to move the folder
|
|
26
|
+
: Server-relative or absolute decoded URL where to move the folder.
|
|
27
|
+
|
|
28
|
+
`--newName [newName]`
|
|
29
|
+
: The new name of the destination folder.
|
|
30
|
+
|
|
31
|
+
`--nameConflictBehavior [nameConflictBehavior]`
|
|
32
|
+
: Behavior when a file or folder with the same name is already present at the destination. Possible values: `fail`, `rename`. The default is `fail`.
|
|
24
33
|
|
|
25
|
-
`--
|
|
26
|
-
:
|
|
34
|
+
`--retainEditorAndModified`
|
|
35
|
+
: Use this option to retain the editor and modified date. When not specified, these values are reset.
|
|
36
|
+
|
|
37
|
+
`--bypassSharedLock`
|
|
38
|
+
: This indicates whether a folder with a share lock can still be moved. Use this option to move a folder that is locked.
|
|
27
39
|
```
|
|
28
40
|
|
|
29
41
|
<Global />
|
|
30
42
|
|
|
31
43
|
## Remarks
|
|
32
44
|
|
|
33
|
-
|
|
45
|
+
All folder versions are retained while moving a folder.
|
|
46
|
+
|
|
47
|
+
When you specify a value for `nameConflictBehavior`, consider the following:
|
|
48
|
+
|
|
49
|
+
- `fail` will throw an error when the destination folder already exists.
|
|
50
|
+
- `rename` will add a suffix (e.g. folder1) when the destination folder already exists.
|
|
34
51
|
|
|
35
52
|
## Examples
|
|
36
53
|
|
|
37
|
-
Move folder to a document library in another site collection
|
|
54
|
+
Move a folder to a document library in another site collection by server-relative URL
|
|
38
55
|
|
|
39
56
|
```sh
|
|
40
|
-
m365 spo folder move --webUrl https://contoso.sharepoint.com/sites/
|
|
57
|
+
m365 spo folder move --webUrl https://contoso.sharepoint.com/sites/project-x --sourceUrl "/sites/project-x/Shared Documents/Reports" --targetUrl "/sites/project-y/Shared Documents/Reports January"
|
|
41
58
|
```
|
|
42
59
|
|
|
43
|
-
Move folder to
|
|
60
|
+
Move a folder to another location using site-relative URLs and rename it
|
|
44
61
|
|
|
45
62
|
```sh
|
|
46
|
-
m365 spo folder move --webUrl https://contoso.sharepoint.com/sites/
|
|
63
|
+
m365 spo folder move --webUrl https://contoso.sharepoint.com/sites/project-x --sourceUrl "/Shared Documents/Reports" --targetUrl "/sites/project-y/Shared Documents" --newName "Reports January"
|
|
47
64
|
```
|
|
48
65
|
|
|
49
|
-
Move folder to
|
|
66
|
+
Move a folder to another location and use a new name on conflict
|
|
50
67
|
|
|
51
68
|
```sh
|
|
52
|
-
m365 spo
|
|
69
|
+
m365 spo folder move --webUrl https://contoso.sharepoint.com/sites/project-x --sourceUrl "/sites/project-x/Shared Documents/Reports" --targetUrl "/sites/project-y/Shared Documents/Project files" --nameConflictBehavior rename
|
|
53
70
|
```
|
|
54
71
|
|
|
72
|
+
Move a folder referenced by its ID to another document library and retain editor and modified date
|
|
73
|
+
|
|
74
|
+
```sh
|
|
75
|
+
m365 spo folder move --webUrl https://contoso.sharepoint.com/sites/project-x --sourceId b8cc341b-9c11-4f2d-aa2b-0ce9c18bcba2 --targetUrl "/sites/project-x/Project files" --retainEditorAndModified
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Response
|
|
79
|
+
|
|
80
|
+
The command won't return a response on success.
|
|
81
|
+
|
|
55
82
|
## More information
|
|
56
83
|
|
|
57
84
|
- Move items from a SharePoint document library: [https://support.office.com/en-us/article/move-or-copy-items-from-a-sharepoint-document-library-00e2f483-4df3-46be-a861-1f5f0c1a87bc](https://support.office.com/en-us/article/move-or-copy-items-from-a-sharepoint-document-library-00e2f483-4df3-46be-a861-1f5f0c1a87bc)
|
|
@@ -17,7 +17,7 @@ m365 spo folder remove [options]
|
|
|
17
17
|
: The URL of the site where the folder to be deleted is located.
|
|
18
18
|
|
|
19
19
|
`--url <url>`
|
|
20
|
-
: The server- or site-relative URL of the folder to delete.
|
|
20
|
+
: The server- or site-relative decoded URL of the folder to delete.
|
|
21
21
|
|
|
22
22
|
`--recycle`
|
|
23
23
|
: Recycles the folder instead of actually deleting it.
|
|
@@ -17,7 +17,7 @@ m365 spo folder rename [options]
|
|
|
17
17
|
: The URL of the site where the folder to be renamed is located.
|
|
18
18
|
|
|
19
19
|
`--url <url>`
|
|
20
|
-
: The server- or site-relative URL of the folder (including the folder).
|
|
20
|
+
: The server- or site-relative decoded URL of the folder (including the folder).
|
|
21
21
|
|
|
22
22
|
`-n, --name <name>`
|
|
23
23
|
: New name for the target folder.
|
|
@@ -38,3 +38,7 @@ Renames a folder with a specific server-relative URL
|
|
|
38
38
|
```sh
|
|
39
39
|
m365 spo folder rename --webUrl https://contoso.sharepoint.com/sites/project-x --url '/sites/project-x/Shared Documents/My Folder 1' --name 'My Folder 2'
|
|
40
40
|
```
|
|
41
|
+
|
|
42
|
+
## Response
|
|
43
|
+
|
|
44
|
+
The command won't return a response on success.
|
|
@@ -17,7 +17,7 @@ m365 spo folder retentionlabel ensure [options]
|
|
|
17
17
|
: URL of the site where the retention label from a file to apply is located
|
|
18
18
|
|
|
19
19
|
`--folderUrl [folderUrl]`
|
|
20
|
-
: The server- or site-relative URL of the folder that should be labelled. Specify either `folderUrl` or `folderId` but not both.
|
|
20
|
+
: The server- or site-relative decoded URL of the folder that should be labelled. Specify either `folderUrl` or `folderId` but not both.
|
|
21
21
|
|
|
22
22
|
`i, --folderId [folderId]`
|
|
23
23
|
: The UniqueId (GUID) of the folder that should be labelled. Specify either `folderUrl` or `folderId` but not both.
|
|
@@ -17,7 +17,7 @@ m365 spo folder retentionlabel remove [options]
|
|
|
17
17
|
: The url of the web.
|
|
18
18
|
|
|
19
19
|
`--folderUrl [folderUrl]`
|
|
20
|
-
: The server- or site-relative URL of the folder of which the label should be removed. Specify either `folderUrl` or `folderId` but not both.
|
|
20
|
+
: The server- or site-relative decoded URL of the folder of which the label should be removed. Specify either `folderUrl` or `folderId` but not both.
|
|
21
21
|
|
|
22
22
|
`-i, --folderId [folderId]`
|
|
23
23
|
: The UniqueId (GUID) of the folder of which the label should be removed. Specify either `folderUrl` or `folderId` but not both.
|
|
@@ -17,7 +17,7 @@ m365 spo folder roleassignment add [options]
|
|
|
17
17
|
: The URL of the site where the folder is located.
|
|
18
18
|
|
|
19
19
|
`--folderUrl <folderUrl>`
|
|
20
|
-
: The server- or site-relative URL of the folder.
|
|
20
|
+
: The server- or site-relative decoded URL of the folder.
|
|
21
21
|
|
|
22
22
|
`--principalId [principalId]`
|
|
23
23
|
: The SharePoint principal id. It may be either an user id or group id for which the role assignment will be addd. Specify either upn, groupName or principalId but not multiple.
|
|
@@ -32,7 +32,7 @@ m365 spo folder roleassignment add [options]
|
|
|
32
32
|
: ID of the role definition. Specify either roleDefinitionId or roleDefinitionName but not both.
|
|
33
33
|
|
|
34
34
|
`--roleDefinitionName [roleDefinitionName]`
|
|
35
|
-
: The name of the role definition. E.g. 'Contribute', 'Read'. Specify either roleDefinitionId or roleDefinitionName but not both
|
|
35
|
+
: The name of the role definition. E.g. 'Contribute', 'Read'. Specify either roleDefinitionId or roleDefinitionName but not both.
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
<Global />
|
|
@@ -17,7 +17,7 @@ m365 spo folder roleassignment remove [options]
|
|
|
17
17
|
: The URL of the site where the folder is located.
|
|
18
18
|
|
|
19
19
|
`--folderUrl <folderUrl>`
|
|
20
|
-
: The server- or site-relative URL of the folder.
|
|
20
|
+
: The server- or site-relative decoded URL of the folder.
|
|
21
21
|
|
|
22
22
|
`--principalId [principalId]`
|
|
23
23
|
: The SharePoint principal id. It may be either an user id or group id for which the role assignment will be removed. Specify either upn, groupName or principalId but not multiple.
|
|
@@ -17,7 +17,7 @@ m365 spo folder roleinheritance break [options]
|
|
|
17
17
|
: URL of the site where the folder is located.
|
|
18
18
|
|
|
19
19
|
`--folderUrl <folderUrl>`
|
|
20
|
-
: The server- or site-relative URL of the folder.
|
|
20
|
+
: The server- or site-relative decoded URL of the folder.
|
|
21
21
|
|
|
22
22
|
`-c, --clearExistingPermissions`
|
|
23
23
|
: Clear all existing permissions from the folder.
|
|
@@ -17,7 +17,7 @@ m365 spo folder roleinheritance reset [options]
|
|
|
17
17
|
: URL of the site where the folder is located.
|
|
18
18
|
|
|
19
19
|
`--folderUrl <folderUrl>`
|
|
20
|
-
: The server- or site-relative URL of the folder.
|
|
20
|
+
: The server- or site-relative decoded URL of the folder.
|
|
21
21
|
|
|
22
22
|
`-f, --force`
|
|
23
23
|
: Don't prompt for confirmation to reset role inheritance of the folder.
|
|
@@ -28,7 +28,7 @@ m365 spo listitem attachment list [options]
|
|
|
28
28
|
: Server- or site-relative URL of the list. Specify either `listTitle`, `listId` or `listUrl`
|
|
29
29
|
|
|
30
30
|
`--listItemId <listItemId>`
|
|
31
|
-
: ID of the list item
|
|
31
|
+
: ID of the list item
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
<Global />
|
|
@@ -98,7 +98,7 @@ Deleting and creating classic site collections is by default asynchronous and de
|
|
|
98
98
|
|
|
99
99
|
The `--owners` option is mandatory for creating `CommunicationSite` sites with app-only permissions.
|
|
100
100
|
|
|
101
|
-
When trying to create a team site using app-only permissions, you will get an _Insufficient privileges to complete the operation._ error. As a workaround, you can use the [`aad
|
|
101
|
+
When trying to create a team site using app-only permissions, you will get an _Insufficient privileges to complete the operation._ error. As a workaround, you can use the [`aad m365group add`](../../aad/m365group/m365group-add.mdx) command, followed by [`spo site set`](./site-set.mdx) to further configure the Team site.
|
|
102
102
|
|
|
103
103
|
## Examples
|
|
104
104
|
|
|
@@ -32,7 +32,7 @@ m365 teams team add [options]
|
|
|
32
32
|
|
|
33
33
|
## Remarks
|
|
34
34
|
|
|
35
|
-
If you want to add a Team to an existing Microsoft 365 Group use the [aad
|
|
35
|
+
If you want to add a Team to an existing Microsoft 365 Group use the [aad m365group teamify](../../aad/m365group/m365group-teamify.mdx) command instead.
|
|
36
36
|
|
|
37
37
|
This command will return different responses based on the presence of the `--wait` option. If present, the command will return a `group` resource in the response. If not present, the command will return a `teamsAsyncOperation` resource in the response.
|
|
38
38
|
|