# اسکریپت‌ها پذیرفته می‌شوند. سوئیچ‌های 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/fa/news.html#v0.1.0) و بعدتر
- ارسال: رایگان
- راهنمای کامل: [گام به گام در راهنما](https://vdm.mikaillab.com/fa/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/fa/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/fa/features/ai-assistants.html).

## موارد بیشتر برای اسکریپت‌نویسی

`playlist-get`ویدیوهای یک لیست پخش یا کانال را بارگیری می‌کند، و `gallery-get` یک گالری عکس را. `get` تا 128 اتصال را با `-c` می‌پذیرد، `--dns` برای انتخاب اینکه چه کسی نام‌ها را به آدرس‌ها تبدیل می‌کند، و `--adapter` برای ارسال یک بارگیری از طریق یک آداپتور شبکه یا اصلا ارسال نکردن. `/startup` برنامه آن را به صورت پنهان در ناحیه اعلان شروع می‌کند. لیست API همچنین صف‌ها، دسته‌ها و فضای خالی را می‌دهد، و یک صف را با نام شروع و متوقف می‌کند.

## بیشتر در برنامه

- [ناحیه اعلان](https://vdm.mikaillab.com/fa/features/tray.html)
- [پوسته‌ها](https://vdm.mikaillab.com/fa/themes.html)
- [گزارش‌های خرابی](https://vdm.mikaillab.com/fa/features/crash-reports.html)
- [87 زبان](https://vdm.mikaillab.com/fa/features/languages.html)
- [Windows، مک و Linux](https://vdm.mikaillab.com/fa/features/systems.html)
- [دسترسی‌پذیری](https://vdm.mikaillab.com/fa/features/accessibility.html)
- [دستیارهای هوش مصنوعی](https://vdm.mikaillab.com/fa/features/ai-assistants.html)
- [همه ویژگی‌ها](https://vdm.mikaillab.com/fa/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/fa/download.html)
