One command opens every phone on your desk.
cliscrpy is a small bash CLI on top of scrcpy. Give each Android phone a name, mirror them all at once, and install, screenshot or open a deep link on the whole fleet in parallel.
curl -fsSL https://raw.githubusercontent.com/nerdcuba/cliscrpy/main/install.sh | bash
scrcpy, without the bookkeeping
scrcpy is great for one phone. With five, you're copying serials, retyping flags and hunting for the right window. cliscrpy keeps track of all that for you.
Names, not serials
Run cliscrpy scan once and every phone gets a name. A phone keeps it over USB, Wi-Fi or both, and only shows up once.
Windows your WM can place
Every mirror is titled Phone-<name>, so Hyprland, sway or i3 can put each phone in the same spot every time.
Fleet actions in parallel
Install an APK, clear app data, open a deep link or run an adb shell command on every phone at once, or only on the ones you name.
Every command
Names match partially and ignore case, so pixel picks up every Pixel. Leave the name out to act on all phones. cliscrpy help <command> explains any of them.
Fleet
- install <apk> [name]
- Install or update an app on every phone
- uninstall-app <pkg> [name]
- Uninstall an app from every phone
- shot [name]
- Screenshot every phone to
~/Pictures/cliscrpy - url <url> [name]
- Open a link or deep link everywhere
- clear <pkg> [name]
- Clear an app's data for a fresh start
- run "<cmd>" [name]
- Run an
adb shellcommand and show each phone's output
Mirroring
- open [name]
- Open all phones, or the ones matching a name
- close [name]
- Close mirrors; a frozen one is force-closed after 3 s
- restart [name]
- Close and reopen mirrors
- status
- Name, serial, link, state and mirror of every phone
- record [name]
- Mirror and record to an .mp4
- logs <name>
- Last 40 lines of a phone's scrcpy log
Wireless
- wifi [name]
- Switch a USB phone to Wi-Fi, then unplug the cable
- pair <ip:port> <code>
- Pair over Wi-Fi with no cable at all (Android 11+)
- reconnect
- Bring known phones back over Wi-Fi, by mDNS or last known IP
Setup
- config
- Bitrate, resolution, audio and extra scrcpy flags
- doctor
- Check dependencies, phones, mirrors and recent errors
- update
- Update to the latest version
- uninstall [--purge]
- Remove cliscrpy, and optionally its settings
Devices
- scan
- Register connected phones by model name
- add <serial> <name>
- Register a phone with a name you choose
- rename <name> <new>
- Rename a phone and its window title
- remove <name>
- Unregister a phone
- awake <name> on|off
- Keep the screen on while mirroring
- devices
- List registered phones
Install
You need bash 4.4+, scrcpy and adb. If scrcpy or adb are missing, cliscrpy offers to install them with your package manager (pacman, apt, dnf, zypper, xbps or Homebrew).
$ curl -fsSL https://raw.githubusercontent.com/nerdcuba/cliscrpy/main/install.sh | bash
Installs cliscrpy to ~/.local/bin, with shell completions for bash, zsh and fish and a desktop launcher. Make sure ~/.local/bin is in your PATH.
$ brew install nerdcuba/tap/cliscrpy $ brew install --cask android-platform-tools
Using the curl installer instead? Run brew install bash scrcpy first. macOS ships bash 3.2, and cliscrpy switches to Homebrew's bash on its own.
$ git clone https://github.com/nerdcuba/cliscrpy.git $ cd cliscrpy && ./install.sh
Later, cliscrpy update gets the newest version and cliscrpy uninstall removes it.
On each phone
Turn on Developer options, then USB debugging, and accept the prompt the first time you plug the phone in. Then run cliscrpy scan.
Settings
# cliscrpy config → ~/.config/cliscrpy/settings.conf BITRATE=8M # 4M, 8M, 16M… MAX_SIZE=0 # 0 = native, or e.g. 1080 AUDIO=off # forward phone audio EXTRA_ARGS="" # any extra scrcpy flags
Tiling window managers
Send every phone to one workspace, or give each phone a spot of its own.
Hyprland
# hyprland.conf
windowrule = workspace 4 silent, title:^(Phone-.*)$
sway / i3
for_window [title="^Phone-"] move container to workspace 4 for_window [title="^Phone-Pixel7$"] move container to workspace 5