Use this skill when users need practical help installing and using the GNews CLI binary.
Use this skill when the user asks to:
Repository:
Install from source:
git clone https://github.com/ParinLL/gnewsapi-go-client.git
cd gnewsapi-go-client
go build -o gnews-client .
Optional global install:
sudo install gnews-client /usr/local/bin/
export GNEWS_API_KEY="your-api-key"
./gnews-client --country tw --category world,technology,business --max 10
Behavior:
--country defaults to tw when omitted.--category accepts comma-separated categories.--max controls max returned articles per request../gnews-client
If globally installed:
gnews-client
./gnews-client --help
./gnews-client --debug
Debug mode:
apikey redacted.Required:
export GNEWS_API_KEY="your-api-key"
Permissions and access:
gnews.io is required.GNEWS_API_KEY missing or emptyecho $GNEWS_API_KEY, then re-export if needed.401/403 from APIcommand not found: gnews-client./gnews-client from project directory, or verify /usr/local/bin is in PATH.共 1 个版本