If you are a developer or a DevOps person working most of the time on command line interfaces (CLIs) such as Windows Command Prompt, or on Linux or macOS Terminals, and want to know how to get weather details of your city (or any city around the world) displayed using a command in console, here is how you can do it with a simple curl command to a website that provides a response in a very colourful and intuitive way.
curl wttr.in/<city-name>
Example: $ curl wttr.in/chicago

✌️You can also create aliases for the curl so that instead of tying it always you can remember something a shortcut like temp: check out how - Custom Aliases Examples
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!