Skip to main content
Ramadan CLI provides flexible calendar viewing options, from viewing today’s timings to browsing the entire Ramadan month or selecting specific roza days.

Default View: Today’s Timings

Without any flags, Ramadan CLI shows timings for the current day:
During Ramadan:
Before Ramadan:

Full Month View

Use the --all or -a flag to display all 30 days of Ramadan:

Example Output

Calendar Annotations

When viewing the full calendar, rows are annotated to show:
  • ← current: The current roza (green) - only during Ramadan
  • ← next: The next upcoming roza (yellow)
Annotations are automatically calculated based on:
  • Current Hijri date (when using API-based dates)
  • Custom first roza date (when using --first-roza-date)
  • Your local timezone

Specific Roza Selection

View timings for any specific roza day (1-30) using the --number or -n flag:

Example

The --number flag accepts values from 1 to 30, corresponding to the days of Ramadan.

Flag Validation

You cannot combine --all and --number flags:
❌ Error:

Calendar Data Sources

API-Based Calendar (Default)

By default, Ramadan CLI fetches the Hijri calendar for Ramadan (month 9) from the Aladhan API:
The target Hijri year is automatically determined:

Custom Date Calendar

When using --first-roza-date, the calendar is built differently:
This fetches prayer times for 30 consecutive days starting from your specified date.

Calendar Features

Time Format

All times are displayed in 12-hour format with AM/PM:

Date Columns

Each row includes:
  • Roza: Day number (1-30)
  • Sehar: Fajr prayer time (start of fast)
  • Iftar: Maghrib prayer time (break fast)
  • Date: Gregorian date (DD-MM-YYYY)
  • Hijri: Islamic date with month name and year
Sehar uses the Fajr prayer time, and Iftar uses the Maghrib prayer time. This is the standard practice across most Muslim communities.

Combining with Other Flags

Calendar with Different Cities

Calendar with Custom First Date

Plain Text Output

JSON Output

Get structured calendar data:

Performance Considerations

When fetching the full calendar:
1

API-Based Calendar

Makes a single API call to fetch all 30 days of Ramadan using the Hijri calendar endpoint.Fast ⚑ - Single HTTP request
2

Custom Date Calendar

Makes 30 parallel API calls to fetch prayer times for each individual day.Slower 🐌 - 30 HTTP requests (but executed in parallel)
Using --first-roza-date with --all will make 30 API requests. This is slower but ensures accurate prayer times for your custom date range.

City Aliases

Ramadan CLI supports convenient city aliases: