Skip to content

Commit

Permalink
Update Document:
Browse files Browse the repository at this point in the history
webOS Studio v2.0.0과 CLI v3.0.0 배포를 위한 콘텐츠 업데이트
http://clm.lge.com/issue/browse/SWDD-245301
http://clm.lge.com/issue/browse/SWDD-246001
  • Loading branch information
mibu82 committed Mar 4, 2024
1 parent bec86ac commit 88c7647
Show file tree
Hide file tree
Showing 55 changed files with 708 additions and 48 deletions.
2 changes: 1 addition & 1 deletion content/en/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="news-line">
<div class="container">
<div class="tag">News</div>
<a href="{{< relref "2024-01-17-webos-ose-2-25-0-release" >}}">webOS OSE 2.25.0 has been released!</a>
<a href="{{< relref "vs-code-extension" >}}">webOS Studio v2.0.0 and CLI v3.0.0 have been released!</a>
</div>
</div>
<div class="container">
Expand Down
28 changes: 25 additions & 3 deletions content/en/docs/tools/sdk/cli/cli-release-notes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Release Notes
display_title: Command-Line Interface Release Notes
date: 2024-01-24
date: 2024-03-04
weight: 20
toc: true
two_depth_toc: true
Expand Down Expand Up @@ -42,8 +42,12 @@ The following table shows the compatibility between webOS OSE and CLI.
</thead>
<tbody>
<tr>
<td class="middle-border-left" rowspan="8" ><p>2.4.0</p></td>
<td><p>2.25.0</p></td>
<td class="middle-border-left"><p>3.0.0</p></td>
<td style="border-bottom: none;"><p>2.25.0</p></td>
</tr>
<tr>
<td class="middle-border-left" rowspan="8"><p>2.4.0</p></td>
<td><p style="visibility: hidden;">dummy text</p></td>
</tr>
<tr>
<td><p>2.24.0</p></td>
Expand Down Expand Up @@ -132,6 +136,24 @@ The following table shows the compatibility between webOS OSE and CLI.
</table>
</div>

## v3.0.0 (March 2024)

This version is compatible with **webOS OSE 2.25.0**. See below for the new and changed features in this release.

