Skip to main content

IDM-CLI

A lightning-fast, cross-platform command-line download manager written in Python.

The official IDM asks you to pay after 30 days — IDM-CLI is 100% free, open-source, and yours to modify!

PyPI version Downloads License Platform Install

Download via PyPI · Report a Bug

IDM-CLI splits files into multiple parallel chunks (default 8, up to 32) to maximize your internet speed. It supports downloading from YouTube, Facebook, Instagram, and any Direct File URL (.exe, .zip, .pdf, etc.).

Features

  • Parallel Chunk Engine — Splits downloads into multiple concurrent chunks using curl-cffi async sessions to fully saturate your bandwidth.
  • Universal Downloader — Paste any URL. yt-dlp handles 1000+ sites (YouTube, Facebook, Instagram, etc.), with automatic fallback to direct HTTP download for unsupported URLs.
  • Audio Only / MP3 Conversion — Download videos as audio. IDM-CLI automatically grabs the best audio stream and uses FFmpeg to convert it to .mp3.
  • Smart Auto-Resume — Internet dropped? Pressed Ctrl+C? No problem. IDM-CLI remembers the exact byte positions of all incomplete chunks. Paste the same link again to resume instantly.
  • Persistent Queue System — Add multiple files to a queue with -Q and type start queue to download them all sequentially.
  • Interactive UI — Modern terminal interface powered by rich and questionary with real-time speed, ETA, and progress bars. Press p to pause, r to resume.
  • Cross-Platform — Works on Windows, macOS, and Linux with platform-specific FFmpeg handling.
  • Auto-Update Check — Checks PyPI once a day and notifies you when a new version is available.

Prerequisites

  • Python 3.8+
  • FFmpeg — Required for muxing video and audio streams, and converting to .mp3. IDM-CLI can auto-download it for you, or you can install it manually:
    • Windows: winget install ffmpeg
    • macOS: brew install ffmpeg
    • Linux: sudo apt install ffmpeg

Installation

# From PyPI
pip install idm-cli

# From source
git clone https://github.com/rj41-w2/idm-cli.git
cd IDM-CLI
pip install -r requirements.txt
pip install -e .

Usage

Run the app interactively:

idm

This opens a prompt where you can paste your link, select video quality, or queue the download.

CLI Flags (Fast Mode)

Skip the interactive menus by passing arguments directly:

# Download a video at 1080p
idm "https://youtube.com/watch?v=..." -q 1080p -v

# Audio only (converts to MP3)
idm "https://youtube.com/watch?v=..." -a

# 16 parallel chunks for maximum speed
idm "https://example.com/largefile.zip" -c 16

# Add to queue
idm "https://facebook.com/..." -Q
Flag Description
-q <resolution> Set video quality (e.g., 1080p, 720p)
-a Audio only — download and convert to MP3
-v Download video + audio (bypasses quality prompt)
-Q Add to queue instead of downloading immediately
-c <num> Number of parallel chunks (default: 8)
-f <filename> Force a custom output filename

Interactive Commands

Command Description
<URL> Download a video or file
resume Resume or delete incomplete downloads
start queue Process all queued downloads
help Show available commands and flags
exit Exit the application

Troubleshooting: Windows Device Guard

If you get "idm.exe was blocked by your organization's Device Guard policy", run the Python module directly:

python -m idm_cli

Architecture

idm_cli/
├── config.py                # Platform-aware config, logging, paths
├── update_checker.py        # PyPI version check
├── ui/
│   ├── cli.py               # Main interactive CLI
│   └── utils.py             # Console, progress listener, validators
├── downloader/
│   ├── core.py              # Download orchestration & FFmpeg setup
│   ├── downloader.py        # Async chunk download engine
│   ├── handlers.py          # Queue & resume handlers
│   ├── muxer.py             # FFmpeg mux/conversion
│   └── state.py             # Atomic JSON state persistence
├── extractors/
│   ├── ytdlp.py             # YouTube/social media extractor
│   ├── direct.py            # Direct HTTP file downloader
│   └── winget.py            # Windows Package Manager extractor

Contributing

Contributions are welcome. Fork the repo, make your changes on a feature branch, and open a PR against main. Keep changes focused and follow the existing code style.

For bug reports and feature requests, open an issue.

License

This project is licensed under the MIT License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

idm_cli-1.3.3.tar.gz (35.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

idm_cli-1.3.3-py3-none-any.whl (37.1 kB view details)

Uploaded Python 3

File details

Details for the file idm_cli-1.3.3.tar.gz.

File metadata

  • Download URL: idm_cli-1.3.3.tar.gz
  • Upload date:
  • Size: 35.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.2

File hashes

Hashes for idm_cli-1.3.3.tar.gz
Algorithm Hash digest
SHA256 2b697e4f2b73c8f57c9808b9e973c2586d67980803227f23ba611a7e8fb1ff4b
MD5 143e510cca46ead7a7e39791ef214377
BLAKE2b-256 97ffe77a608ce06d1f5a73783ce6aed89d0379900876dde23a22302f3bb66936

See more details on using hashes here.

File details

Details for the file idm_cli-1.3.3-py3-none-any.whl.

File metadata

  • Download URL: idm_cli-1.3.3-py3-none-any.whl
  • Upload date:
  • Size: 37.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.2

File hashes

Hashes for idm_cli-1.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 758b49874476847249c496741decde1ff2bf0533dcd22f14e2a11010908b48e1
MD5 86e9a1f2f076668583813e5378e25964
BLAKE2b-256 023b428816413d8878c85d678e2b63463c42e8652193f57cf9b02c55ab66ce46

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.3.3 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page