infomaniak-tools
Unofficial CLI for Infomaniak Cloud — manage kDrive, kChat, accounts, and more from the terminal. Like gcloud for GCP, but for Infomaniak.
Install
# pip
pip install infomaniak-tools
# with cloud token providers
pip install infomaniak-tools[gcp] # GCP Secret Manager
pip install infomaniak-tools[aws] # AWS Secrets Manager
pip install infomaniak-tools[azure] # Azure Key Vault
pip install infomaniak-tools[all] # all providers
# from source
git clone https://github.com/kilian-lm/infomaniak-tools.git
cd infomaniak-tools && pip install .
Quick start
# configure (interactive — picks your token provider + default drive)
infomaniak configure
# profile & account
infomaniak profile show
infomaniak accounts list
infomaniak accounts products
# kDrive — files & folders
infomaniak drive list
infomaniak drive ls
infomaniak drive ls Documents/Photos
infomaniak drive tree --depth 2
infomaniak drive mkdir Projects/new-project
infomaniak drive upload report.pdf 42
infomaniak drive download 99 ./local-copy.pdf
infomaniak drive search "invoice 2026"
infomaniak drive mv old-folder new-folder
infomaniak drive share create Documents/spec
infomaniak drive trash list
infomaniak drive categories list
infomaniak drive versions my-file.pdf
# kChat — messaging & webhooks
infomaniak chat me
infomaniak chat teams
infomaniak chat channels
infomaniak chat send "deploy complete" --channel CHANNEL_ID
infomaniak chat posts CHANNEL_ID
infomaniak chat webhooks
infomaniak chat webhook-create --channel CHANNEL_ID
infomaniak chat webhook-send "alert!" --url WEBHOOK_URL
infomaniak chat bots
# teams
infomaniak teams list
infomaniak teams create "engineering"
CLI entry points
The package provides three CLI commands:
| Command | Description |
|---|---|
infomaniak |
Full CLI — all products (profile, drive, chat, teams) |
kdrive |
Legacy kDrive-only CLI (backward compatible) |
kchat-notify |
Send kChat webhook notifications from scripts |
Authentication
Token is resolved in this order:
--tokenflagINFOMANIAK_TOKENenvironment variable- Configured provider (set via
infomaniak configure)
Supported token providers
| Provider | Install | Config key |
|---|---|---|
| Environment variable | (built-in) | env |
| GCP Secret Manager | pip install infomaniak-tools[gcp] |
gcp |
| AWS Secrets Manager | pip install infomaniak-tools[aws] |
aws |
| Azure Key Vault | pip install infomaniak-tools[azure] |
azure |
| System keyring | pip install infomaniak-tools[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 + kChat scope
Command reference
Core
| Command | Description |
|---|---|
configure |
Interactive setup |
profile show |
Your profile info |
profile emails |
List email addresses |
profile update --language de |
Update profile fields |
accounts list |
List accounts |
accounts products |
List products (kDrive, kChat, etc.) |
accounts users |
List account users |
teams list |
List teams |
teams create NAME |
Create a team |
teams members TEAM_ID |
List team members |
kDrive
| Command | Description |
|---|---|
drive list |
List accessible drives |
drive ls [PATH] |
List directory contents |
drive tree [PATH] |
Directory tree view |
drive info TARGET |
File metadata (JSON) |
drive mkdir PATH |
Create directory (nested) |
drive upload FILE [DIR] |
Upload file |
drive download TARGET [PATH] |
Download file |
drive search QUERY |
Search by name |
drive mv SRC DST |
Move file/folder |
drive cp SRC DST |
Copy file/folder |
drive rename TARGET NAME |
Rename |
drive rm TARGET |
Trash file/folder |
drive hash TARGET |
Get file hash |
drive trash list|empty|restore|count |
Manage trash |
drive share create|show|delete|list |
Share links |
drive favorites |
List favorites |
drive fav TARGET |
Toggle favorite |
drive categories list|create|delete |
Manage categories |
drive versions TARGET |
List file versions |
drive stats |
Drive statistics |
drive users |
Drive users |
drive activities |
Recent activities |
kChat
| Command | Description |
|---|---|
chat me |
Current user info |
chat teams |
List teams |
chat channels |
List channels |
chat channel CHANNEL_ID |
Channel details |
chat channel-create NAME |
Create channel |
chat channel-search QUERY |
Search channels |
chat channel-members CHANNEL_ID |
List members |
chat posts CHANNEL_ID |
Recent messages |
chat send MESSAGE --channel ID |
Post message |
chat thread POST_ID |
Get thread |
chat search-posts QUERY |
Search messages |
chat pin|unpin POST_ID |
Pin/unpin post |
chat react POST_ID EMOJI |
Add reaction |
chat users |
List users |
chat status [USER_ID] |
Get/set status |
chat webhooks |
List webhooks |
chat webhook-create --channel ID |
Create webhook |
chat webhook-send MSG --url URL |
Send via webhook |
chat bots |
List bots |
chat bot-create USERNAME |
Create bot |
chat emoji |
List custom emoji |
License
MIT
Metadata
Release files for infomaniak-tools 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| infomaniak_tools-0.3.0.tar.gz | 28.5 kB | Without provenance | Details for infomaniak_tools-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| infomaniak_tools-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for infomaniak_tools-0.3.0-py3-none-any.whl |
Total release size: 62.5 kB
Release files / infomaniak_tools-0.3.0.tar.gz
| Download URL | infomaniak_tools-0.3.0.tar.gz |
|---|---|
| Size | 28.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b08116ecc66e024796436014bfccd33bee52236025b7095d0e073a4502ddcf6
|
|
BLAKE2b-256 checksum How to use checksums |
d0af37dc31489c234820a234b87558b7aacd20ce7c62eee1f8471106be1d5ff7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.0
|
Release files / infomaniak_tools-0.3.0-py3-none-any.whl
| Download URL | infomaniak_tools-0.3.0-py3-none-any.whl |
|---|---|
| Size | 34.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e10815090681eedb3ddd07165246da8932d31ada6a5446907c57642201fbdc97
|
|
BLAKE2b-256 checksum How to use checksums |
ec829c71cce931c010d47e43ffc5d1769a6d7a2b66f78322220061901f51516d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.0
|
Security for infomaniak-tools 0.3.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.