Skip to content

Microsoft Graph CLI Preview 5

Pre-release
Pre-release
Compare
Choose a tag to compare
@calebkiage calebkiage released this 10 Jun 08:09
· 90 commits to e6e147e35cd6b82bf183d289735db5781a46fef9 since this release
03317b2

What's New

  • Add item sub-command for indexer paths (paths with id). GET /users/{user-id} changes from mgc users get --user-id to mgc users item get --user-id
  • Add command samples.
  • Add automatic page iteration via the --all command option.
  • Bug fixes. See CHANGELOG.md for more detailed changes
  • Commands generated for all endpoints in the graph API's openapi.yaml file

Known Issues

  • Some of the new count commands e.g. mgc users count get require the ConsistencyLevel header set. However, the endpoint definitions don't document it and so the command doesn't have an option generated to allow the user to provide a value for it.

Install instructions

  1. Download from assets below and extract the application archive for your OS
  2. Run the login command e.g. ./mgc login --scopes User.ReadWrite --scopes Mail.ReadWrite
  3. Run any other commands. For a list of available commands, run ./mgc -h

Full Changelog: https://github.com/microsoftgraph/msgraph-cli/blob/03317b2b2c14957b1d3ce5258f0239a2070f4cd6/CHANGELOG.md#010-preview5---2022-06-10