fcitx-remote-for-osx

Control input method switching from command-line on macOS

brewmacoslinux
Try with needOr install directly
Source

About

Handle input method in command-line

Commands

fcitx-remote

Examples

List all available input methods$ fcitx-remote -l
Switch to a specific input method by index$ fcitx-remote -s 1
Get the current active input method$ fcitx-remote -i