Weather in Lithuania CLI app ☀️ (powered by api.meteo.lt). This is a proof of concept app that is not intended for production use but rather testing yargs library.
Note: use Node.js version 18 or higher.
- Clone the repository
- Install dependencies
npm install
- Link the package (creates a symlink in the global
node_modules
folder to the current project)
npm link
- Run the CLI
meteolt --help
- Run without symlink
node index.js --help
You can use the meteolt
CLI with the following commands and options:
meteolt history
places
: List of places with forecaststations
: List of all observable stationshistory [stationId] [date]
: History from the specified stationforecast [placeCode]
: Forecast for the place
--version
: Show the version number--plain
: Output as plain text instead of table (default: false)--all
: Include all weather properties (default: false)--period
,--time
: Weather forecast period (choices: "today," "tomorrow," "week," default: "today")--help
: Show help
List of places where forecast is available
meteolt places
List of all observable stations
meteolt stations
Get the weather forecast for a specific place.
meteolt forecast "kaunas" --period="week"
placeCode
: The code for the place (default: "vilnius")
Retrieve historical weather data from the specified station.
meteolt history "vilniaus-ams" "2020-01-01"
stationId
: The ID of the station (default: "vilniaus-ams")date
: Date in YYYY-MM-DD format or "latest" (default: "latest")