Skip to content

Latest commit

 

History

History
81 lines (61 loc) · 2.24 KB

File metadata and controls

81 lines (61 loc) · 2.24 KB

ruishi

Terminal Enhancement Tool, inspired by Swiss Army Knife, ruishi is it's chinese name

oclif Version Downloads/week

Installation

$ npm install -g ruishi

Prerequisites

You need to install: adb and scrcpy in advance.

On macOS, install adb and scrcpy via brew:

$ brew install scrcpy
# https://zhuanlan.zhihu.com/p/662190715
$ brew install android-platform-tools

Commands

ruishi adb tv

Record Android device screen using scrcpy

Click to expand for details
USAGE
  $ ruishi adb tv [--audio] [--display]

FLAGS
  --[no-]audio    Whether to include audio during recording
  --[no-]display  Whether to display the screen during recording

DESCRIPTION
  Record Android device screen using scrcpy

EXAMPLES
  $ ruishi adb tv
  Start recording, video will be saved in the current directory

  $ ruishi adb tv --no-display
  Start recording without displaying the screen, video will be saved in the current directory

  $ ruishi adb tv --no-audio
  Start recording without audio, video will be saved in the current directory

See code: src/commands/adb/tv.ts

ruishi-proxy

Set proxy for your Android device via adb. Please make sure:

  1. adb is installed
  2. You have installed the certificate via proxyman/charles/fiddler or similar tools
Click to expand for details
Usage
  $ ruishi-proxy on [port] # Enable proxy, default port is 9090
  $ ruishi-proxy off # Disable proxy