Skip to main content

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:

City-Specific Queries

You can check timings for any city without changing your saved configuration:
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:
Example Output:

Checking Specific Days

View timings for a specific roza day (1-30):
Example Output:
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:
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:
Example Success Output:
Example Error Output (stderr):
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

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:
roza is the shortest and most convenient alias.