You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Custom commands allows you to add additional menu items that speed up your workflow. If you have a command that you execute regularly through terminal you can convert it to custom command and make your life easier.
4
+
5
+
Some examples of custom commands:
6
+
7
+
- Execute a sequence of clicks to log into your app
8
+
- Reverse Android emulator port (for React Native)
9
+
- Open iOS deep link
10
+
- Open Logcat
11
+
12
+
## Creating your first command
13
+
14
+
1. Go to Preferences > Commands > Add new
15
+
2. Assign a name
16
+
3. Write custom command
17
+
18
+
For Android you will most likely use ADB:
19
+
20
+
```sh
21
+
$adb_path -s $adb_id reverse tcp:8081 tcp:8081
22
+
```
23
+
24
+
You can find available variables that you can use based on selected toggles if command needs booted device or not.
25
+
26
+
Let's break down the command:
27
+
28
+
-`$adb_path` - absolute path of the ADB utility
29
+
-`-s $adb_id` - executes command on emulator with a given ID (useful when you have multiple emulators running)
30
+
-`reverse tcp:8081 tcp:8081` rest of the ADB command. Run `adb --help` to check out what can be done.
31
+
32
+
For iOS you will most likely use `xcrun simctl` utility:
0 commit comments