# Скрипты приветствуются. Поддерживаются параметры командной строки IDM.

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

- В приложении: `voltdownloadmanager-cli`, in VDM's folder
- Начиная с: [Версии 0.1.0](https://vdm.mikaillab.com/ru/news.html#v0.1.0) и новее
- Отправка: Бесплатно
- Полное руководство: [Пошаговые инструкции в справке](https://vdm.mikaillab.com/ru/help/command-line.html)

## Параметры командной строки IDM без изменений

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`.

## Загрузчик для терминала

`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 для скриптов и программ

С `--json` каждая команда выводит JSON, по одному объекту на строку: строка прогресса каждые полсекунды во время загрузки файла, затем путь, размер и время завершения. Размеры указаны в байтах, скорости — в байтах в секунду, а при сбое выводится объект ошибки, поэтому скрипт или агент ИИ читает результат без синтаксического анализа текста. [Форматы](https://vdm.mikaillab.com/ru/help/command-line.html#json-for-scripts-and-programs) перечислены для каждой команды.

## API для запущенного приложения

Другие программы могут запрашивать у запущенного приложения его загрузки в формате JSON, а также приостанавливать, запускать, удалять или стирать их. Они подключаются к порту только на этом компьютере, с секретным токеном, который меняется при каждом запуске и который могут прочитать только ваши собственные программы. API отключен, пока вы не включите его с помощью `voltdownloadmanager-cli api on`, а `status`, `pause`, `start`, `remove` и `delete` используют его из командной строки.

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/ru/features/ai-assistants.html).

## Больше возможностей для скриптов

`playlist-get`загружает видео из плейлиста или канала, а `gallery-get` — галерею изображений. `get` использует до 128 соединений с `-c`, `--dns` для выбора того, кто преобразует имена в адреса, и `--adapter` для отправки загрузки через один сетевой адаптер или вообще без него. `/startup` приложения запускает его скрытым в области уведомлений. Список API также предоставляет очереди, категории и свободное место, а также запускает и останавливает очередь по имени.

## Подробнее в разделе «Приложение»

- [Область уведомлений](https://vdm.mikaillab.com/ru/features/tray.html)
- [Темы](https://vdm.mikaillab.com/ru/themes.html)
- [Отчеты о сбоях](https://vdm.mikaillab.com/ru/features/crash-reports.html)
- [87 языков](https://vdm.mikaillab.com/ru/features/languages.html)
- [Windows, Mac и Linux](https://vdm.mikaillab.com/ru/features/systems.html)
- [Доступность](https://vdm.mikaillab.com/ru/features/accessibility.html)
- [ИИ-помощники](https://vdm.mikaillab.com/ru/features/ai-assistants.html)
- [Все функции](https://vdm.mikaillab.com/ru/features/)

[Редактировать эту страницу на GitHub](https://github.com/mikailhossenimran/voltdownloadmanager/edit/main/website/content/features/command-line.md) [Сообщить о проблеме с этой страницей](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) [История страницы](https://github.com/mikailhossenimran/voltdownloadmanager/commits/main/website/content/features/command-line.md)

Бесплатно, с открытым исходным кодом, без рекламы, без пробного периода.

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