Remote TV management CLI
npm install rtv-cli
Create config file .rtvrc
in home directory:
{
"apiUrl": "http://{RTV_SERVER}:{PORT}/api"
}
For example if rtv-sever is running on http://192.168.1.2:3000
then the config file is:
{
"apiUrl": "http://192.168.1.2:3000/api"
}
rtv <command> [options]
Usage: cli <command> [options]
Remote TV management CLI
Options:
-c, --config <path> path to config file (default: ".rtvrc")
--verbose verbose output
-f, --force skip checking TV was recently used by someone else
-v, --version output the version number
-h, --help output usage information
Commands:
list [options] List all connected TVs
known [options] List all known TVs
info <ip> Get info about connected TV
dev-panel <ip> Get developer panel URL
tv-logs <ip> Connect logger to tv and get log page
browser <ip> [url] Launch TV browser with URL
up <ip> Wake up TV
free <ip> Free TV
app-install [options] <ip> <wgt|zip|path> Install app on the TV
app-pack [options] <path> <out> Pack app from path on server and write to out file. Platform is detected by out file extension: .wgt for tizen, .ipk for webOS
app-state <ip> <appId> Get state of app on TV
app-launch <ip> <appId|url> [jsonParams] Launch app on TV
app-debug [options] <ip> <appId> [jsonParams] Debug app on TV ([jsonParams] are supported only by webOS, example: rtv app-debug <ip> <appId> "{showLog: true}")
app-close <ip> <appId> Close app on TV
app-uninstall <ip> <appId> Uninstall app from TV
app-list <ip> Get all installed apps on TV
env Server environment info
status Server status
ui Run rtv web interface in browser