Skip to main content

Unofficial CLI tools for Infomaniak kDrive and kChat

Project description

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

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

infomaniak_tools-0.2.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

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

infomaniak_tools-0.2.0-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file infomaniak_tools-0.2.0.tar.gz.

File metadata

  • Download URL: infomaniak_tools-0.2.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for infomaniak_tools-0.2.0.tar.gz
Algorithm Hash digest
SHA256 855ef2110442e629afda32c0e4a7be16f6f9e266bb961c2d47880cda33d9c4da
MD5 fc742a4e999c0f981b28abd3d5ab040f
BLAKE2b-256 1ced1d961231ae9b4dc4c2d6bd3ef3b680827716476dd01a9a78eb88f97c3fd9

See more details on using hashes here.

File details

Details for the file infomaniak_tools-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for infomaniak_tools-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 00c6bfba7b022ebdb41b882b04062ddaece3a143c8644be8c2094e844d5e3df8
MD5 54829b59051639e2f31caa78b3babfad
BLAKE2b-256 cbf90f9dd687640ccc3138a15b8663ac7d3946fc05bd0fc7268ed0675f6dbe1e

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