# Scripts são bem-vindos. Opções do IDM incluídas.

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

- No aplicativo: `voltdownloadmanager-cli`, in VDM's folder
- Desde: [Versão 0.1.0](https://vdm.mikaillab.com/pt-br/news.html#v0.1.0) e posteriores
- Postagem: Gratuito
- Guia completo: [Passo a passo na ajuda](https://vdm.mikaillab.com/pt-br/help/command-line.html)

## Opções do IDM, inalteradas

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

## Um baixador para o 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 para scripts e programas

Com `--json`, cada comando imprime JSON, um objeto por linha: uma linha de progresso a cada meio segundo enquanto um arquivo é baixado, depois o caminho, tamanho e tempo quando concluído. Os tamanhos são em bytes, as velocidades em bytes por segundo, e uma falha imprime um objeto de erro, para que um script ou um agente de IA leia o resultado sem analisar texto. Os [formatos](https://vdm.mikaillab.com/pt-br/help/command-line.html#json-for-scripts-and-programs) são listados comando por comando.

## Uma API para o aplicativo em execução

Outros programas podem solicitar os downloads do aplicativo em execução, como JSON, e pausá-los, iniciá-los, removê-los ou excluí-los. Eles se conectam a uma porta apenas neste computador, com um token secreto que muda a cada início e que apenas seus próprios programas podem ler. A API está desativada até que você a ative com `voltdownloadmanager-cli api on`, e `status`, `pause`, `start`, `remove` e `delete` a usam a partir da linha de comando.

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

## Mais para scripts

`playlist-get`baixa vídeos de uma playlist ou canal, e `gallery-get` uma galeria de imagens. `get` aceita até 128 conexões com `-c`, `--dns` para escolher quem transforma nomes em endereços, e `--adapter` para enviar um download através de um adaptador de rede ou não enviá-lo. O `/startup` do aplicativo o inicia oculto na área de notificação. A lista da API também fornece as filas, as categorias e o espaço livre, e inicia e para uma fila pelo nome.

## Mais em O aplicativo

- [Área de notificação](https://vdm.mikaillab.com/pt-br/features/tray.html)
- [Temas](https://vdm.mikaillab.com/pt-br/themes.html)
- [Relatórios de falhas](https://vdm.mikaillab.com/pt-br/features/crash-reports.html)
- [87 idiomas](https://vdm.mikaillab.com/pt-br/features/languages.html)
- [Windows, Mac e Linux](https://vdm.mikaillab.com/pt-br/features/systems.html)
- [Acessibilidade](https://vdm.mikaillab.com/pt-br/features/accessibility.html)
- [Assistentes de IA](https://vdm.mikaillab.com/pt-br/features/ai-assistants.html)
- [Todos os recursos](https://vdm.mikaillab.com/pt-br/features/)

[Editar esta página no GitHub](https://github.com/mikailhossenimran/voltdownloadmanager/edit/main/website/content/features/command-line.md) [Relatar um problema com esta página](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) [Histórico da página](https://github.com/mikailhossenimran/voltdownloadmanager/commits/main/website/content/features/command-line.md)

Gratuito, de código aberto, sem anúncios, sem período de teste.

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