# Install onedrive-cli with Homebrew, apk, chocolatey, apt, dnf, Nix, winget, zypper

Folder synchronization with OneDrive. Version 2.5.11 via Homebrew; verified 2026-06-30.

## Install

```sh
sudo av install brew:onedrive-cli
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install onedrive-cli
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add onedrive
```

  Evidence: Alpine Linux edge package indexes: onedrive from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install onedrive
```

  Evidence: Debian stable package indexes: onedrive from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install onedrive
```

  Evidence: Fedora Rawhide package metadata: onedrive from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#onedrive
```

  Evidence: nixpkgs package indexes: pkgs/by-name/on/onedrive/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install onedrive
```

  Evidence: openSUSE Tumbleweed package metadata: onedrive from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install onedrive
```

  Evidence: Chocolatey community package catalog: onedrive from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','office365homepremium'

- winget (92%):

```sh
winget install --id Microsoft.OneDrive -e
```

  Evidence: Windows Package Manager source index: Microsoft.OneDrive from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:onedrive-cli
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/onedrive-cli>
- **Version:** 2.5.11
- **Source summary:** Folder synchronization with OneDrive
- **Homepage:** <https://abraunegg.github.io>
- **Repository:** <https://github.com/abraunegg/onedrive>
- **Upstream docs:** <https://github.com/abraunegg/onedrive#readme>
- **License:** GPL-3.0-only
- **Source archive:** <https://github.com/abraunegg/onedrive/archive/refs/tags/v2.5.11.tar.gz>
- **Last updated:** 2026-06-30T08:36:20Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- onedrive (cli)
- onedrive (alias)

## Dependencies

- curl
- dbus
- sqlite
- systemd

## Build dependencies

- ldc
- pkgconf

## Install behavior

- Post-install hook: not defined
- Service: declared
- Bottle: available on arm64_linux, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.5.11
- Package-manager updated: 2026-06-30
- Local data: ok
- Upstream repository: https://github.com/abraunegg/onedrive
- Upstream latest detected: v2.5.11 (current)
## Project history and usage

OneDrive Client for Linux is a GPL-3.0 command-line sync client for Microsoft OneDrive, OneDrive for Business, Microsoft 365, and SharePoint document libraries. The Homebrew package name onedrive-cli distinguishes it from Microsoft's Windows and macOS OneDrive applications while installing the onedrive executable on Linux.

### Project history

The maintained abraunegg project originated as a fork of the skilion OneDrive client in early 2018. The upstream README says the fork followed unmerged improvements and bug fixes, including pull requests #82 and #314, and a period in which skilion development and issue handling had largely stalled.

The README records later milestones in the fork's justification: in 2020 the original skilion developer said they did not intend to maintain or support their work; the original skilion repository was archived in December 2024; and its last code change was merged in November 2021. The abraunegg fork continued as the actively maintained Linux client.

### Adoption history

Adoption grew around a practical gap: Microsoft did not provide an official OneDrive sync client for Linux distributions, while Linux desktop and server users still needed bidirectional file synchronization. The project documents installation across Linux and FreeBSD environments and supports container deployment with Docker or Podman.

Homebrew's formula packages onedrive-cli for Linux ARM64 and x86_64, depends on system integration pieces such as dbus and systemd, and links to the project's maintained documentation. The upstream README also points to external GUI, tray, and log-coloring companions rather than folding those features into the CLI.

### How it is used

Operators use onedrive for one-way or two-way synchronization, daemon-style background sync, selective sync, multiple configuration profiles, SharePoint and Business shared-item syncing, and headless server deployments. Configuration and token files live under ~/.config/onedrive, matching the CLI-first model of a long-running sync agent.

The project is also used in desktop Linux setups where libnotify and file-manager integration provide visible sync status, but the README stresses that most functionality works without a graphical environment.

### Why package nerds care

This package is a good example of an ecosystem-maintained replacement for a missing vendor client. Its packaging story matters because the same binary straddles desktop convenience, server automation, OAuth token handling, distro service management, and Microsoft API compatibility.

### Timeline

- Early 2018: the abraunegg project forked the skilion client.
- 2020: the skilion maintainer confirmed no intent to maintain or support the original client.
- November 2021: the original skilion repository received its last code change, according to the abraunegg README.
- December 2024: the original skilion repository was archived and made read-only on GitHub.

### Related projects

- The project is directly descended from the skilion client. The README also links related companion projects for GUI configuration, tray status, and colored logging.

### Sources

- <https://abraunegg.github.io>
- <https://formulae.brew.sh/formula/onedrive-cli>
- <https://github.com/abraunegg/onedrive>


## Security Notes

broad file, network, media, or database tool signal. formula declares a Homebrew service.

- **Geiger risk:** orange / medium
- broad file, network, media, or database tool signal
- formula declares a Homebrew service


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.config/onedrive/config

## Credential files

- Unix: ~/.config/onedrive/refresh_token
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** onedrive-cli
- **Version Scheme:** 0
- **Revision:** 0
- **Requirements:** linux
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - onedrive - 2.5.4-1: installed executable or alias match | Debian stable package indexes: onedrive from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | folder synchronization with OneDrive | https://github.com/abraunegg/onedrive
- Nix - onedrive: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/on/onedrive/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - onedrive - 2.4.25-1build5: installed executable or alias match | Ubuntu 24.04 LTS package indexes: onedrive from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | folder synchronization with OneDrive | https://github.com/abraunegg/onedrive
- apk - onedrive - 2.5.10-r1: installed executable or alias match | Alpine Linux edge package indexes: onedrive from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | OneDrive Client for Linux | https://abraunegg.github.io
- apk - onedrive-doc - 2.5.10-r1: installed executable or alias match | Alpine Linux edge package indexes: onedrive-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | OneDrive Client for Linux (documentation) | https://abraunegg.github.io
- apk - onedrive-openrc - 2.5.10-r1: installed executable or alias match | Alpine Linux edge package indexes: onedrive-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | OneDrive Client for Linux (OpenRC init scripts) | https://abraunegg.github.io
- dnf - onedrive - 2.5.10-2.fc45: installed executable or alias match | Fedora Rawhide package metadata: onedrive from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | OneDrive Free Client written in D | https://github.com/abraunegg/onedrive
- zypper - onedrive - 2.5.10-1.4: installed executable or alias match | openSUSE Tumbleweed package metadata: onedrive from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Client for One Drive Service for Linux | https://github.com/abraunegg/onedrive/
- zypper - onedrive-completion-bash - 2.5.10-1.4: installed executable or alias match | openSUSE Tumbleweed package metadata: onedrive-completion-bash from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | OneDrive Bash completion | https://github.com/abraunegg/onedrive/
- zypper - onedrive-completion-fish - 2.5.10-1.4: installed executable or alias match | openSUSE Tumbleweed package metadata: onedrive-completion-fish from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | OneDrive fish completion | https://github.com/abraunegg/onedrive/
- zypper - onedrive-completion-zsh - 2.5.10-1.4: installed executable or alias match | openSUSE Tumbleweed package metadata: onedrive-completion-zsh from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | OneDrive zsh completion | https://github.com/abraunegg/onedrive/
- Chocolatey - onedrive: installed executable or alias match | Chocolatey community package catalog: onedrive from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','office365homepremium'
- winget - Microsoft.OneDrive: installed executable or alias match | Windows Package Manager source index: Microsoft.OneDrive from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [curl](https://www.automicvault.com/pkg/brew/curl/) - Runtime dependency declared by Homebrew.
- [dbus](https://www.automicvault.com/pkg/brew/dbus/) - Runtime dependency declared by Homebrew.
- [sqlite](https://www.automicvault.com/pkg/brew/sqlite/) - Runtime dependency declared by Homebrew.
- [systemd](https://www.automicvault.com/pkg/brew/systemd/) - Runtime dependency declared by Homebrew.
- [ldc](https://www.automicvault.com/pkg/brew/ldc/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [aliyunpan](https://www.automicvault.com/pkg/brew/aliyunpan/) - Shares av.db curated category or tags: cli, cloud-storage, file-sync, productivity.
- [grsync](https://www.automicvault.com/pkg/brew/grsync/) - Shares av.db curated category or tags: cli, file-sync, productivity.
- [syncthing](https://www.automicvault.com/pkg/brew/syncthing/) - Shares av.db curated category or tags: cli, file-sync, productivity.
- [cloudpan189-go](https://www.automicvault.com/pkg/brew/cloudpan189-go/) - Shares av.db curated category or tags: cli, cloud-storage, productivity.
- [gdrive](https://www.automicvault.com/pkg/brew/gdrive/) - Shares av.db curated category or tags: cli, cloud-storage, productivity.
- [megacmd](https://www.automicvault.com/pkg/brew/megacmd/) - Shares av.db curated category or tags: cli, cloud-storage, productivity.
- [megatools](https://www.automicvault.com/pkg/brew/megatools/) - Shares av.db curated category or tags: cli, cloud-storage, productivity.
- [a2ps](https://www.automicvault.com/pkg/brew/a2ps/) - Shares av.db curated category or tags: cli, productivity.

## Combined YAML source

View the package source record on GitHub. [combined/onedrive-cli.yml](https://github.com/automic-vault/db/blob/main/combined/onedrive-cli.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
