cliclick

Emulate mouse and keyboard events from the command line

brewmacoslinux
Try with needOr install directly
Source

About

Tool for emulating mouse and keyboard events

Commands

cliclick

Examples

Move mouse to coordinates (100, 200)$ cliclick m 100 200
Click at current mouse position$ cliclick c
Type text with keyboard$ cliclick t 'Hello World'