Unofficial CLI for Infomaniak kDrive
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:
--tokenflagINFOMANIAK_TOKENenvironment variable- 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
- Go to https://manager.infomaniak.com
- Profile (top-right) > Developer > API tokens
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kdrive_cli-0.1.0.tar.gz
(11.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kdrive_cli-0.1.0.tar.gz.
File metadata
- Download URL: kdrive_cli-0.1.0.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
119119a3947b23800aa103816d856ab6f0eba412c4cd79d53c0664d81271332f
|
|
| MD5 |
65237863aae219cd576375a30d15768c
|
|
| BLAKE2b-256 |
c173592c50ed1911eecb698fe9191f66f704cf118ee4d0d8d735e6c9ecf49ad2
|
File details
Details for the file kdrive_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: kdrive_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b403c95956c2c237b3b05f58b22324d7e06304fd64433c0b137dde67fd18cc7
|
|
| MD5 |
d5829f16bfea32b943af4a31e03cf023
|
|
| BLAKE2b-256 |
9cd56c8abc7c701ed5ca2d10cc06686117b118fc3f5314859b005e8df5efd00c
|