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
Thereset command removes:
- Saved location (city, country, latitude, longitude)
- Saved prayer settings (method, school, timezone)
- Custom first roza date override
Example
- Attempt auto-detection via IP geolocation
- Or prompt for interactive setup (if TTY available)
- Or require you to pass a city explicitly
When to Use Reset
- Traveling
- Testing
- Fixing Issues
Reset when you’ve moved to a new location and want to reconfigure:
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:Clearing Configuration
Remove all saved settings: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 90number
Save longitude coordinate (-180 to 180)Example:
--longitude -122.4194Validation: Must be between -180 and 180number
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, Jafari1- Hanafi
--school 0Validation: Must be 0 or 1string
Save timezone identifierExample:
--timezone "America/Los_Angeles"Use standard IANA timezone identifiers like:America/Los_AngelesAsia/KarachiAmerica/VancouverEurope/London
boolean
Display current configurationExample:
roza config --showboolean
Clear all saved configurationExample:
roza config --clearConfiguration Behavior
Merging Updates
When you update config values, they merge with existing settings:No Updates Provided
If you runconfig without any update flags:
Validation Errors
The config command validates all inputs:Examples
- Complete Setup
- Update Location
- Update Method
- View & Clear
Comparison: Interactive vs Config Command
Environment Variable
Control where config is stored:- 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