Skip to main content

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:

  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

kdrive_cli-0.1.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

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

kdrive_cli-0.1.0-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

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

Hashes for kdrive_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 119119a3947b23800aa103816d856ab6f0eba412c4cd79d53c0664d81271332f
MD5 65237863aae219cd576375a30d15768c
BLAKE2b-256 c173592c50ed1911eecb698fe9191f66f704cf118ee4d0d8d735e6c9ecf49ad2

See more details on using hashes here.

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

Hashes for kdrive_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b403c95956c2c237b3b05f58b22324d7e06304fd64433c0b137dde67fd18cc7
MD5 d5829f16bfea32b943af4a31e03cf023
BLAKE2b-256 9cd56c8abc7c701ed5ca2d10cc06686117b118fc3f5314859b005e8df5efd00c

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