m365-onedrive
Installation
SKILL.md
m365-onedrive — Personal OneDrive Management
Prerequisites
which m365 || echo "m365 CLI not installed. Run: npm i -g @pnp/cli-microsoft365"
m365 status || echo "Not signed in. Run: m365 login"
For auth details, see ../m365-shared/references/authentication.md.
Operating Principles
- OneDrive uses
spo file/foldercommands with OneDrive URL pattern:https://{tenant}-my.sharepoint.com/personal/{user_encoded} - Always resolve OneDrive URL first before any file operation
- Output: always
-o jsonwith--query - Default document library folder:
Documents