Documentation Index Fetch the complete documentation index at: https://mintlify.com/ahmadawais/ramadan-cli/llms.txt
Use this file to discover all available pages before exploring further.
Quick Start
Ramadan CLI provides Sehar and Iftar timings right in your terminal. The default command shows today’s timings:
On first run, you’ll be guided through an interactive setup to configure your location and prayer calculation settings.
Checking Today’s Timings
The simplest way to check today’s Sehar and Iftar times:
Example Output:
Today Sehar/Iftar
📍 San Francisco, United States
Roza Sehar Iftar Date Hijri
--------------------------------------------------------
15 5:45 AM 7:32 PM 18-03-2026 15 Ramadan 1447
Status: Roza in progress
Up next: Iftar in 3h 45m
Sehar uses Fajr. Iftar uses Maghrib.
City-Specific Queries
You can check timings for any city without changing your saved configuration:
City Name
City, Country
City Aliases
roza "San Francisco"
roza lahore
roza vancouver
roza "Dera Ghazi Khan"
roza "San Francisco, United States"
roza "Lahore, Pakistan"
roza "Vancouver, Canada"
# SF is aliased to San Francisco
roza sf
roza sf --all
Passing a city as an argument is a one-off lookup and does not overwrite your saved default location.
Viewing the Full Month
View all 30 days of Ramadan at once:
roza --all
roza -a
roza "San Francisco" --all
Example Output:
Ramadan 1447 (All Days)
📍 San Francisco, United States
Roza Sehar Iftar Date Hijri
-------------------------------------------------------------------------
1 5:30 AM 6:15 PM 01-03-2026 1 Ramadan 1447
2 5:29 AM 6:16 PM 02-03-2026 2 Ramadan 1447
3 5:28 AM 6:17 PM 03-03-2026 3 Ramadan 1447
...
15 5:45 AM 7:32 PM 18-03-2026 15 Ramadan 1447 ← current
16 5:46 AM 7:33 PM 19-03-2026 16 Ramadan 1447 ← next
...
30 6:00 AM 7:45 PM 30-03-2026 30 Ramadan 1447
Status: Roza in progress
Up next: Iftar in 3h 45m
Checking Specific Days
View timings for a specific roza day (1-30):
roza --number 10
roza -n 15
roza "Lahore" -n 27
Example Output:
Roza 10 Sehar/Iftar
📍 Lahore, Pakistan
Roza Sehar Iftar Date Hijri
--------------------------------------------------------
10 5:15 AM 6:45 PM 10-03-2026 10 Ramadan 1447
Sehar uses Fajr. Iftar uses Maghrib.
You cannot use --all and --number together. Choose one or the other.
Status Bar Output
For status bars, coding agents, or simple scripts, use the --status flag for single-line output:
roza --status
roza -s
roza -s --city Lahore
Example Output:
This outputs only the next event with countdown, perfect for:
Status bars (tmux, i3, waybar)
Coding agents and LLM tools
Shell scripts
The --status flag silently fails if there’s an error, making it safe for automated use.
Plain Text Output
Disable the ASCII banner for cleaner output:
This replaces the decorative banner with “RAMADAN CLI” text.
JSON Output
Get structured JSON output for programmatic use:
roza --json
roza -j
roza "San Francisco" --all --json
Example Success Output:
{
"mode" : "today" ,
"location" : "San Francisco, United States" ,
"hijriYear" : 1447 ,
"rows" : [
{
"roza" : 15 ,
"sehar" : "5:45 AM" ,
"iftar" : "7:32 PM" ,
"date" : "18-03-2026" ,
"hijri" : "15 Ramadan 1447"
}
]
}
Example Error Output (stderr):
{
"ok" : false ,
"error" : {
"code" : "LOCATION_DETECTION_FAILED" ,
"message" : "Could not detect location. Pass a city like `ramadan-cli \" Lahore \" `."
}
}
JSON mode automatically skips interactive setup prompts, making it perfect for CI/CD and automated scripts.
Exit Codes
0 - Success
1 - Runtime error, validation error, network failure, or data fetch failure
Common Usage Examples
Quick Check
Different City
Full Month
Specific Day
Status Bar
Script Integration
# Today's timings with saved location
roza
Understanding the Output
Time Semantics
Sehar = Fajr prayer time (when fasting begins)
Iftar = Maghrib prayer time (when fasting ends)
All times are displayed in 12-hour format with AM/PM
Status Indicators
The CLI shows your current status:
Before roza day - Ramadan hasn’t started yet
Sehar window open - You can eat suhoor
Roza in progress - Fasting is active
Iftar time - Time to break your fast
Row Annotations
When viewing all days:
← current - Today’s roza
← next - Tomorrow’s roza
Using Different CLI Names
All these commands work identically:
ramadan-cli
roza
ramzan
ramazan
ramadan
roza is the shortest and most convenient alias.