The Microsoft Graph Command-Line Interface (CLI)
On November 22nd, Microsoft announced that the Microsoft Graph CLI was now generally available at version 1.0.0. The command-line tool provides convenient methods to access Microsoft Graph API capabilities on any operating system and any shell. The CLI uses the Microsoft Graph v1.0 endpoint. Microsoft does provide a Beta CLI that interacts with the Microsoft Graph Beta endpoint.
The CLI not only allows you to get objects but update, create and delete objects using the Microsoft Graph REST API.
Download the CLI
MacOS
Download the CLI from here.
- If you have an ARM based Mac (M1, M2, etc) computer, download the
msgraph-beta-cli-osx-arm64...
package. - If you have an Intel processor, download the
msgraph-beta-cli-osx-x64...
package.
Extract the files to a directory you can reference later. For my purposes, I created a folder called, ‘MSGraph CLI’ in my Home Directory.
Next, we will update PATH
permanently by editing your shell profile (… Continue...