Skip to main content

kdrive-cli

Unofficial CLI for Infomaniak kDrive — manage files, folders, and drives from the terminal.

Install

# pip
pip install kdrive-cli

# brew (macOS/Linux)
brew install kilian-lm/tap/kdrive-cli

# from source
git clone https://github.com/kilian-lm/kdrive-cli.git
cd kdrive-cli && pip install .

Quick start

# configure (interactive — picks your token provider)
kdrive configure

# list drives
kdrive drives

# list files
kdrive ls
kdrive ls Documents/Photos

# create directory
kdrive mkdir Projects/new-project

# upload / download
kdrive upload report.pdf 42
kdrive download 99 ./local-copy.pdf

# search
kdrive search "invoice 2026"

# file info (JSON)
kdrive info 42

# trash
kdrive rm old-file.txt

Authentication

Token is resolved in this order:

  1. --token flag
  2. INFOMANIAK_TOKEN environment variable
  3. Configured provider (set via kdrive configure)

Supported token providers

Provider Install Config key
Environment variable (built-in) env
GCP Secret Manager pip install kdrive-cli[gcp] gcp
AWS Secrets Manager pip install kdrive-cli[aws] aws
Azure Key Vault pip install kdrive-cli[azure] azure
System keyring pip install kdrive-cli[keyring] keyring

Config is stored at ~/.config/kdrive-cli/config.json.

Create an API token

  1. Go to https://manager.infomaniak.com
  2. Profile (top-right) > Developer > API tokens
  3. Create a token with kDrive scope

Commands

Command Description
configure Interactive setup (token provider + default drive)
drives List accessible kDrives
ls [PATH] List directory contents (by path or ID)
mkdir PATH Create directory (supports nested paths)
upload FILE [DIR_ID] Upload file (< 1 GB)
download FILE_ID [PATH] Download file
info FILE_ID File/folder metadata as JSON
search QUERY Search by file name
rm TARGET Move file/folder to trash

License

MIT

Metadata

Release files for kdrive-cli 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kdrive-cli 0.1.0
File Size Uploaded Provenance Actions
kdrive_cli-0.1.0.tar.gz 11.2 kB Without provenance Details for kdrive_cli-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kdrive-cli 0.1.0
File Interpreter ABI Platform Actions
kdrive_cli-0.1.0-py3-none-any.whl Python 3 none any Details for kdrive_cli-0.1.0-py3-none-any.whl

Total release size: 25.4 kB

Release files / kdrive_cli-0.1.0.tar.gz

Download URL kdrive_cli-0.1.0.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
119119a3947b23800aa103816d856ab6f0eba412c4cd79d53c0664d81271332f
BLAKE2b-256 checksum
How to use checksums
c173592c50ed1911eecb698fe9191f66f704cf118ee4d0d8d735e6c9ecf49ad2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0

Release files / kdrive_cli-0.1.0-py3-none-any.whl

Download URL kdrive_cli-0.1.0-py3-none-any.whl
Size 14.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b403c95956c2c237b3b05f58b22324d7e06304fd64433c0b137dde67fd18cc7
BLAKE2b-256 checksum
How to use checksums
9cd56c8abc7c701ed5ca2d10cc06686117b118fc3f5314859b005e8df5efd00c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0

Security for kdrive-cli 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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