@pnp/cli-microsoft365 6.9.0-beta.d8f8efb → 6.9.0-beta.ef7c408

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.
Files changed (32) hide show
  1. package/.devcontainer/Dockerfile +12 -19
  2. package/.devcontainer/devcontainer.json +24 -17
  3. package/Dockerfile +3 -1
  4. package/dist/Auth.js +2 -8
  5. package/dist/AuthServer.js +2 -4
  6. package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +23 -24
  7. package/dist/m365/aad/commands/o365group/o365group-set.js +15 -20
  8. package/dist/m365/aad/commands/sp/sp-list.js +78 -0
  9. package/dist/m365/aad/commands.js +1 -0
  10. package/dist/m365/app/commands/app-open.js +4 -14
  11. package/dist/m365/cli/commands/cli-issue.js +4 -10
  12. package/dist/m365/cli/commands/cli-reconsent.js +2 -8
  13. package/dist/m365/commands/docs.js +2 -8
  14. package/dist/m365/commands/setupPresets.js +2 -0
  15. package/dist/m365/flow/commands/flow-list.js +30 -12
  16. package/dist/m365/flow/commands/flow-remove.js +2 -3
  17. package/dist/m365/flow/commands/run/run-resubmit.js +11 -10
  18. package/dist/m365/outlook/commands/message/message-list.js +18 -23
  19. package/dist/m365/outlook/commands/message/message-move.js +15 -20
  20. package/dist/m365/pp/commands/managementapp/managementapp-add.js +19 -20
  21. package/dist/m365/spo/commands/file/file-checkout-undo.js +119 -0
  22. package/dist/m365/spo/commands/list/list-add.js +1 -1
  23. package/dist/m365/spo/commands.js +1 -0
  24. package/dist/m365/util/commands/accesstoken/accesstoken-get.js +10 -7
  25. package/dist/utils/browserUtil.js +23 -0
  26. package/docs/docs/cmd/aad/sp/sp-list.mdx +162 -0
  27. package/docs/docs/cmd/flow/flow-list.mdx +15 -0
  28. package/docs/docs/cmd/setup.mdx +2 -0
  29. package/docs/docs/cmd/spo/file/file-checkout-undo.mdx +55 -0
  30. package/docs/docs/cmd/util/accesstoken/accesstoken-get.mdx +12 -2
  31. package/npm-shrinkwrap.json +299 -272
  32. package/package.json +17 -17
@@ -26,9 +26,13 @@ m365 util accesstoken get [options]
26
26
 
27
27
  ## Remarks
28
28
 
29
- The `util accesstoken get` command returns an access token for the specified resource. If an access token has been previously retrieved and is still valid, the command will return the cached token. If you want to ensure that the returned access token is valid for as long as possible, you can force the command to retrieve a new access token by using the `--new` option.
29
+ :::tip
30
+
31
+ Instead of specifying the full URL of the resource, you can use one of the following shorthand identifiers: `sharepoint`, `graph`.
30
32
 
31
- If the URL of your SharePoint tenant has been previously retrieved, you can use `sharepoint` as the resource to retrieve access token for SharePoint. To verify if the URL of your SharePoint tenant has been previously retrieved, use the [`spo get`](../../spo/spo-get.mdx) command. To explicitly set the URL of your SharePoint tenant use the [`spo set`](../../spo/spo-set.mdx) command.
33
+ :::
34
+
35
+ The `util accesstoken get` command returns an access token for the specified resource. If an access token has been previously retrieved and is still valid, the command will return the cached token. If you want to ensure that the returned access token is valid for as long as possible, you can force the command to retrieve a new access token by using the `--new` option.
32
36
 
33
37
  ## Examples
34
38
 
@@ -44,6 +48,12 @@ Get access token for SharePoint Online using the shorthand identifier
44
48
  m365 util accesstoken get --resource sharepoint
45
49
  ```
46
50
 
51
+ Get access token for Microsoft Graph using the shorthand identifier
52
+
53
+ ```sh
54
+ m365 util accesstoken get --resource graph
55
+ ```
56
+
47
57
  Get a new access token for SharePoint Online
48
58
 
49
59
  ```sh