Tip
This project is part of the FadSec Lab suite.
Discover our focus on ad-free, privacy-first applications and stay updated on future releases!
QuranCLI brings the Quran to your Windows command line with a rich set of features designed for readers, listeners, and video creators.
- ๐ Read Anywhere: Access all 114 Surahs with English translation (Simple & Uthmani Arabic scripts).
- ๐ง Listen: Stream audio recitations from various renowned reciters with full playback controls (play/pause/seek).
- ๐ฌ Subtitle Generation: Create
.srt
subtitle files (Arabic + English) for Ayah ranges โ perfect for video editing! - ๐ Subtitle Sharing: Built-in web server to easily share generated subtitle files with other devices (phone, tablet, other PCs) on the same Wi-Fi network.
- ๐พ Smart Caching: Works offline by caching Quran text and audio locally.
- ๐จ Intuitive Interface: Colorful, responsive, and easy-to-navigate terminal UI with custom
theme
command to customize colors. - ๐ App Auto-Updates: Notifies you of new app versions available on GitHub.
- ๐ Stats: See total download counts directly in the header.
- ๐ฅ๏ธ Multi Platform: Available on
Windows
andLinux
platforms. - โจ๏ธ Command Alias: Launch the app directly from the terminal using the
qurancli
command. - ๐ Translation & Transliteration: Provides Urdu and English translations along with transliteration.
QuranCLI-theme-command-demo.mp4
Theme command in use
- Go to the Releases Page.
- Download the latest
QuranCLI-Setup.exe
file. - Run the installer and follow the on-screen instructions.
- Launch QuranCLI from your Start Menu or Desktop shortcut.
Tip: You can also run the tool directly from the terminal by typingqurancli
.
- Go to the Releases Page.
- Download the latest
.deb
package, for example:qurancli_1.1.0_amd64.deb
. - Open a terminal and navigate to the download directory.
- Install the package with:
sudo dpkg -i qurancli_1.1.0_amd64.deb
- If any dependency errors appear, run:
sudo apt-get install -f
- Once installed, launch QuranCLI directly by typing:
qurancli
๐ง Dev Only: Build from Source
- Prerequisites: Python 3.9+ and pip.
- Clone:
git clone https://github.com/anonfaded/QuranCLI.git cd QuranCLI
- Install Dependencies: (Using a virtual environment is recommended)
# Optional: Create and activate venv # python -m venv venv # .\venv\Scripts\activate (Windows) or source venv/bin/activate (Linux/macOS) pip install -r requirements.txt
- Run:
python Quran-CLI.py
๐ง Dev Only: Step-by-Step on building the .deb package for Linux
-
Copy Codebase from /mnt/c/ (WSL only)
Due to the WSL/mnt/c/
structure, copy the whole codebase to the root to match the filesystem as linux would expect:cp -r /mnt/c/Users/username/Desktop/QuranCLI .
-
Create the Executable:
Run PyInstaller (WSL) in the project's directory:pyinstaller QuranCLI.spec
-
Convert Line Endings:
Convert the Debian maintainer scripts to Unix format:dos2unix debian/postinst debian/prerm debian/postrm
-
Verify Executable Permissions:
Ensure the generated executable has the correct executable permissions:ls -l dist/QuranCLI
The permissions should show an
x
(executable) flag. -
Build the Debian Package:
Run the Debian build command in the copied codebase directory (the .deb package will be placed one level up):dpkg-buildpackage -us -uc -b
- Launch: Start QuranCLI (via Installer or
python Quran-CLI.py
). - Select Surah: Enter the Surah number (1-114) or type part of its name (e.g.,
rahman
). - Select Ayahs: Enter the starting and ending Ayah numbers.
- Read: View Arabic text and English translation. Use
n
/p
to navigate pages. - Listen: Type
a
to open the Audio Player. Use keys likep
(play/pause),s
(stop),r
(change reciter),[
/]
(seek 5s),j
/k
(seek 30s). Pressq
to return. - Subtitles & Share:
- Type
sub
in the main menu. - Select Surah and the Ayah range you want subtitles for.
- The
.srt
file is saved inDocuments\QuranCLI Subtitles
. - A local web server starts automatically. You'll see a URL like
http://<Your-IP>:8000
. - Open this URL on other devices on the same Wi-Fi to browse and download the subtitle files for that Surah.
- Use the
open
command in the subtitle menu to view the folder on your PC, orback
to return to the main menu (this also stops the server).
- Type
- Help: Type
info
in the main menu for detailed commands and credits. - Quit: Type
quit
orexit
in the main menu.
(Note: Use the reverse
command in the reader if Arabic text appears incorrectly displayed on your specific terminal.)
- Full Quran Transliteration: Complete transliteration of the entire.
- Integrated Urdu Translation: Built-in support for Urdu translations.
- New Reciters: Additional reciter options (e.g., Shiekh Mohammad Al Luhaidan and more).
- Tafsir Integration: In-depth explanations for each ayah.
- I'm-Feeling Feature: A mood-based recommendation system that suggests ayahs based on the user's current feelings.
-
Bugs & Feature Requests: Found an issue or have an idea? Please Open an Issue.
-
Pull Requests: Contributions are welcome!
-
Quran Data & Audio API: Provided by The Quran Project. An API for the Holy Quran with no rate limit.
-
Application Icon: Holy icon created by Atif Arshad - Flaticon.
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.