# Scripts bienvenus. Les options d’IDM sont incluses.

VDM takes IDM's command-line switches, so scripts written for IDM can hand it their downloads. A separate tool downloads in a terminal, and a local API lets other programs see and control the running app.

**Command line** Volt Download Manager

- Dans l'application: `voltdownloadmanager-cli`, in VDM's folder
- Depuis: [Version 0.1.0](https://vdm.mikaillab.com/fr/news.html#v0.1.0) et ultérieures
- Envoi: Gratuit
- Guide complet: [Pas à pas dans l'aide](https://vdm.mikaillab.com/fr/help/command-line.html)

## Les options d’IDM, inchangées

The app understands the same switches as IDM: `/d` for the address, `/p` for the folder, `/f` for the file name, `/a` to queue it without starting, `/n` to skip the **Download File Info** window, and `/s` to start the main download queue. A batch file or another program that drives IDM this way can drive VDM by changing the program's name.

```
voltdownloadmanager.exe /d https://example.com/files/report.pdf /p D:\Reports /n
```

If VDM is running, the command goes to it; if not, VDM starts and carries it out. On macOS and Linux the program has the same name, without `.exe`.

## Un téléchargeur pour le terminal

`voltdownloadmanager-cli` comes with every download of VDM and works without the app running. `get` downloads a file over several connections with a progress line, **Ctrl+C** pauses it and `resume` carries on later. `video-get` downloads a video, and `torrent-get` a torrent or only some of its files. `video-info` and `torrent-info` say what there is to choose before you download. `voltdownloadmanager-cli help <command>` lists every option, and a command that fails exits with code 1.

## JSON pour les scripts et les programmes

Avec `--json`, chaque commande affiche du JSON, un objet par ligne : une ligne de progression toutes les demi-secondes pendant le téléchargement d’un fichier, puis le chemin, la taille et l’heure une fois terminé. Les tailles sont en octets, les vitesses en octets par seconde, et un échec affiche un objet d’erreur, de sorte qu’un script ou un agent IA lit le résultat sans analyser le texte. Les [formats](https://vdm.mikaillab.com/fr/help/command-line.html#json-for-scripts-and-programs) sont listés commande par commande.

## Une API pour l’application en cours d’exécution

D’autres programmes peuvent demander à l’application en cours d’exécution ses téléchargements, au format JSON, et les mettre en pause, les démarrer, les supprimer ou les effacer. Ils se connectent à un port sur cet ordinateur uniquement, avec un jeton secret qui change à chaque démarrage et que seuls vos propres programmes peuvent lire. L’API est désactivée tant que vous ne l’activez pas avec `voltdownloadmanager-cli api on`, et `status`, `pause`, `start`, `remove` et `delete` l’utilisent depuis la ligne de commande.

Every request and answer is described field by field in a [JSON Schema](https://vdm.mikaillab.com/automation-api.schema.json), made from the code the app answers with, so programs can check what they send or generate their types from it. AI assistants use the same API through VDM's [MCP server](https://vdm.mikaillab.com/fr/features/ai-assistants.html).

## Plus à scripter

`playlist-get`télécharge les vidéos d’une liste de lecture ou d’une chaîne, et `gallery-get` une galerie d’images. `get` prend jusqu’à 128 connexions avec `-c`, `--dns` pour choisir qui transforme les noms en adresses, et `--adapter` pour envoyer un téléchargement via un adaptateur réseau ou pas du tout. L’`/startup` de l’application la démarre cachée dans la zone de notification. La liste de l’API donne également les files d’attente, les catégories et l’espace libre, et elle démarre et arrête une file d’attente par son nom.

## Plus dans L'application

- [Zone de notification](https://vdm.mikaillab.com/fr/features/tray.html)
- [Thèmes](https://vdm.mikaillab.com/fr/themes.html)
- [Rapports d'erreur](https://vdm.mikaillab.com/fr/features/crash-reports.html)
- [87 langues](https://vdm.mikaillab.com/fr/features/languages.html)
- [Windows, Mac et Linux](https://vdm.mikaillab.com/fr/features/systems.html)
- [Accessibilité](https://vdm.mikaillab.com/fr/features/accessibility.html)
- [Assistants IA](https://vdm.mikaillab.com/fr/features/ai-assistants.html)
- [Toutes les fonctionnalités](https://vdm.mikaillab.com/fr/features/)

[Modifier cette page sur GitHub](https://github.com/mikailhossenimran/voltdownloadmanager/edit/main/website/content/features/command-line.md) [Signaler un problème avec cette page](https://github.com/mikailhossenimran/voltdownloadmanager/issues/new?template=website.yml&title=Website%3A%20Command%20line&page=https%3A//vdm.mikaillab.com/features/command-line.html) [Historique de la page](https://github.com/mikailhossenimran/voltdownloadmanager/commits/main/website/content/features/command-line.md)

Gratuit, open source, sans publicité ni période d’essai.

[Download Volt Download Manager](https://vdm.mikaillab.com/fr/download.html)
