Main Command
The main command displays Sehar and Iftar timings for Ramadan.Syntax
Arguments
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
Save city nameExample:
--city "San Francisco"Save country nameExample:
--country "United States"Save latitude coordinate (-90 to 90)Example:
--latitude 37.7749Validation: Must be between -90 and 90Save longitude coordinate (-180 to 180)Example:
--longitude -122.4194Validation: Must be between -180 and 180Save calculation method (0-23)Example:
--method 2Validation: Must be an integer from 0 to 23See Aladhan API Methods for method IDs.Save juristic school for Asr calculationValues:
0- Shafi, Maliki, Hanbali, Jafari1- Hanafi
--school 0Validation: Must be 0 or 1Save timezone identifierExample:
--timezone "America/Los_Angeles"Use standard IANA timezone identifiers like:America/Los_AngelesAsia/KarachiAmerica/VancouverEurope/London
Display current configurationExample:
roza config --showClear 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
| Feature | First-Run Interactive | config Command |
|---|---|---|
| Prompts | Yes, uses Clack prompts | No prompts |
| When | First run (TTY only) | Anytime |
| Input | Interactive selections | Command-line flags |
| Use Case | Initial setup | Scripts, updates, automation |
| Location Detection | Offers auto-detect | Must provide values |
| Recommendations | Suggests method/school | You set explicitly |
Environment Variable
Control where config is stored:- Testing with isolated configs
- Agent skill packages
- Multiple user profiles
Command Summary
| Command | Purpose | Interactive |
|---|---|---|
roza | Show Sehar/Iftar timings | Yes (first run) |
roza reset | Clear all configuration | No |
roza config | Manage config non-interactively | No |