# Skrypty mile widziane. Przełączniki IDM w zestawie.

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

- W aplikacji: `voltdownloadmanager-cli`, in VDM's folder
- Od wersji: [Wersja 0.1.0](https://vdm.mikaillab.com/pl/news.html#v0.1.0) i nowsze
- Wysyłka: Darmowy
- Pełny przewodnik: [Krok po kroku w pomocy](https://vdm.mikaillab.com/pl/help/command-line.html)

## Niezmienione przełączniki 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`.

## Narzędzie do pobierania dla terminala

`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 dla skryptów i programów

Z `--json` każde polecenie drukuje JSON, jeden obiekt na linię: linia postępu co pół sekundy podczas pobierania pliku, a następnie ścieżka, rozmiar i czas po zakończeniu. Rozmiary są w bajtach, prędkości w bajtach na sekundę, a w przypadku błędu drukowany jest obiekt błędu, dzięki czemu skrypt lub agent AI odczytuje wynik bez analizowania tekstu. [Formaty](https://vdm.mikaillab.com/pl/help/command-line.html#json-for-scripts-and-programs) są wymienione dla każdego polecenia.

## API dla uruchomionej aplikacji

Inne programy mogą prosić uruchomioną aplikację o jej pobierania, w formacie JSON, oraz wstrzymywać, uruchamiać, usuwać lub kasować je. Łączą się z portem tylko na tym komputerze, z tajnym tokenem, który zmienia się przy każdym uruchomieniu i który mogą odczytać tylko Twoje własne programy. API jest wyłączone, dopóki nie włączysz go za pomocą `voltdownloadmanager-cli api on`, a `status`, `pause`, `start`, `remove` i `delete` używają go z wiersza poleceń.

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

## Więcej do skryptowania

`playlist-get`pobiera filmy z playlisty lub kanału, a `gallery-get` galerię zdjęć. `get` obsługuje do 128 połączeń z `-c`, `--dns` do wyboru, kto zamienia nazwy na adresy, a `--adapter` do wysyłania pobierania przez jeden adapter sieciowy lub wcale. `/startup` aplikacji uruchamia ją ukrytą w obszarze powiadomień. Lista API zawiera również kolejki, kategorie i wolne miejsce, a także uruchamia i zatrzymuje kolejkę według nazwy.

## Więcej w Aplikacja

- [Obszar powiadomień](https://vdm.mikaillab.com/pl/features/tray.html)
- [Motywy](https://vdm.mikaillab.com/pl/themes.html)
- [Raporty o awariach](https://vdm.mikaillab.com/pl/features/crash-reports.html)
- [87 języków](https://vdm.mikaillab.com/pl/features/languages.html)
- [Windows, Mac i Linux](https://vdm.mikaillab.com/pl/features/systems.html)
- [Dostępność](https://vdm.mikaillab.com/pl/features/accessibility.html)
- [Asystenci AI](https://vdm.mikaillab.com/pl/features/ai-assistants.html)
- [Wszystkie funkcje](https://vdm.mikaillab.com/pl/features/)

[Edytuj tę stronę na GitHubie](https://github.com/mikailhossenimran/voltdownloadmanager/edit/main/website/content/features/command-line.md) [Zgłoś problem z tą stroną](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) [Historia strony](https://github.com/mikailhossenimran/voltdownloadmanager/commits/main/website/content/features/command-line.md)

Darmowy, open source, bez reklam, bez wersji próbnej.

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