# Scripts welcome. IDM's switches included.

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

- In the app: `voltdownloadmanager-cli`, in VDM's folder
- Since: [Version 0.1.0](https://vdm.mikaillab.com/news.html#v0.1.0) and later
- Postage: Free
- Full guide: [Step by step in the help](https://vdm.mikaillab.com/help/command-line.html)

## IDM's switches, unchanged

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

## A downloader for the 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 for scripts and programs

With `--json`, every command prints JSON, one object per line: a progress line every half second while a file downloads, then the path, size and time when it's done. Sizes are in bytes, speeds in bytes per second, and a failure prints an error object, so a script or an AI agent reads the result without parsing text. The [formats](https://vdm.mikaillab.com/help/command-line.html#json-for-scripts-and-programs) are listed command by command.

## An API for the running app

Other programs can ask the running app for its downloads, as JSON, and pause, start, remove or delete them. They connect to a port on this computer only, with a secret token that changes at every start and that only your own programs can read. The API is off until you turn it on with `voltdownloadmanager-cli api on`, and `status`, `pause`, `start`, `remove` and `delete` use it from the command line.

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

## More to script

`playlist-get` downloads a playlist's or channel's videos, and `gallery-get` a picture gallery. `get` takes up to 128 connections with `-c`, `--dns` to choose who turns names into addresses, and `--adapter` to send a download through one network adapter or not at all. The app's `/startup` starts it hidden in the notification area. The API's list also gives the queues, the categories and the free space, and it starts and stops a queue by name.

## More in The app

- [Notification area](https://vdm.mikaillab.com/features/tray.html)
- [Themes](https://vdm.mikaillab.com/themes.html)
- [Crash reports](https://vdm.mikaillab.com/features/crash-reports.html)
- [87 languages](https://vdm.mikaillab.com/features/languages.html)
- [Windows, Mac and Linux](https://vdm.mikaillab.com/features/systems.html)
- [Accessibility](https://vdm.mikaillab.com/features/accessibility.html)
- [AI assistants](https://vdm.mikaillab.com/features/ai-assistants.html)
- [Every feature](https://vdm.mikaillab.com/features/)

[Edit this page on GitHub](https://github.com/mikailhossenimran/voltdownloadmanager/edit/main/website/content/features/command-line.md) [Report a problem with this 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) [Page history](https://github.com/mikailhossenimran/voltdownloadmanager/commits/main/website/content/features/command-line.md)

Free, open source, no ads, no trial.

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