cihai-cli

Command line frontend for the cihai CJK language library.

Quickstart

Install and look up your first character.

Quickstart
CLI Reference

Every command, flag, and option.

CLI Reference
Contributing

Development setup, code style, and releases.

Project

Run cihai

Choose how you want to invoke the cihai command. The cooldown control only changes uvx commands because uvx can keep cihai-cli itself out of the cooldown window.

Run cihai with uvx:

$ uvx --from cihai-cli cihai info 
$ uvx --from cihai-cli cihai reverse good
$ uvx --from cihai-cli cihai --help

At a glance

Use cihai info to look up a CJK character:

$ cihai info 
char: 
kCantonese: hou2 hou3
kDefinition: good, excellent, fine; well
kHangul: 호:0E
kJapaneseOn: KOU
kKorean: HO
kMandarin: hǎo
kTang: '*xɑ̀u *xɑ̌u'
kVietnamese: háo
ucn: U+597D

Use cihai reverse to search definitions:

$ cihai reverse good
char: 
kCantonese: hou2 hou3
kDefinition: good, excellent, fine; well
kHangul: 호:0E
kJapaneseOn: KOU
kKorean: HO
kMandarin: hǎo
kTang: '*xɑ̀u *xɑ̌u'
kVietnamese: háo
ucn: U+597D

Data is downloaded automatically on first use via cihai.