Meteostat CLI

On this page

The Meteostat CLI gives you direct access to weather and climate data from the terminal. It is built on top of the Meteostat Python library and lets you query historical observations, browse weather stations, and export data in a variety of formats — all without writing a single line of code.

📚 Installation#

Install the CLI via PyPI:

Bash
uv tool install meteostat-cli

For plotting capabilities (png and svg output), install the plot extra:

Bash
uv tool install "meteostat-cli[plot]"

Alternatively, you can use uvx:

Bash
uvx meteostat-cli [YOUR_COMMAND]

⚡ Shell Completion#

To enable shell completion (Bash, Zsh, Fish, PowerShell), run the following command:

Bash
meteo --install-completion

🚀 Usage#

Want to know the hottest temperature of 2024 at Frankfurt Airport (station 10637)? Run the following command:

Bash
meteo daily 10637 -s 2024-01-01 -e 2024-12-31 -p tmax --agg max

This will yield the following output:

Text
         tmax
station
10637    35.9

👀 Learn More#