@signageos/cli 2.6.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +54 -0
- package/dist/Applet/Build/appletBuildCommand.d.ts +1 -2
- package/dist/Applet/Build/appletBuildCommand.js +1 -2
- package/dist/Applet/Generate/appletGenerateCommand.d.ts +1 -1
- package/dist/Applet/Generate/appletGenerateCommand.js +6 -6
- package/dist/Applet/Start/appletStartCommand.d.ts +1 -1
- package/dist/Applet/Start/appletStartCommand.js +1 -1
- package/dist/Applet/Test/Upload/appletTestRunCommand.d.ts +1 -1
- package/dist/Applet/Test/Upload/appletTestRunCommand.js +1 -1
- package/dist/Applet/Test/Upload/appletTestUploadCommand.d.ts +1 -1
- package/dist/Applet/Test/Upload/appletTestUploadCommand.js +1 -1
- package/dist/Applet/Test/appletTestCommand.d.ts +1 -1
- package/dist/Applet/Test/appletTestCommand.js +1 -1
- package/dist/Applet/Upload/appletUploadCommand.d.ts +1 -1
- package/dist/Applet/Upload/appletUploadCommand.js +1 -1
- package/dist/Applet/appletCommand.d.ts +1 -1
- package/dist/Applet/appletCommand.js +1 -1
- package/dist/Applet/appletFacade.d.ts +2 -2
- package/dist/Applet/appletFacade.js +22 -14
- package/dist/Auth/loginCommand.d.ts +3 -10
- package/dist/Auth/loginCommand.js +10 -22
- package/dist/Command/Autocomplete/Install/installAutocompleteCommand.d.ts +1 -1
- package/dist/Command/Autocomplete/Install/installAutocompleteCommand.js +1 -1
- package/dist/Command/Autocomplete/Install/installAutocompleteCommand.ts +1 -1
- package/dist/Command/Autocomplete/Uninstall/uninstallAutocompleteCommand.d.ts +1 -1
- package/dist/Command/Autocomplete/Uninstall/uninstallAutocompleteCommand.js +1 -1
- package/dist/Command/Autocomplete/autocompleteCommand.d.ts +1 -1
- package/dist/Command/Autocomplete/autocompleteCommand.js +1 -1
- package/dist/Command/commandProcessor.d.ts +1 -0
- package/dist/Command/commandProcessor.js +78 -0
- package/dist/Command/globalArgs.d.ts +0 -2
- package/dist/Command/globalArgs.js +0 -2
- package/dist/CustomScript/Generate/customScriptGenerateCommand.d.ts +32 -8
- package/dist/CustomScript/Generate/customScriptGenerateCommand.js +17 -9
- package/dist/CustomScript/Generate/customScriptGenerateFacade.d.ts +7 -5
- package/dist/CustomScript/Generate/customScriptGenerateFacade.js +81 -32
- package/dist/CustomScript/Generate/customScriptGenerateOptions.d.ts +17 -0
- package/dist/CustomScript/Generate/customScriptGenerateOptions.js +13 -0
- package/dist/CustomScript/Upload/customScriptUploadCommand.d.ts +23 -16
- package/dist/CustomScript/Upload/customScriptUploadCommand.js +26 -18
- package/dist/CustomScript/customScriptCommand.d.ts +31 -9
- package/dist/CustomScript/customScriptCommand.js +9 -7
- package/dist/CustomScript/customScriptFacade.d.ts +1 -1
- package/dist/CustomScript/customScriptFacade.js +29 -19
- package/dist/Device/Connect/connectCommand.d.ts +1 -1
- package/dist/Device/Connect/connectCommand.js +1 -1
- package/dist/Device/Content/setContentCommand.d.ts +16 -6
- package/dist/Device/Content/setContentCommand.js +23 -10
- package/dist/Device/PowerAction/powerActionCommand.d.ts +1 -1
- package/dist/Device/PowerAction/powerActionCommand.js +1 -1
- package/dist/Device/deviceCommand.d.ts +9 -1
- package/dist/Device/deviceCommand.js +1 -1
- package/dist/Device/deviceFacade.d.ts +1 -1
- package/dist/Device/deviceFacade.js +22 -17
- package/dist/Organization/Get/organizationGetCommand.d.ts +1 -1
- package/dist/Organization/Get/organizationGetCommand.js +1 -1
- package/dist/Organization/List/organizationListCommand.d.ts +1 -1
- package/dist/Organization/List/organizationListCommand.js +1 -1
- package/dist/Organization/SetDefault/organizationSetDefaultCommand.d.ts +1 -1
- package/dist/Organization/SetDefault/organizationSetDefaultCommand.js +1 -1
- package/dist/Organization/organizationCommand.d.ts +1 -1
- package/dist/Organization/organizationCommand.js +1 -1
- package/dist/Plugin/Generate/pluginGenerateCommand.d.ts +36 -2
- package/dist/Plugin/Generate/pluginGenerateCommand.js +25 -3
- package/dist/Plugin/Generate/pluginGenerateFacade.d.ts +7 -5
- package/dist/Plugin/Generate/pluginGenerateFacade.js +38 -16
- package/dist/Plugin/Generate/pluginGenerateOptions.d.ts +13 -0
- package/dist/Plugin/Generate/pluginGenerateOptions.js +20 -0
- package/dist/Plugin/Upload/pluginUploadCommand.d.ts +28 -0
- package/dist/Plugin/Upload/pluginUploadCommand.js +31 -2
- package/dist/Plugin/pluginCommand.d.ts +49 -2
- package/dist/Plugin/pluginCommand.js +31 -0
- package/dist/Plugin/pluginFacade.d.ts +1 -1
- package/dist/Plugin/pluginFacade.js +29 -19
- package/dist/Runner/Generate/runnerGenerateCommand.d.ts +36 -2
- package/dist/Runner/Generate/runnerGenerateCommand.js +25 -3
- package/dist/Runner/Generate/runnerGenerateFacade.d.ts +7 -5
- package/dist/Runner/Generate/runnerGenerateFacade.js +38 -16
- package/dist/Runner/Generate/runnerGenerateOptions.d.ts +13 -0
- package/dist/Runner/Generate/runnerGenerateOptions.js +20 -0
- package/dist/Runner/Upload/runnerUploadCommand.d.ts +28 -0
- package/dist/Runner/Upload/runnerUploadCommand.js +31 -2
- package/dist/Runner/runnerCommand.d.ts +41 -2
- package/dist/Runner/runnerCommand.js +23 -0
- package/dist/Runner/runnerFacede.d.ts +1 -1
- package/dist/Runner/runnerFacede.js +29 -19
- package/dist/Timing/List/timingListCommand.d.ts +1 -1
- package/dist/Timing/List/timingListCommand.js +1 -1
- package/dist/Timing/timingCommand.d.ts +1 -1
- package/dist/Timing/timingCommand.js +1 -1
- package/dist/index.js +2 -1
- package/docs/applet/build/index.md +1 -1
- package/docs/applet/generate/index.md +1 -1
- package/docs/applet/index.md +1 -1
- package/docs/applet/start/index.md +1 -1
- package/docs/applet/test/index.md +1 -1
- package/docs/applet/test/run/index.md +1 -1
- package/docs/applet/test/upload/index.md +1 -1
- package/docs/applet/upload/index.md +1 -1
- package/docs/autocomplete/index.md +1 -1
- package/docs/autocomplete/install/index.md +1 -1
- package/docs/autocomplete/uninstall/index.md +1 -1
- package/docs/custom-script/generate/index.md +20 -6
- package/docs/custom-script/index.md +9 -7
- package/docs/custom-script/upload/index.md +19 -14
- package/docs/device/connect/index.md +1 -1
- package/docs/device/index.md +1 -1
- package/docs/device/power-action/index.md +1 -1
- package/docs/device/set-content/index.md +12 -8
- package/docs/index.md +20 -4
- package/docs/login/index.md +2 -2
- package/docs/organization/get/index.md +1 -1
- package/docs/organization/index.md +1 -1
- package/docs/organization/list/index.md +1 -1
- package/docs/organization/set-default/index.md +1 -1
- package/docs/plugin/generate/index.md +31 -1
- package/docs/plugin/index.md +34 -1
- package/docs/plugin/upload/index.md +28 -5
- package/docs/runner/generate/index.md +31 -1
- package/docs/runner/index.md +26 -1
- package/docs/runner/upload/index.md +28 -5
- package/docs/timing/index.md +1 -1
- package/docs/timing/list/index.md +1 -1
- package/package.json +2 -2
package/docs/plugin/index.md
CHANGED
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: plugin-index
|
|
3
3
|
title: plugin
|
|
4
|
-
sidebar_position:
|
|
4
|
+
sidebar_position: 1020
|
|
5
5
|
---
|
|
6
6
|
# plugin
|
|
7
7
|
|
|
8
8
|
Plugin management
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Plugin management operations for developing and deploying signageOS plugins.
|
|
14
|
+
|
|
15
|
+
Plugins extend native signageOS features and integrate with system policies.
|
|
16
|
+
They run periodically to ensure configuration is consistently enforced on devices.
|
|
17
|
+
|
|
18
|
+
Plugins must implement `set` and `get` methods.
|
|
19
|
+
Upload reads `.sosconfig.json` for configuration.
|
|
20
|
+
|
|
11
21
|
## Usage
|
|
12
22
|
|
|
13
23
|
```bash
|
|
@@ -37,6 +47,29 @@ sos plugin upload [options]
|
|
|
37
47
|
[→ See detailed documentation](/cli/plugin/upload/)
|
|
38
48
|
|
|
39
49
|
|
|
50
|
+
## Examples
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
# Generate a new plugin project interactively
|
|
54
|
+
sos plugin generate
|
|
55
|
+
|
|
56
|
+
# Generate plugin with all parameters (non-interactive, suitable for CI/CD)
|
|
57
|
+
sos plugin generate --name my-plugin --description "Custom functionality" --yes
|
|
58
|
+
|
|
59
|
+
# Upload plugin to signageOS platform
|
|
60
|
+
sos plugin upload
|
|
61
|
+
|
|
62
|
+
# Upload plugin non-interactively (for CI/CD pipelines)
|
|
63
|
+
sos plugin upload --yes
|
|
64
|
+
|
|
65
|
+
# Upload with specific organization
|
|
66
|
+
sos plugin upload --organization-uid abc123def456
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Since
|
|
70
|
+
|
|
71
|
+
2.6.0
|
|
72
|
+
|
|
40
73
|
## Global Options
|
|
41
74
|
|
|
42
75
|
All commands support the following global options:
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: plugin-upload-index
|
|
3
3
|
title: upload
|
|
4
|
-
sidebar_position:
|
|
4
|
+
sidebar_position: 1052
|
|
5
5
|
---
|
|
6
6
|
# upload
|
|
7
7
|
|
|
8
8
|
Uploads current plugin version
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Uploads current plugin version to the signageOS platform based on configuration
|
|
14
|
+
and schema files in the current directory. Handles plugin and version management automatically.
|
|
15
|
+
|
|
16
|
+
May prompt for confirmation when creating new plugins or versions.
|
|
17
|
+
Use `--yes` to skip confirmation prompts for automated deployments.
|
|
18
|
+
|
|
11
19
|
## Usage
|
|
12
20
|
|
|
13
21
|
```bash
|
|
@@ -16,10 +24,25 @@ sos plugin upload [options]
|
|
|
16
24
|
|
|
17
25
|
## Options
|
|
18
26
|
|
|
19
|
-
| Option | Description
|
|
20
|
-
| --------------------------- |
|
|
21
|
-
| `--no-default-organization` | Prevent using the defaultOrganizationUid from ~/.sosrc (boolean)
|
|
22
|
-
| `--organization-uid` | Organization UID (string)
|
|
27
|
+
| Option | Description |
|
|
28
|
+
| --------------------------- | ------------------------------------------------------------------ |
|
|
29
|
+
| `--no-default-organization` | Prevent using the defaultOrganizationUid from ~/.sosrc (boolean) |
|
|
30
|
+
| `--organization-uid` | Organization UID (string) |
|
|
31
|
+
| `--yes` | Skip confirmation prompts for plugin or version creation (boolean) |
|
|
32
|
+
|
|
33
|
+
## Examples
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# Upload plugin from current directory
|
|
37
|
+
sos plugin upload
|
|
38
|
+
|
|
39
|
+
# Upload with specific organization, skip prompts
|
|
40
|
+
sos plugin upload --organization-uid abc123def456 --yes
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Since
|
|
44
|
+
|
|
45
|
+
2.6.0
|
|
23
46
|
|
|
24
47
|
## Global Options
|
|
25
48
|
|
|
@@ -1,19 +1,49 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: runner-generate-index
|
|
3
3
|
title: generate
|
|
4
|
-
sidebar_position:
|
|
4
|
+
sidebar_position: 1071
|
|
5
5
|
---
|
|
6
6
|
# generate
|
|
7
7
|
|
|
8
8
|
Generates a local repository for developing a Runner
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Generates a local repository for developing a Runner with boilerplate code and configuration files.
|
|
14
|
+
Sets up complete development environment with necessary dependencies and project structure.
|
|
15
|
+
|
|
16
|
+
Runs interactively by default or non-interactively with `--yes` option.
|
|
17
|
+
Requires Git to be installed and accessible.
|
|
18
|
+
|
|
11
19
|
## Usage
|
|
12
20
|
|
|
13
21
|
```bash
|
|
14
22
|
sos runner generate [options]
|
|
15
23
|
```
|
|
16
24
|
|
|
25
|
+
## Options
|
|
26
|
+
|
|
27
|
+
| Option | Description |
|
|
28
|
+
| --------------- | ----------------------------------------------------------- |
|
|
29
|
+
| `--name` | Runner name (string) |
|
|
30
|
+
| `--description` | Runner description (string) |
|
|
31
|
+
| `--yes` | Skip confirmation prompts and use provided values (boolean) |
|
|
32
|
+
|
|
33
|
+
## Examples
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# Generate runner project interactively
|
|
37
|
+
sos runner generate
|
|
38
|
+
|
|
39
|
+
# Generate non-interactively (suitable for CI/CD)
|
|
40
|
+
sos runner generate --name my-runner --description "My custom runner" --yes
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Since
|
|
44
|
+
|
|
45
|
+
2.6.0
|
|
46
|
+
|
|
17
47
|
## Global Options
|
|
18
48
|
|
|
19
49
|
All commands support the following global options:
|
package/docs/runner/index.md
CHANGED
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: runner-index
|
|
3
3
|
title: runner
|
|
4
|
-
sidebar_position:
|
|
4
|
+
sidebar_position: 1030
|
|
5
5
|
---
|
|
6
6
|
# runner
|
|
7
7
|
|
|
8
8
|
Runner management
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Runner management operations for developing and deploying signageOS runners.
|
|
14
|
+
|
|
15
|
+
Runners are designed for continuous execution as background processes on devices.
|
|
16
|
+
Once activated, they run indefinitely with active health monitoring and automatic
|
|
17
|
+
restart capabilities for stability.
|
|
18
|
+
|
|
19
|
+
Runners must implement `run`, `set`, and `get` methods.
|
|
20
|
+
Upload reads `.sosconfig.json` for configuration.
|
|
21
|
+
|
|
11
22
|
## Usage
|
|
12
23
|
|
|
13
24
|
```bash
|
|
@@ -37,6 +48,20 @@ sos runner upload [options]
|
|
|
37
48
|
[→ See detailed documentation](/cli/runner/upload/)
|
|
38
49
|
|
|
39
50
|
|
|
51
|
+
## Examples
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
# Generate new runner project
|
|
55
|
+
sos runner generate --name my-runner --description "Background service" --yes
|
|
56
|
+
|
|
57
|
+
# Upload runner to platform
|
|
58
|
+
sos runner upload --yes
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Since
|
|
62
|
+
|
|
63
|
+
2.6.0
|
|
64
|
+
|
|
40
65
|
## Global Options
|
|
41
66
|
|
|
42
67
|
All commands support the following global options:
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: runner-upload-index
|
|
3
3
|
title: upload
|
|
4
|
-
sidebar_position:
|
|
4
|
+
sidebar_position: 1072
|
|
5
5
|
---
|
|
6
6
|
# upload
|
|
7
7
|
|
|
8
8
|
Uploads current runner version
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Uploads current runner version to the signageOS platform based on configuration
|
|
14
|
+
and schema files in the current directory. Handles runner and version management automatically.
|
|
15
|
+
|
|
16
|
+
May prompt for confirmation when creating new runners or versions.
|
|
17
|
+
Use `--yes` to skip confirmation prompts for automated deployments.
|
|
18
|
+
|
|
11
19
|
## Usage
|
|
12
20
|
|
|
13
21
|
```bash
|
|
@@ -16,10 +24,25 @@ sos runner upload [options]
|
|
|
16
24
|
|
|
17
25
|
## Options
|
|
18
26
|
|
|
19
|
-
| Option | Description
|
|
20
|
-
| --------------------------- |
|
|
21
|
-
| `--no-default-organization` | Prevent using the defaultOrganizationUid from ~/.sosrc (boolean)
|
|
22
|
-
| `--organization-uid` | Organization UID (string)
|
|
27
|
+
| Option | Description |
|
|
28
|
+
| --------------------------- | ------------------------------------------------------------------ |
|
|
29
|
+
| `--no-default-organization` | Prevent using the defaultOrganizationUid from ~/.sosrc (boolean) |
|
|
30
|
+
| `--organization-uid` | Organization UID (string) |
|
|
31
|
+
| `--yes` | Skip confirmation prompts for runner or version creation (boolean) |
|
|
32
|
+
|
|
33
|
+
## Examples
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# Upload runner from current directory
|
|
37
|
+
sos runner upload
|
|
38
|
+
|
|
39
|
+
# Upload with specific organization, skip prompts
|
|
40
|
+
sos runner upload --organization-uid abc123def456 --yes
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Since
|
|
44
|
+
|
|
45
|
+
2.6.0
|
|
23
46
|
|
|
24
47
|
## Global Options
|
|
25
48
|
|
package/docs/timing/index.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signageos/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"author": "signageOS.io <dev@signageos.io>",
|
|
6
6
|
"files": [
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
18
|
"clean": "rm -rf dist/*",
|
|
19
|
-
"build": "
|
|
19
|
+
"build": "tsc && npm run build:templates && npm run docs",
|
|
20
20
|
"build:templates": "node tools/include-templates.mjs",
|
|
21
21
|
"clean-build": "npm run clean && npm run build",
|
|
22
22
|
"watch": "tsc --watch",
|