
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@webos-tools/cli
Advanced tools
@webos-tools/cli is a Command-Line Interface (CLI) for webOS. It provides a collection of commands for creating, packaging, installing, and launching webOS apps or services in a command-line environment. With @webos-tools/cli, you can develop and test your app or service without using any IDE.
We moved here from @webosose/ares-cli. In the future, we plan to develop and maintain a single webOS CLI here to support webOS.
We are releasing a single CLI that supports both webOS OSE and webOS TV through this released CLI (v3.0.0). You can switch to CLI for OSE or TV by installing one CLI and changing only the profile. For more details, see Profile Settings.
From the released CLI (v3.1.2) we integrated CLI commands for webOS APOLLO. You can switch to CLI for APOLLO by changing only the profile to apollo.
From the released CLI (v3.2.0) we integrated CLI commands for webOS SIGNAGE. You can switch to CLI for SIGNAGE by changing only the profile to signage.
[!IMPORTANT] If @webosose/ares-cli is installed globally, uninstall it before install globally @webos-tools/cli.
# Uninstall globally @webosose/ares-cli $ npm uninstall -g @webosose/ares-cli# Check whether uninstall @webosose/ares-cli $ ares -V ares: command not found
The @webos-tools/cli is installed using npm.
Note: @webos-tools/cli was tested on Node.js v14.15.1 and v16.20.2.
You can install @webos-tools/cli using the following command. We recommend installing it globally. For Linux and macOS, you might need the sudo command.
$ npm install -g @webos-tools/cli
You can change the profile to tv, ose, apollo or signage. The default profile is tv (webOS TV).
$ ares-config --profile ose
profile and config data is changed to ose
You can change the profile at any time while using the CLI by using the above command.
The release cycle of @webos-tools/cli is independent from that of webOS OSE or webOS TV. The latest CLI is compatible with the latest webOS OSE and webOS TV. So, we recommend using the latest version of CLI.
If you want to use previous version of CLI, check the compatibility table for each platform.
The following table shows a list supported commands. For more details, refer to user guides in Documentation.
| Command | Description | OSE | TV | APOLLO | SIGNAGE |
|---|---|---|---|---|---|
| ares-config | Configures webOS CLI. | v | v | v | v |
| ares | Displays the help information for ares commands. | v | v | v | v |
| ares-generate | Creates a webOS app or service from templates. | v | v | v | v |
| ares-package | Packages the app or services into a package file. | v | v | v | v |
| ares-setup-device | Manages the target devices. | v | v | v | v |
| ares-novacom | Command Line Tool to control the device. | v | v | ||
| ares-install | Installs the app or service on the target device. | v | v | v | v |
| ares-launch | Launches or terminates the app. | v | v | v | v |
| ares-inspect | Enables Web Inspector or Node's Inspector for debugging web app or JS service. | v | v | v | v |
| ares-server | Runs the Web server for testing local app file. | v | v | v | v |
| ares-shell | Executes shell commands in the target device. | v | v | ||
| ares-push | Pushes file(s) from a host machine to a target device. | v | v | ||
| ares-pull | Pulls file(s) from a target device to a host machine. | v | v | ||
| ares-device | Displays the device information. | v | v | v | |
| ares-log | Shows or saves logs of webOS apps and services. | v | v |
For ose profile:
For tv profile:
For signage profile:
You can test the @webos-tools/cli commands and their options to check their validity. Tests are performed by jasmine.
The following table lists the default configurations for the test.
| Parameter | Value |
|---|---|
| profile | ose |
| device | emulator |
| ip | 127.0.0.1 |
| port | 6622 |
Test with default configurations.
$ jasmine
or
$ jasmine --profile=ose --device=emulator --ip=127.0.0.1 --port=6622
Test with specific configurations. (The port number can be omitted when using port 22.)
$ jasmine --profile=ose --device=webOSOSE --ip=192.168.0.12
Test with specific port configurations.
$ jasmine --profile=ose --device=webOSOSE --ip=192.168.0.12 --port=24
Test ares-generate command.
$ jasmine --profile=ose --device=webOSOSE --ip=192.168.0.12 --port=24 spec/jsSpec/ares-generate.js
Test the tv profile. passPhrase must be entered as an input parameter. See Turning Developer Mode on.
$ jasmine --profile=tv --device=webOSTV --ip=192.168.0.12 --port=9922 --passPhrase=AB12CD
You can contribute your source codes to our repository.
The step-by-step guide is as follows:
git push the changes to the new branch.The following is an example of the pull reqeust description
Change ares-device-info to ares-device
:Release Notes:
Expand the scope of ares-device-info command by changing its name
:Detailed Notes:
For now, the scope of the ares-device-info command seems to narrow,
so it is hard to add other options to the command (such as capture)
- Rename ares-device-info.js to ares-device.js
- Add --system-info and --session-info options
- Update ares-device TC
:Testing Performed:
1. All unit test passed
2. ESLint done
3. Check the below commands
$ ares-device
$ ares-device --system-info
$ ares-device --session-info
:Issues Addressed:
[ISSUE-1] Change ares-device-info to ares-device
jasmine on the target device or emulator and write the result. All unit tests must be passed.eslint on @webos-tools/cli root directory and write the result. No warning or error would be allowed.Unless otherwise specified, all content, including all source code files and documentation files in this repository are:
Copyright (c) 2020-2024 LG Electronics, Inc.
All content, including all source code files and documentation files in this repository except otherwise noted are:
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
SPDX-License-Identifier: Apache-2.0
FAQs
Command Line Interface for development webOS application and service
The npm package @webos-tools/cli receives a total of 3,945 weekly downloads. As such, @webos-tools/cli popularity was classified as popular.
We found that @webos-tools/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.