* Moved repository from @webosose/ares-cli to [@webos-tools/cli](https://github.com/webos-tools/cli).
* Integrated with the webOS TV CLI. In the future, we plan to support multiple webOS platforms with a single CLI.
* Added profiles for changing support platforms, default profile is `tv`. Each profile has different supported commands, options, help, and templates.

### New features

* Supports Node.js v16.20.2.
* Added a new command, `ares-config`. For more details, see [CLI User Guide]({{< relref "cli-user-guide" >}}).
* Supports to live reloading using `ares-launch --hosted` option.

### Fixed issues

* Fixed to minify by default for JavaScript files in service directory when using `ares-package`.

## v2.4.0 (February 2023)

This version is compatible with **webOS OSE 2.19.1** ~ **webOS OSE 2.25.0**. See below for the new and changed features in this release.
Expand Down
179 changes: 160 additions & 19 deletions content/en/docs/tools/sdk/cli/cli-user-guide.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
---
title: User Guide
display_title: Command-Line Interface User Guide
date: 2023-05-24
date: 2024-02-13
weight: 10
toc: true
---

**Command-Line Interface (CLI)** of webOS Open Source Edition (OSE) provides a collection of commands used for creating, packaging, installing, and launching apps or services in the command line environment. CLI lets you develop and test apps or services without using any IDE.

{{< note >}}
The npm package name of the CLI has been changed (from `@webosose/ares-cli` to `@webos-tools/cli`) since v3.0.0 (March 4, 2024). See [How to Install](#how-to-install).
{{< /note >}}

## Key Features

CLI provides necessary functionality throughout the entire web app development process, from app creation to debugging and testing. The following figure shows CLI commands that can be used during each stage of the development process.
Expand Down Expand Up @@ -60,7 +64,7 @@ Required version for each operating system are as follows:
<tbody>
<tr>
<td><p>Linux</p></td>
<td><p>Ubuntu 18.04 LTS 64-bit</p></td>
<td><p>Ubuntu 20.04 LTS 64-bit</p></td>
</tr>
<tr>
<td><p>macOS</p></td>
Expand All @@ -76,14 +80,14 @@ Required version for each operating system are as follows:

### Software Tools

* Node.js (Use v10.24.1 to v14.15.1.)
* Node.js (Use v14.15.1 to v16.20.2)
* npm

## How to Install

CLI can be installed using Node Package Manager (npm).

### npm Istallation
### Step 01. Installing npm

Before installing the CLI, ensure that Node.js and npm are installed on your system. If they are not installed, refer to the following instructions.

Expand All @@ -107,35 +111,45 @@ Execute the following command to verify if the npm is available on your system.
npm -v
```

### CLI Installation
### Step 02. Installing CLI

Execute the following command in a terminal, using the `-g` option to install the CLI globally.
{{< caution >}}
If the CLI is already installed globally, we highly recommend uninstalling the previous CLI globally.

```bash
npm install -g @webosose/ares-cli
# Uninstall the CLI globally
$ npm uninstall -g @webosose/ares-cli
```

{{< note >}}
On Linux and macOS, this operation may require superuser privileges.
Therefore, it is recommended that you either switch to a superuser or use the `sudo` at the beginning of the the command.
```bash
# Verify whether uninstalled the previous CLI
$ ares --version
ares: command not found
```
{{< /caution >}}

```shell
# Switch to the superuser and excecute the command.
$ sudo -s
$ npm install -g @webosose/ares-cli
Execute the following command in a terminal, using the `-g` option to install the CLI globally. For Linux and macOS users, the `sudo` privilege might be required.

# Or, excecute the command with sudo.
$ sudo npm install -g @webosose/ares-cli
```bash
npm install -g @webos-tools/cli
```

{{< /note >}}

Verify the installation by checking its version. Check if the version matches with the latest version of [CLI npm package](https://www.npmjs.com/package/@webosose/ares-cli).
Verify the installation by checking its version. Check if the version matches with the latest version of [CLI npm package](https://www.npmjs.com/package/@webos-tools/cli).

```bash
ares --version
```

### Step 03. Setting Up the OSE Profile

CLI supports multi-webOS platforms since v3.0.0 (default profile: `tv`). To use the CLI on webOS OSE, you **MUST change** your profile to `ose`.

To set up the profile, enter the following command:

``` shell
$ ares-config --profile ose
```

## How to Use

With the CLI, you can develop various types of external apps or services. For detailed instructions, refer to the each tutorial.
Expand Down Expand Up @@ -196,6 +210,10 @@ The following table shows the available CLI commands.
</tr>
</thead>
<tbody>
<tr>
<td><p><a href="#ares-config">ares-config</a></p></td>
<td><p>Configures webOS CLI.</p></td>
</tr>
<tr>
<td><p><a href="#ares">ares</a></p></td>
<td><p>Provides the help menu for using the <code>ares</code> commands.</p></td>
Expand Down Expand Up @@ -252,6 +270,129 @@ The following table shows the available CLI commands.
</table>
</div>

### ares-config

This command configures the CLI profile. You can change the profile at any time.

#### History

<div class="table-container">
<table class="table is-bordered is-fullwidth">
<thead>
<tr class="header">
<th style="width:15%"><p>Version</p></th>
<th><p>Changes</p></th>
</tr>
</thead>
<tbody>
<tr>
<td><p>v3.0.0</p></td>
<td><p>Added in.</p></td>
</tr>
</tbody>
</table>
</div>

#### Usages

```shell
ares-config

ares-config --profile|-p DEVICE_PROFILE

ares-config --profile-details|-c

ares-config --version|-V

ares-config --help|-h
```

#### Options

<div class="table-container">
<table class="table is-bordered is-fullwidth">
<thead>
<tr class="header">
<th style="width:15%"><p>Option</p></th>
<th><p>Parameter</p></th>
<th><p>Description</p></th>
</tr>
</thead>
<tbody>
<tr>
<td><p>-p, --profile</p></td>
<td><p>DEVICE_PROFILE</p></td>
<td><p>Specifies the CLI profile.</p></td>
</tr>
<tr>
<td><p>-c, --profile-details</p></td>
<td><p>None</p></td>
<td>
<p>Prints current configured profile.</p>
</tr>
<tr>
<td><p>-h, --help</p></td>
<td><p>None</p></td>
<td><p>Prints help messages.</p></td>
</tr>
<tr>
<td><p>-V, --version</p></td>
<td><p>None</p></td>
<td><p>Prints the version of CLI.</p></td>
</tr>
<tr>
<td><p>-v</p></td>
<td><p>None</p></td>
<td><p>Prints verbose output.</p></td>
</tr>
<tr>
<td><p>--level</p></td>
<td><p>LEVEL</p></td>
<td><p>Sets the level of logs as <code>LEVEL</code> and prints the logs.</p></td>
</tr>
</tbody>
</table>
</div>

#### Parameters

<div class="table-container">
<table class="table is-bordered is-fullwidth">
<thead>
<tr class="header">
<th><p>Parameter</p></th>
<th><p>Description</p></th>
</tr>
</thead>
<tbody>
<tr>
<td><p>DEVICE_PROFILE</p></td>
<td><p>A profile of the target device. Possible values are as follows:<ul><li>tv (default, for webOS TV)</li><li>ose</li></ul></p></td>
</tr>
<tr>
<td><p>LEVEL</p></td>
<td><p>A priority of logs (e.g., silly, verbose, info, warn, error)</p></td>
</tr>
</tbody>
</table>
</div>

#### Examples

Here are some examples of the different uses:

* Configure profile for platform (ose)

``` shell
ares-config -p ose
```

* Currently configured profile

``` shell
ares-config -c
```

### ares

This command provides the help menu for using the `ares` commands.
Expand Down
4 changes: 1 addition & 3 deletions content/en/docs/tools/sdk/sdk-download.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "SDK Download"
date: 2023-11-17
date: 2024-03-04
weight: 10
file_download: true
toc: true
Expand All @@ -10,8 +10,6 @@ This page describes how to install webOS Open Source Edition (OSE) SDKs.

## Command-Line Interface

* Version: v2.4.0

Command Line Interface (CLI) is installed using `npm`. For more information, see [CLI User Guide]({{< relref "cli-user-guide" >}}).

## Visual Studio Code Extension
Expand Down
Loading

0 comments on commit 88c7647

Please sign in to comment.