← 返回命令列表

Linux command

countryfetch 命令

文本

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

常用示例

Display

countryfetch

Display

countryfetch [us]

Display

countryfetch [UnitedStates] [UnitedKingdom]

List

countryfetch --list-countries

Display

countryfetch --all-countries

Show

countryfetch [us] --select flag population capital

说明

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.

参数

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.

FAQ

What is the countryfetch command used for?

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.

How do I run a basic countryfetch example?

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

What does COUNTRY do in countryfetch?

One or more country names or 2-letter ISO codes (case-insensitive). If omitted, auto-detects via public IP geolocation.