← 返回命令列表

Linux command

wego 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show 3-day forecast for current location

wego

Show forecast for specific city

wego [London]

Show 5-day forecast

wego -d [5]

Show forecast for city with days

wego [Paris] [4]

Use emoji frontend

wego -f emoji

Output as JSON

wego -f json

说明

wego is a terminal weather client that displays forecasts using ASCII art. Written in Go, it shows temperature, wind speed and direction, visibility, and precipitation probability. The tool supports multiple weather data backends including OpenWeatherMap. You need to register for an API key and configure it in ~/.wegorc before use. Three output frontends are available: ascii-art-table (classic terminal look), emoji (modern icons), and json (for scripting). The display requires a UTF-8 terminal with 256 colors.

参数

-d, --days _num_
Number of forecast days (1-7, default 3).
-f, --frontend _type_
Output frontend: ascii-art-table, emoji, or json.
-u, --units _system_
Units: metric or imperial.
-b, --backend _name_
Weather data source.
-l, --location _place_
Set location for forecast.
-h, --help
Display help.

FAQ

What is the wego command used for?

wego is a terminal weather client that displays forecasts using ASCII art. Written in Go, it shows temperature, wind speed and direction, visibility, and precipitation probability. The tool supports multiple weather data backends including OpenWeatherMap. You need to register for an API key and configure it in ~/.wegorc before use. Three output frontends are available: ascii-art-table (classic terminal look), emoji (modern icons), and json (for scripting). The display requires a UTF-8 terminal with 256 colors.

How do I run a basic wego example?

Run `wego` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -d, --days _num_ do in wego?

Number of forecast days (1-7, default 3).