countryfetch
Neofetch-like country information fetcher
TLDR
SYNOPSIS
countryfetch [OPTIONS] [COUNTRY...]
DESCRIPTION
countryfetch displays country information in a terminal layout similar to neofetch. It renders an ASCII-art version of the country's flag alongside key facts such as population, area, capital, languages, currencies, neighboring countries, top-level domains, dialing codes, driving side, establishment date, and ISO codes. Output text is colorized using the brightest color extracted from the country's flag. All country data is embedded at compile time, so no runtime API calls are needed for country information.
PARAMETERS
COUNTRY
One or more country names or 2-letter ISO codes (case-insensitive). If omitted, auto-detects via public IP geolocation.--all-countries
Print information about all countries.--list-countries
Print a list of all available country names and codes.--select FIELD...
Select which fields to show: area, flag, emoji, continent, population, tlds, languages, currencies, neighbours, establishment-date, iso-code, driving-side, capital, dialing-code, palette, color.--version
Print version.--help
Print help.
CAVEATS
Country detection relies on a public IP lookup, so it will not work offline and may reflect VPN location rather than physical location. Country data is baked into the binary at compile time, so updating data requires a new release. Requires Rust/Cargo 1.85+ to build from source.
HISTORY
countryfetch was created by Nik Revenco and first released in March 2025. Written in Rust under the MIT/Apache-2.0 dual license. The latest version is v0.2.0. Available in the official Arch Linux repositories, Homebrew, and via Cargo. Inspired by the "fetch" family of tools (neofetch, fastfetch), applying the same terminal aesthetic to country data.

