weather-cli-senriv
v1.0.1
Published
Simple CLI tool for checking the weather
Maintainers
Readme
🌦️ Weather CLI
A simple and lightweight CLI tool for getting the current weather directly from the terminal. Powered by OpenWeatherMap API.
✨ Features
- 🌍 Get current weather by city
- 💾 Save city and API token locally
- 🎨 Colored CLI output
- ☀ Unicode weather icons (terminal-safe)
- ⚡ Fast and minimal
📦 Installation
Install globally via npm:
npm install -g weather-cli-senrivAfter that, the weather command will be available globally.
🔑 Getting an API Key
This CLI uses the OpenWeatherMap API.
- Go to https://openweathermap.org/
- Create an account
- Generate an API key
- Save it using the CLI command below
🚀 Usage
Save API token
weather -t YOUR_API_KEYSave city
weather -s LondonGet weather
weatherShow help
weather -h🖥 Example Output
WEATHER Weather in London
☀ clear sky
Temperature: 21°C (feels like 20°C)
Humidity: 56%
Wind speed: 4.1 m/s🛠 CLI Options
| Option | Description |
| ------ | ----------- |
| -h | Show help |
| -s [CITY] | Set city |
| -t [API_KEY] | Save API token |
📁 Data Storage
Configuration is stored locally in:
~/weather-data.jsonIt contains:
- saved city
- API token
🧩 Tech Stack
- Node.js (ES Modules)
- Axios
- Chalk
- OpenWeatherMap API
⚠ Notes
- Unicode icons are used for better terminal compatibility
- Temperature is shown in Celsius
- Wind speed is shown in m/s
📄 License
ISC
👤 Author
Vitalii Borysenko (Senriv)
GitHub: https://github.com/Senriv
