Clima is a command-line tool written in Golang, utilizing the Cobra framework. It provides weather forecasts for today or the next three days.
- Download the latest version of Clima from releases.
- Add the downloaded binary to your
bin
folder.
Before using Clima, you need to set up your WeatherAPI token and optionally specify your location.
- Go to WeatherAPI and create your own token. (for free)
- Declare an environment variable
CLIMA_TOKEN
and set it to your WeatherAPI token.
You can specify your default location by declaring an environment variable CLIMA_LOCATION
.
# Get the current weather
clima current
# Get the forecast for the next 3 days
clima forecast
# Get the forecast for a specific location
clima -l "Las Vegas" current