Skip to main content

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:
Your settings are saved automatically. Next time you run roza, you’ll see times instantly without any setup.

Core Commands

Now that you’re set up, here are the most common commands:

Today’s Times (Default)

Shows today’s Sehar and Iftar times with a countdown to the next event.

Full Ramadan Month

Displays all 30 days of Ramadan:

Specific Roza Day

Shows times for a specific roza (1-30):

Check Different City

Check times for any city without changing your saved location:

Combine Commands

You can combine flags for powerful queries:

Output Modes

Ramadan CLI offers multiple output formats for different use cases:
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:
Ramadan CLI Output
  • Sehar = Fajr prayer time (pre-dawn meal)
  • Iftar = Maghrib prayer time (breaking fast)
  • Times are shown in 12-hour format (AM/PM)
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
Countdown format: 3h 25m (hours and minutes) or 45m (minutes only)
Two date formats are shown:
  • Gregorian: Standard calendar (e.g., 05-03-2026 = March 5, 2026)
  • Hijri: Islamic calendar (e.g., 15 Ramadan 1447)
When using --all, the CLI highlights:
  • ← current: Today’s roza
  • ← next: Tomorrow’s roza
This helps you quickly find relevant days in the full month view.

Common Use Cases

Morning Check

Quick check of today’s times when you wake up

Plan Ahead

See the entire month to plan your schedule

Travel

Check times for your destination before or during travel

Status Bar

Integrate with your terminal status bar or shell prompt

Pro Tips

Alias in your shell: Add to your ~/.bashrc or ~/.zshrc for even faster access:
Check multiple cities quickly: Chain commands to compare:
Use in scripts: The --json flag makes it easy to parse in scripts:

Reset Configuration

If you want to start over or your location changed:
This clears all saved settings. The next time you run 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.