CLI Reference¶
For workflow-oriented examples, see Usage Patterns.
Global Options¶
--output json|table|csv
--table
--refresh
--cache-ttl 30m
--timeout 30s
--api-key <key>
--forecast-base-url <url>
--geocode-base-url <url>
--historical-base-url <url>
--config <path>
Global options may be passed before or after subcommands.
Commands¶
geocode¶
Searches Open-Meteo geocoding and returns candidate locations.
places¶
weather-signal places add <alias> <query> [--country GB]
weather-signal places list
weather-signal places remove <alias>
Manages saved aliases in the local config file.
current¶
Returns current weather fields for the resolved location.
daily¶
Returns daily forecast variables for 1 to 16 days.
hourly¶
Returns hourly forecast variables for 1 to 384 hours.
signal¶
Returns normalized daily weather features for forecasting workflows.
summary¶
Returns a compact JSON summary over the forecast window, including counts for risk, warm, hot, wet, windy, and sunny days plus the underlying daily signals.
threshold¶
weather-signal threshold <location> [--days 7] --rain-prob-gte 60
weather-signal threshold <location> --precip-mm-gte 5 --wind-gust-gte 40
Filters the forecast to days matching one or more threshold conditions. Supported thresholds are --rain-prob-gte, --precip-mm-gte, --temp-max-gte, --temp-min-lte, and --wind-gust-gte.
batch signal¶
weather-signal batch signal --places all [--days 7] [--concurrency 4]
weather-signal batch signal --input locations.csv [--country GB] [--concurrency 4]
Runs demand signals for multiple locations. --places all uses saved places. CSV input must include a location column and may include a country column. Batch output is per-item: each item contains either signal or error, so one failed location does not discard successful locations.
historical¶
Returns daily Open-Meteo archive variables for backtesting and feature engineering.
completions¶
Prints shell completion scripts to stdout.
server start¶
weather-signal server start --transport stdio
weather-signal server start --transport streamable-http --http-host 127.0.0.1 --http-port 8768 --http-path /mcp
Starts the MCP server. stdio is intended for local MCP clients. Streamable HTTP exposes MCP at the configured path and health probes at /healthz and /readyz.
cache¶
Inspects, prunes, or clears local response cache files.