Main Command Flags
Flags for the mainramadan-cli command (showing Sehar/Iftar timings).
City Selection
Positional argument for city name (one-off lookup)Type: City Aliases:
stringDefault: Uses saved configuration or auto-detectsBehavior: Does not overwrite saved configuration. Only affects current run.Examples:sf→San Francisco
Flag alternative for specifying cityType:
stringDefault: NoneBehavior: Same as positional city argumentExamples:Display Modes
Show complete Ramadan month (all 30 days)Type: Output: Table with all 30 roza days showing Sehar, Iftar, dates, and Hijri dates
booleanDefault: falseExamples:Show specific roza day (1-30)Type:
number (integer)Range: 1 to 30Default: None (shows today by default)Validation: Must be an integer between 1 and 30, or you’ll get: Roza number must be between 1 and 30.Examples:Output Formats
Plain text output without ASCII bannerType: Use Cases:
booleanDefault: false (shows decorative banner)Behavior: Replaces ASCII art banner with simple “RAMADAN CLI” textExamples:- Cleaner terminal output
- Logging to files
- Screen readers
JSON-only structured outputType: Error Output (stderr):Error Codes:Use Cases:
booleanDefault: falseBehavior:- Outputs structured JSON to stdout (success) or stderr (error)
- Skips interactive setup prompts
- Disables spinner and decorative output
INVALID_FIRST_ROZA_DATE- Invalid date formatINVALID_FLAG_COMBINATION- Used--alland--numbertogetherPRAYER_TIMES_FETCH_FAILED- API fetch errorRAMADAN_CALENDAR_FETCH_FAILED- Calendar fetch errorLOCATION_DETECTION_FAILED- Could not detect locationROZA_NOT_FOUND- Invalid roza numberRAMADAN_CLI_ERROR- Generic errorUNKNOWN_ERROR- Unknown error
- Scripts and automation
- CI/CD pipelines
- Parsing with jq
- Integration with other tools
Status line output (next event only)Type: Use Cases:tmux Example:i3blocks Example:
booleanDefault: falseBehavior:- Outputs single line with next event and countdown
- Silently fails on error (no output)
- Skips interactive setup
- Perfect for status bars
- tmux status bar
- i3 status bar
- waybar
- Coding agents
- Shell prompts
Custom Date Override
Set and use a custom first roza dateType: Use Cases:
string (ISO 8601 date)Format: YYYY-MM-DDDefault: Uses API-provided Ramadan date from Hijri calendarBehavior:- Persists across runs (saved to config)
- Overrides API Hijri calendar
- Calculates all 30 roza days from this start date
Invalid first roza date. Use YYYY-MM-DD.Examples:- Local moonsighting differs from API
- Following specific country’s calendar
- Testing with specific dates
Clear custom first roza date and use API Ramadan dateType: Use Cases:
booleanDefault: falseBehavior:- Removes saved custom first roza date
- Reverts to API-provided Hijri calendar
- Takes precedence over
--first-roza-dateif both provided
- Return to standard API dates
- Remove test date override
Version and Help
Display version numberType: Output:
booleanOutput: Version string only to stdoutExamples:Display help informationType:
booleanOutput: Usage information and available flagsExamples:Config Command Flags
Flags for theramadan-cli config command (managing configuration).
Location Configuration
Save city name to configurationType:
stringBehavior: Merges with existing config (doesn’t clear other values)Examples:Save country name to configurationType:
stringBehavior: Merges with existing configExamples:Save latitude coordinate (-90 to 90)Type:
numberRange: -90 to 90Validation: Must be between -90 and 90 or you’ll get: Invalid latitude.Examples:Save longitude coordinate (-180 to 180)Type:
numberRange: -180 to 180Validation: Must be between -180 and 180 or you’ll get: Invalid longitude.Examples:Prayer Settings Configuration
Save calculation method (0-23)Type:
number (integer)Range: 0 to 23Validation: Must be integer from 0 to 23 or you’ll get: Invalid method.Common Values:0- Shia Ithna-Ashari1- University of Islamic Sciences, Karachi2- Islamic Society of North America (ISNA)3- Muslim World League4- Umm Al-Qura University, Makkah5- Egyptian General Authority of Survey15- Institute of Geophysics, University of Tehran
Save juristic school (0=Shafi, 1=Hanafi)Type:
number (integer)Range: 0 or 1Validation: Must be 0 or 1 or you’ll get: Invalid school.Values:0- Shafi, Maliki, Hanbali, Jafari (standard Asr time)1- Hanafi (earlier Asr time)
Save timezone identifierType:
string (IANA timezone)Format: IANA timezone identifier (e.g., America/Los_Angeles)Common Values:America/Los_AngelesAmerica/New_YorkAmerica/ChicagoAmerica/VancouverAsia/KarachiAsia/DubaiEurope/London
Config Actions
Display current configurationType: Examples:
booleanDefault: falseOutput:Clear all saved configurationType: Examples:
booleanDefault: falseBehavior: Removes all saved settings (location, method, school, timezone, first roza date)Output:Equivalent to
roza resetFlag Combinations and Conflicts
Invalid Combinations
Flag Precedence
- City
- First Roza Date
- Config
Both positional argument and flag can specify city:If both provided, flag takes precedence:
Compatible Combinations
Flag Reference Tables
Main Command Flags
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
[city] | - | string | config/auto-detect | City for one-off lookup |
--city | -c | string | none | City (flag alternative) |
--all | -a | boolean | false | Show all 30 days |
--number | -n | number | none | Show specific roza (1-30) |
--plain | -p | boolean | false | Plain text output |
--json | -j | boolean | false | JSON output |
--status | -s | boolean | false | Status line output |
--first-roza-date | - | string | API date | Custom first roza date (YYYY-MM-DD) |
--clear-first-roza-date | - | boolean | false | Clear custom first roza date |
--version | -v | boolean | - | Display version |
--help | -h | boolean | - | Display help |
Config Command Flags
| Flag | Type | Range/Format | Description |
|---|---|---|---|
--city | string | - | Save city name |
--country | string | - | Save country name |
--latitude | number | -90 to 90 | Save latitude |
--longitude | number | -180 to 180 | Save longitude |
--method | number | 0 to 23 | Save calculation method |
--school | number | 0 or 1 | Save juristic school |
--timezone | string | IANA timezone | Save timezone |
--show | boolean | - | Display configuration |
--clear | boolean | - | Clear configuration |
Environment Variables
Override configuration directoryType: Use Cases:
string (directory path)Default:- macOS/Linux:
~/.config/ramadan-cli - Windows:
%APPDATA%\ramadan-cli
- Testing with isolated configs
- Multiple user profiles
- CI/CD environments
- Agent skill packages