CLI Reference¶
Weather ships with the server binary (weather) and a companion client (weather-cli).
Server CLI¶
Basic usage:
Common flags:
| Flag | Purpose |
|---|---|
--help | Show help |
--version | Show version |
--mode | Set production or development |
--config {config_dir} | Override config directory |
--data {data_dir} | Override data directory |
--log {log_dir} | Override log directory |
--port N | Override listen port |
--address HOST | Override listen address |
--debug | Enable debug mode |
Useful commands:
Client CLI¶
Install the companion client:
curl -q -LSsf -O https://github.com/apimgr/weather/releases/latest/download/weather-cli-linux-amd64
chmod +x weather-cli-linux-amd64
sudo mv weather-cli-linux-amd64 /usr/local/bin/weather-cli
Configure it against the official server:
Common usage:
Output and Status¶
The CLI honors the project color/plain-output rules, including NO_COLOR.
Configuration¶
- Server config:
{config_dir}/server.yml - Client config:
~/.config/apimgr/weather/cli.yml