Skip to main content

sharepoint-cli

Agent-friendly SharePoint Online CLI with JSON output, structured exit codes, and schema introspection.

Install

From crates.io

cargo install sharepoint-cli

From PyPI

pip install sharepoint-cli-rs
# or
uv tool install sharepoint-cli-rs

From source

git clone https://github.com/rvben/sharepoint-cli
cd sharepoint-cli
cargo install --path .

Quick start

# First-time setup: configures tenant + default site, then signs in
sharepoint init

# Or sign in to an already-configured profile
sharepoint auth login

# List followed sites
sharepoint sites list

# List libraries in a site
sharepoint drives list <site>

# Browse a library
sharepoint files ls <site>:<library>/

# Stat / download / search
sharepoint files stat   <site>:<library>/path/to/file
sharepoint files download <site>:<library>/path/to/file -o ./out.bin
sharepoint files find   <site>:<library>/ --name '*.pdf'

Output

  • Human output on stdout, status messages on stderr.
  • --json (or non-TTY stdout) emits machine-readable JSON on stdout.
  • --quiet suppresses status messages.

Configuration

Config lives at $XDG_CONFIG_HOME/sharepoint/config.toml (or ~/.config/sharepoint/config.toml). Run sharepoint config path to print the resolved location.

You must supply two things before signing in:

  • A tenant (your Microsoft 365 domain or tenant GUID).
  • A client_id for an Entra public-client app you've registered. The app needs the device-code flow enabled and delegated Files.Read.All, Sites.Read.All, and offline_access scopes. sharepoint init walks you through saving both into the active profile.

Environment overrides:

  • SHAREPOINT_PROFILE — active profile name
  • SHAREPOINT_TENANT_ID — tenant override
  • SHAREPOINT_CLIENT_ID — Entra application (client) ID — required

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sharepoint_cli_rs-0.0.9.tar.gz (94.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

sharepoint_cli_rs-0.0.9-py3-none-win_amd64.whl (2.6 MB view details)

Uploaded Python 3Windows x86-64

sharepoint_cli_rs-0.0.9-py3-none-manylinux_2_28_x86_64.whl (2.7 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

sharepoint_cli_rs-0.0.9-py3-none-manylinux_2_28_aarch64.whl (2.5 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

sharepoint_cli_rs-0.0.9-py3-none-macosx_11_0_arm64.whl (2.5 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

sharepoint_cli_rs-0.0.9-py3-none-macosx_10_12_x86_64.whl (2.6 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file sharepoint_cli_rs-0.0.9.tar.gz.

File metadata

  • Download URL: sharepoint_cli_rs-0.0.9.tar.gz
  • Upload date:
  • Size: 94.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.4 {"installer":{"name":"uv","version":"0.12.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for sharepoint_cli_rs-0.0.9.tar.gz
Algorithm Hash digest
SHA256 d04b9cc7381a8d0972dc4fdfc07cdae7fae03d2e816ee767214caf40b16defaf
MD5 3bed91a17012914250b897a6d888d982
BLAKE2b-256 89933582460dde2d74619ff750096983fa3e78f6ddee70ba65953de3661bc7dd

See more details on using hashes here.

File details

Details for the file sharepoint_cli_rs-0.0.9-py3-none-win_amd64.whl.

File metadata

  • Download URL: sharepoint_cli_rs-0.0.9-py3-none-win_amd64.whl
  • Upload date:
  • Size: 2.6 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.4 {"installer":{"name":"uv","version":"0.12.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for sharepoint_cli_rs-0.0.9-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 4765f1af0e678a7839b8a8efb94933b81329c3dc40489857db0d73dfd24f50bf
MD5 07baca012f1815f70f00322c729efd35
BLAKE2b-256 24c38a23997101e85bd3692608a8744d786da23a982bb08b9868c3a8d01779d8

See more details on using hashes here.

File details

Details for the file sharepoint_cli_rs-0.0.9-py3-none-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: sharepoint_cli_rs-0.0.9-py3-none-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 2.7 MB
  • Tags: Python 3, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.4 {"installer":{"name":"uv","version":"0.12.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for sharepoint_cli_rs-0.0.9-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e700b31b9041ca357ae681c3bc35ada47162da566e4e004b6c8fcfc4bee362a1
MD5 21500431d242ddf34bb57821cbfe52cb
BLAKE2b-256 82dcd59730cb1f0100f494640f70198778b2d958384278836af89e7460079d43

See more details on using hashes here.

File details

Details for the file sharepoint_cli_rs-0.0.9-py3-none-manylinux_2_28_aarch64.whl.

File metadata

  • Download URL: sharepoint_cli_rs-0.0.9-py3-none-manylinux_2_28_aarch64.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: Python 3, manylinux: glibc 2.28+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.4 {"installer":{"name":"uv","version":"0.12.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for sharepoint_cli_rs-0.0.9-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c94565d3cfd355707a58a2fe305c792d730a41a1ac6c7f484a80c6149ff14b07
MD5 815492d0a9f6a5ba398f5de53d8c12f6
BLAKE2b-256 623b1193b608ca8377193552db7e68f9cea24dee5e523cc53cf7fe5bc8af6bf1

See more details on using hashes here.

File details

Details for the file sharepoint_cli_rs-0.0.9-py3-none-macosx_11_0_arm64.whl.

File metadata

  • Download URL: sharepoint_cli_rs-0.0.9-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.4 {"installer":{"name":"uv","version":"0.12.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for sharepoint_cli_rs-0.0.9-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a0fd22a794bb171a8882dd1b3ea13a96e16a4e22bf7ffbe1429f41cd6f77bb11
MD5 6c8b9189c8053163343d4b6a62327042
BLAKE2b-256 b4e81edf6fddb7993f8d843dc6dae43f09719b88f018cc06a268b0f55049decc

See more details on using hashes here.

File details

Details for the file sharepoint_cli_rs-0.0.9-py3-none-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: sharepoint_cli_rs-0.0.9-py3-none-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 2.6 MB
  • Tags: Python 3, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.4 {"installer":{"name":"uv","version":"0.12.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for sharepoint_cli_rs-0.0.9-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 399897fddb2ae6508974fe62bdc0b8efe5904a5ca77a8a80292d3407fdd49c41
MD5 aed1fdc72c188a050220560e5bc33143
BLAKE2b-256 99a2505f4858a91d4e22d93a95fc7f3f3e4cef576a24c894211021c138b4dd82

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.11

6 files

0.0.10

6 files

This release

0.0.9 This release

6 files

0.0.8

6 files

0.0.7

6 files

0.0.6

6 files

0.0.4

6 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page