Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.46 KB

README.md

File metadata and controls

56 lines (37 loc) · 1.46 KB

Weather CLI App

weather-cli-app

This Weather CLI App fetches weather data and displays it to the user. It allows users to retrieve current weather information based on a provided city name or zip code.

Features

  • Fetches weather data based on user input (city name or zip code).
  • Displays the current weather, including temperature and other relevant information.
  • Supports temperature units in both Celsius (°C) and Fahrenheit (°F).
  • Allows users to set a default location for quicker weather checks.
  • Enables users to set default temperature units (Celsius or Fahrenheit) for displaying.

Installation

  1. Clone the repository:
git clone https://github.com/your-username/weather-cli-app.git
cd weather-cli-app
  1. Install dependencies:
npm install
  1. Install CLI globally:
npm install -g .

Usage

To use the Weather CLI App, run the following command in the terminal:

weather-cli [command] [options]

Replace [command] with the desired action (e.g., weather, set-location, set-units) and [options] with any applicable options for the chosen command.

For example, to fetch and display the current weather for a specific location, use:

weather-cli weather -s

Commands

  • weather (alias: w): Fetch and display the current weather.
  • set-location (alias: sl): Allow users to set a default location.
  • set-units (alias: su): Allow users to set default temperature units.