Skip to main content

Main Command

The main command displays Sehar and Iftar timings for Ramadan.

Syntax

Arguments

string
City name for one-off lookup. Does not overwrite saved configuration.Examples:
  • "San Francisco"
  • "sf" (alias for San Francisco)
  • "Lahore"
  • "Vancouver"
  • "San Francisco, United States" (city, country format)

Behavior

By default (no flags), shows today’s Sehar and Iftar timing:
On first run with a TTY, the CLI launches an interactive setup to configure your location, calculation method, and school.

Options

See Flags and Options for complete flag documentation.

Examples


Reset Command

Clear all saved Ramadan CLI configuration.

Syntax

What It Clears

The reset command removes:
  • Saved location (city, country, latitude, longitude)
  • Saved prayer settings (method, school, timezone)
  • Custom first roza date override

Example

Output:
After reset, the next run will:
  1. Attempt auto-detection via IP geolocation
  2. Or prompt for interactive setup (if TTY available)
  3. Or require you to pass a city explicitly

When to Use Reset

Reset when you’ve moved to a new location and want to reconfigure:
Reset is permanent. You’ll need to reconfigure your location after using this command.

Config Command

Manage saved configuration non-interactively.

Syntax

Use Cases

  • Set configuration without interactive prompts
  • Update specific settings while keeping others
  • View current configuration
  • Clear all settings
  • Useful for scripts and automation

Setting Configuration

Update one or more configuration values:

Viewing Configuration

Display your current saved settings:
Example Output:

Clearing Configuration

Remove all saved settings:
Output:
This is equivalent to roza reset.

Options

string
Save city nameExample: --city "San Francisco"
string
Save country nameExample: --country "United States"
number
Save latitude coordinate (-90 to 90)Example: --latitude 37.7749Validation: Must be between -90 and 90
number
Save longitude coordinate (-180 to 180)Example: --longitude -122.4194Validation: Must be between -180 and 180
number
Save calculation method (0-23)Example: --method 2Validation: Must be an integer from 0 to 23See Aladhan API Methods for method IDs.
number
Save juristic school for Asr calculationValues:
  • 0 - Shafi, Maliki, Hanbali, Jafari
  • 1 - Hanafi
Example: --school 0Validation: Must be 0 or 1
string
Save timezone identifierExample: --timezone "America/Los_Angeles"Use standard IANA timezone identifiers like:
  • America/Los_Angeles
  • Asia/Karachi
  • America/Vancouver
  • Europe/London
boolean
Display current configurationExample: roza config --show
boolean
Clear all saved configurationExample: roza config --clear

Configuration Behavior

Merging Updates

When you update config values, they merge with existing settings:

No Updates Provided

If you run config without any update flags:
Output:

Validation Errors

The config command validates all inputs:

Examples

Comparison: Interactive vs Config Command

Use interactive setup for first-time configuration. Use config command for scripted setups or quick updates.

Environment Variable

Control where config is stored:
Useful for:
  • Testing with isolated configs
  • Agent skill packages
  • Multiple user profiles

Command Summary

Next Steps

Flags and Options

Complete reference of all command-line flags

Configuration

Learn about interactive setup and config management