Skip to main content

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

Project description

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.

Environment overrides:

  • SHAREPOINT_PROFILE — active profile name
  • SHAREPOINT_TENANT_ID — tenant override
  • SHAREPOINT_CLIENT_ID — Azure AD application ID

License

MIT

Project details


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.4.tar.gz (116.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.4-py3-none-win_amd64.whl (2.5 MB view details)

Uploaded Python 3Windows x86-64

sharepoint_cli_rs-0.0.4-py3-none-manylinux_2_28_x86_64.whl (2.6 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

sharepoint_cli_rs-0.0.4-py3-none-manylinux_2_28_aarch64.whl (2.4 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

sharepoint_cli_rs-0.0.4-py3-none-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

sharepoint_cli_rs-0.0.4-py3-none-macosx_10_12_x86_64.whl (2.5 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: sharepoint_cli_rs-0.0.4.tar.gz
  • Upload date:
  • Size: 116.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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.4.tar.gz
Algorithm Hash digest
SHA256 f6ac49fef3e14ec29897fd9d361d5c66b1f7be1ea579607667bd6fb873ccb354
MD5 04db9431bc13e076a846e5f4af1eb07f
BLAKE2b-256 f5b75804563367295ee645551d2c1ecf6ccefadbe102d2a33c0e53d8189ec647

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sharepoint_cli_rs-0.0.4-py3-none-win_amd64.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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.4-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e80bb0a53b81b12658bf25b7a8ee519e72c364a25907ff9d43267a59b0e7c607
MD5 35aa20a3f878339f0949bf32e3b670d8
BLAKE2b-256 222d66b8f14ea520d58f6aedc904c95fc10aefdd4ae3355b3ea992ba24c35376

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sharepoint_cli_rs-0.0.4-py3-none-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 2.6 MB
  • Tags: Python 3, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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.4-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 eecf9a831572484e1c2ed735bc2982ae58ef7f277cb2f4a615dee9bb1b94e35b
MD5 3ac8ae940dc1b1d21ac364425e8a4290
BLAKE2b-256 05f38f94e2fb82a8b11c5871c30b12f3e29db3fd7531ad03f27fcc687c996c79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sharepoint_cli_rs-0.0.4-py3-none-manylinux_2_28_aarch64.whl
  • Upload date:
  • Size: 2.4 MB
  • Tags: Python 3, manylinux: glibc 2.28+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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.4-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d9885b626180691d679333a51d000fa30c8d9108b1547382fe818f32fcfa62fe
MD5 59a71d872e2f15c90701dc40b899dcb7
BLAKE2b-256 160a94ad9534f101522080e8685e764c091bd832f1bf0a32cbf85d606990d01b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sharepoint_cli_rs-0.0.4-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 2.4 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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.4-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8924672a96288f16793fb8ab44f4014062fdb1c8a2c5a3fb4ffa132258f6ddf3
MD5 6a412fb8888414197662642f59155c5b
BLAKE2b-256 d8dece034b5533e44702a41ddea30eb024c7743a7b9a011bd00472302ff71648

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sharepoint_cli_rs-0.0.4-py3-none-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: Python 3, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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.4-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 94fab0adaaf6f4a4f2fc924eef354b882224aa29fe3b23237f88a54f288226a1
MD5 ae828ebd77f7c2fd3a9202a118cfda89
BLAKE2b-256 b10f523bd73c80ff15288adf3ad3aed1bd848b995aae625864eabcc6f5816d5f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page