sudo npm install -g weather-cli weather config -c Shenzhen -C China weather # 默认城市 # 定向查询某个城市 weather -c San Francisco -C USA
![](https://cdn.jsdelivr.net/gh/jbenyale/yypic/picgoimg/mini_%202021-04-13%20at%2009.22.46.png)
sudo npm install -g weather-cli weather config -c Shenzhen -C China weather # 默认城市 # 定向查询某个城市 weather -c San Francisco -C USA