Forum Discussion

atharva_dubey's avatar
atharva_dubey
Copper Contributor
Jul 08, 2026

[Feature Request]: OneDrive CLI

$: man onedrive_rsync
onedrive_rsync src_folder_path dst_folder_path
src_folder_path: Can be a local path or a onedrive path
dst_folder_path: Can be a local path or a onedrive path

# Examples
# Uploads all files which are present in the local and missing in the onedrive path
$: onedrive_rsync path_to_local_folder path_to_ondrive_folder

# Downloads all the files which are missing in the local path and persent in the onedrive path
$: onedrive_rsync path_to_onedrive_folder path_to_local_folder

# Syncs two folders on the onedrive path
$: onedrive_rsync path_to_onedrive_folder_1 path_to_onedrive_folder_2

# Regex patterns should also be allowed
$: onedrive_rsync path_to_local_folder/*.nef path_to_onedrive_path

Hi All,

 

It would be really nice to have an official OneDrive CLI that can be used via the terminal to allow for secure uploads/ downloads and syncing of either local folders to the OneDrive or syncing two OneDrive folders. 

 

My motivation for the above feature request is that I quite often upload/download quite big folders to/from OneDrive (many many GBs), and sometimes all I need is incremental changes.

 

Keeping the browser open for the entire duration is cumbersome, and thus, it would be very nice to have a CLI, that can run in the background or can be automated via some script. This also enables a use case where I need to upload files from multiple devices to the same OneDrive folder. 

 

Hoping this would become a thing, as I would prefer as little browser interaction as possible, so the entire suite of CLI commands for path manipulations (creating, deleting and moving files and folders in OneDrive) would be very much appreciated. 

 

Thanks !

1 Reply

  • Hi, I like this idea. A proper supported OneDrive CLI would be very useful for large folders, repeatable jobs, and automation where keeping a browser open is not practical.

     

    Today, the closest supported options are usually the OneDrive sync client for local folder sync, Microsoft Graph for custom upload/download automation, or PowerShell/PnP-style tooling depending on whether the content is in OneDrive or SharePoint. Those work, but they are not the same as a simple first-party `onedrive rsync` style experience.

     

    If Microsoft ever builds this, I would also want it to handle resumable uploads, throttling/backoff, conflict behavior, selective sync, dry-run mode, and clear authentication for work/school versus personal accounts. It is worth submitting through the official feedback channels too, because this would need product-team prioritization rather than a community-only workaround.