Remote Terminal

Perform remote terminal with CLI (Command Line Interface)

Steps to Use Remote Terminal
  • Administrators login Vanguard dashboard and go to the user’s device details page and on the device details page select the tab Remote Terminal

Remote Terminal

  • In order to connect with the remote device, type connect on the terminal.

Connect

  • Some of the commands used after the device is connected are as follows:
list
Showed list of command available in remote terminal
exit
Disconnecting remote terminal
ls
To see what is inside in current directory
mkdir [directory]
example : mkdir /sdcard/some_folder
Provides background service action of vanguard like clear pending download queue,restart background service, terminate vanguard application, show vanguard version and clear all worker
mv [current directory] [new directory]
example : mv /storage/emulated/0/file_name.txt /storage/emulated/0/DCIM/
To move a file to other directory
remove [directory]
example : remove /storage/emulated/0/file_name.txt
To remove file or folder
pwd
To show current directory you are in
touch [file_name]
example : touch file_name.txt
To create a file in current directory
unzip -z [directory]
example : unzip -z /Download/file_name.zip
To unzip Zip file to a given directory
zip -i [file directory] -o [file directory]
example : zip -i /DCIM/screenshots/file_name.txt -o Download/file_name
To zip file or folder from directory given by user
alert -t [alert_title] [alert message]
example : alert -t Test This_is_message
To show an alert dialog in device
cd [directory]
example : cd /sdcard/
Change directory
get [url]
example : get https://file.xyz/tes.apk
Download apk using vanguard application method
info
example : info -a
To show imei, device is root / not, battery, storage, storage, network
notification
Provides notification on the device
ls
To browse the directory on the device
pwd
To display the name of the directory where you are currently on the device
cd
To move to another directory on the device
rm
To delete files on the device
install
Perform installation of APK files on the device
uninstall
Uninstall apps on the device
download
Download files from remote server to device
start_app
Give commands to the device to open an application
stop_app
Gives a command to the device to close an application
logcat
To display log messages on the device
zip
Zip the ZIP file on the device
unzip
Unzip the ZIP file on the device