Quick Start
This guide will walk you through running Ramadan CLI for the first time and understanding the core features.First Run
1
Run the CLI
Open your terminal and run:On first run, youβll see an interactive setup prompt.
2
Complete the Setup
The CLI will guide you through a one-time setup:
The CLI automatically detects your location, recommends the best calculation method for your country, and detects your timezone. Just press Enter to accept the defaults.
3
View Your Times
After setup, youβll immediately see todayβs Sehar and Iftar times:
Core Commands
Now that youβre set up, here are the most common commands:Todayβs Times (Default)
Full Ramadan Month
Specific Roza Day
Check Different City
Combine Commands
You can combine flags for powerful queries:Output Modes
Ramadan CLI offers multiple output formats for different use cases:- Standard (Default)
- Plain Text
- JSON
- Status Bar
Beautiful terminal output with ASCII banner, colors, and countdown:Perfect for interactive terminal use.
Understanding the Output
Letβs break down what each part means:
Sehar and Iftar
Sehar and Iftar
- Sehar = Fajr prayer time (pre-dawn meal)
- Iftar = Maghrib prayer time (breaking fast)
- Times are shown in 12-hour format (AM/PM)
Status and Countdown
Status and Countdown
The CLI shows your current state:
- Before roza day: Before the first Ramadan day
- Sehar window open: Time to eat Sehar before fasting starts
- Roza in progress: Currently fasting
- Iftar time: Time to break fast
- Next day Sehar: After Iftar, counting down to tomorrowβs Sehar
3h 25m (hours and minutes) or 45m (minutes only)Date Formats
Date Formats
Two date formats are shown:
- Gregorian: Standard calendar (e.g.,
05-03-2026= March 5, 2026) - Hijri: Islamic calendar (e.g.,
15 Ramadan 1447)
Current and Next Markers
Current and Next Markers
When using
--all, the CLI highlights:β current: Todayβs rozaβ next: Tomorrowβs roza
Common Use Cases
Morning Check
Plan Ahead
Travel
Status Bar
Pro Tips
Reset Configuration
If you want to start over or your location changed:roza, youβll go through the setup again.
Whatβs Next?
CLI Reference
Explore all available commands and flags
Configuration
Learn about advanced configuration options
Custom Dates
Override Ramadan start dates for moon sighting
Integration
Integrate with status bars, scripts, and agents
Ramadan CLI uses the Aladhan Prayer Times API to fetch accurate prayer times based on your location and selected calculation method.