# スクリプト対応。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/ja/news.html#v0.1.0) 以降
- 送料: 無料
- 完全ガイド: [ヘルプでステップバイステップ](https://vdm.mikaillab.com/ja/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 を 1 行に 1 オブジェクトずつ出力します。ファイルがダウンロードされている間は 0.5 秒ごとに進行状況の行が出力され、完了するとパス、サイズ、時刻が出力されます。サイズはバイト単位、速度はバイト/秒単位で、失敗するとエラー オブジェクトが出力されるため、スクリプトや AI エージェントはテキストを解析せずに結果を読み取ることができます。[形式](https://vdm.mikaillab.com/ja/help/command-line.html#json-for-scripts-and-programs)はコマンドごとに一覧表示されます。

## 実行中のアプリ用 API

他のプログラムは、実行中のアプリにダウンロードを JSON 形式で要求し、一時停止、開始、削除、または削除できます。これらのプログラムは、このコンピューター上のポートにのみ接続し、起動ごとに変更され、自分のプログラムのみが読み取ることができる秘密のトークンを使用します。API は `voltdownloadmanager-cli api on` でオンにするまでオフになっており、`status`、`pause`、`start`、`remove`、`delete` はコマンドラインから API を使用します。

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

## スクリプト化できるその他の機能

`playlist-get`プレイリストまたはチャンネルの動画をダウンロードし、`gallery-get` は画像ギャラリーをダウンロードします。`get` は `-c` で最大 128 の接続を使用し、`--dns` で名前をアドレスに変換する担当者を選択し、`--adapter` でダウンロードを 1 つのネットワーク アダプター経由で送信するか、まったく送信しないかを指定します。アプリの `/startup` は通知領域に隠れて起動します。API のリストには、キュー、カテゴリ、空き容量も表示され、名前でキューを開始および停止できます。

## アプリの詳細

- [通知領域](https://vdm.mikaillab.com/ja/features/tray.html)
- [テーマ](https://vdm.mikaillab.com/ja/themes.html)
- [クラッシュレポート](https://vdm.mikaillab.com/ja/features/crash-reports.html)
- [87 言語](https://vdm.mikaillab.com/ja/features/languages.html)
- [Windows、Mac、Linux](https://vdm.mikaillab.com/ja/features/systems.html)
- [アクセシビリティ](https://vdm.mikaillab.com/ja/features/accessibility.html)
- [AI アシスタント](https://vdm.mikaillab.com/ja/features/ai-assistants.html)
- [すべての機能](https://vdm.mikaillab.com/ja/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/ja/download.html)
