The document discusses an Office 365 command line interface (CLI) tool that allows users to manage Microsoft 365 services like SharePoint, Teams, and Power Automate from any operating system or shell using a unified login. It provides over 200 commands for services like SharePoint, Teams, Outlook, and more. The CLI is cross-platform, supports authentication with Azure Active Directory, and outputs human-friendly responses. It is actively developed with weekly beta releases and monthly main releases.
2. #M365May @M365May M365May.com
TRADITIONAL OWNERS
We acknowledge the traditional custodians of the land on which this online conference is
hosted, and the traditional custodians of the lands where our Australian-based speakers
and participants are located.
We would also like to pay our respects to Elders past, present and future
Tēnā koutou, tēnā koutou, tēnā tātou katoa.
On behalf of M365 May we would like to welcome and acknowledge all our speakers and
participants from Aotearoa New Zealand. Thank you for supporting this hui.
Tēnā koutou, tēnā koutou, tēnā tātou katoa.
WELCOME TO OUR SPEAKERS AND PARTICIPANTS FROM AROUND THE WORLD
3. #M365May @M365May M365May.com
CODE OF CONDUCT
THE QUICK VERSION
Our conference is dedicated to providing a harassment-free conference experience for everyone, regardless
of gender, gender identity and expression, age, sexual orientation, disability, physical appearance, body size,
race, ethnicity, religion (or lack thereof), or technology choices.
We do not tolerate harassment of conference participants in any form. Sexual language and imagery is not
appropriate for any conference venue, including talks, workshops, parties, Twitter and other online media.
Conference participants violating these rules may be sanctioned or expelled from the conference without a
refund at the discretion of the conference organisers.
Be constructive, be respectful, be helpful and be kind.
THE LESS QUICK VERSION
www.m365may.com/code-of-conduct
4. Rabia Williams
Developer @ Engage Squared
Microsoft MVP - Office Development
@williamsrabia
rabiawilliams.com
5. BACK IN THE DAYS….
Everything Microsoft ran on Windows
Microsoft was firmly at war with open source
6.
7. TODAY ……
Microsoft is a member of the Linux Foundation
They are one of the biggest contributors to open source initiatives
SharePoint Framework is built on open source technology stack
8. OFFICE 365 TOOLS?
To manage Office 365 on any platform Office 365 CLI is
born (or made/developed)
9. OFFICE 365 CLI
... is a cross platform command line interface built on
Node.js, which provides a unified & secure login using
Azure Active Directory Authentication and access to
hundreds of commands for managing SharePoint Online,
Microsoft Teams, Power Automate and many more …
10. WHAT IS CROSS PLATFORM?
Any OS
Windows, MacOS, Linux …
Any Shell
PowerShell, bash, cmd …
Unified Login
One login, all services …
11. COMMANDS AND SERVICES
SharePoint Online
Teams
YammerOutlook
Azure AD
Planner
Power Automate (Flow)
Access Token
Graph
Power Apps
Tenant
33
1
12
5
13
5
1
3
205+
43
1
17
OneDrive 7
SharePoint Framework
12. HOW TO GET STARTED?
npm install -g @pnp/office365-cli
npm i -g @pnp/office365-cli@next(beta)
yarn add global @pnp/office365-cli
Install Node.js LTS
13. Immersive
Direct access to commands
Autocomplete as default
Cannot access shell commands
Non-immersive
Prepend commands with ’o365’
Autocomplete requires extra
configuration
Can access shell commands
Ideal for scripting
https://pnp.github.io/office365-cli/user-guide/using-cli/
14. LOGIN OPTIONS
Device Code
Certificate (PFX/PEM)
Username and Password
Interactive | user context
Non-interactive | user context
Non-interactive | app context
>
>
>
15. AUTHENTICATION
Azure Active Directory Service Principal
Grant consent (requires Administrator consent on
first run)
“token swapping” and refresh tokens are handled
in the background
Azure AD Dynamic Consent used to provide
access to Yammer
16. COMMON COMMAND OPTIONS
help, --help
Display interactive help
--output, -o [output] (text | json)
Output response in text or raw json format
--verbose
Display friendly messages
--debug
Return all details of requests made
--query
Queries <JMESPATH> can be specified using
this option on each command and are applied just
before the data retrieved by the command is sent to
the console
17. #M365May @M365May M365May.com
COMPETITION WEEK 1
REGISTERED PARTICIPANTS - SCAN THE QR CODE TO ENTER THE PRIZE DRAW
COMPETITION AND PRIZE RULES
m365may.com/competition-rules
20. WHAT'S COOKING ?
• The project is actively maintained with a beta release
every week
• A main release every month
• Over 600 issues closed over 2 years period
We acknowledge the traditional custodians of the land on which this online conference is hosted, and the traditional custodians of the lands where our Australian-based speakers and participants are located.
We would also like to pay our respects to Elders past, present and future.
Tēnā koutou, tēnā koutou, tēnā tātou katoa. Ko Rebecca Jackson tōku ingoa. Nō Melbourne au. On behalf of M365 May I would like to welcome and acknowledge all our speakers and participants from Aotearoa New Zealand. Thank you for supporting this hui.