scrcpy

Display and control your Android device from your computer.

brewmacoslinux
Try with needOr install directly
Source

About

Display and control your Android device

Commands

scrcpy

Examples

mirror android phone screen to computer$ scrcpy
control android device with keyboard and mouse$ scrcpy --show-touches
record android screen to video file$ scrcpy --record=recording.mp4
display android screen in fullscreen mode$ scrcpy --fullscreen
cast android screen without audio to reduce latency$ scrcpy --no-audio