@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
|
@@ -59,22 +59,27 @@ const fileSystem_1 = require("../Lib/fileSystem");
|
|
|
59
59
|
const runtimeFileSystem_1 = require("@signageos/sdk/dist/Development/runtimeFileSystem");
|
|
60
60
|
const customScriptFacade_1 = require("../CustomScript/customScriptFacade");
|
|
61
61
|
const PLUGIN_BUILDS_DIRNAME = 'plugin_builds';
|
|
62
|
-
function ensureRunnerVersion(restApi, config, schema) {
|
|
62
|
+
function ensureRunnerVersion(restApi, config, schema, skipConfirmation) {
|
|
63
63
|
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
-
const runner = yield ensureRunner(restApi, config);
|
|
64
|
+
const runner = yield ensureRunner(restApi, config, skipConfirmation);
|
|
65
65
|
const runnerVersion = yield restApi.runner.version.get({ runnerUid: runner.uid, version: config.version });
|
|
66
66
|
if (runnerVersion) {
|
|
67
67
|
return runnerVersion;
|
|
68
68
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
69
|
+
if (skipConfirmation) {
|
|
70
|
+
(0, log_1.log)('info', chalk_1.default.yellow(`Creating Runner version ${config.version}`));
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
const response = yield (0, prompts_1.default)({
|
|
74
|
+
type: 'confirm',
|
|
75
|
+
name: 'newVersion',
|
|
76
|
+
message: `Do you want to create new runner version ${config.version}?`,
|
|
77
|
+
});
|
|
78
|
+
if (!response.newVersion) {
|
|
79
|
+
throw new Error('Runner version creation was canceled.');
|
|
80
|
+
}
|
|
81
|
+
(0, log_1.log)('info', chalk_1.default.yellow(`Creating Runner version ${config.version}`));
|
|
76
82
|
}
|
|
77
|
-
(0, log_1.log)('info', chalk_1.default.yellow(`Creating Runner version ${config.version}`));
|
|
78
83
|
return yield restApi.runner.version.create({
|
|
79
84
|
runnerUid: runner.uid,
|
|
80
85
|
version: config.version,
|
|
@@ -86,7 +91,7 @@ function ensureRunnerVersion(restApi, config, schema) {
|
|
|
86
91
|
});
|
|
87
92
|
});
|
|
88
93
|
}
|
|
89
|
-
function ensureRunner(restApi, config) {
|
|
94
|
+
function ensureRunner(restApi, config, skipConfirmation) {
|
|
90
95
|
return __awaiter(this, void 0, void 0, function* () {
|
|
91
96
|
if (config.uid) {
|
|
92
97
|
const runner = yield restApi.runner.get(config.uid);
|
|
@@ -100,15 +105,20 @@ function ensureRunner(restApi, config) {
|
|
|
100
105
|
}
|
|
101
106
|
throw new Error(`Runner with uid "${config.uid}" not found`);
|
|
102
107
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
if (skipConfirmation) {
|
|
109
|
+
(0, log_1.log)('info', chalk_1.default.yellow(`Creating Runner "${config.name}"`));
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
const response = yield (0, prompts_1.default)({
|
|
113
|
+
type: 'confirm',
|
|
114
|
+
name: 'create',
|
|
115
|
+
message: `Runner "${config.name}" does not exist. Do you want to create it?`,
|
|
116
|
+
});
|
|
117
|
+
if (!response.create) {
|
|
118
|
+
throw new Error('Runner upload was canceled.');
|
|
119
|
+
}
|
|
120
|
+
(0, log_1.log)('info', chalk_1.default.yellow(`Creating Runner "${config.name}"`));
|
|
110
121
|
}
|
|
111
|
-
(0, log_1.log)('info', chalk_1.default.yellow(`Creating Runner "${config.name}"`));
|
|
112
122
|
const createdRunner = yield restApi.runner.create({
|
|
113
123
|
name: config.name,
|
|
114
124
|
title: config.name,
|
|
@@ -17,7 +17,7 @@ declare const OPTION_LIST: readonly [{
|
|
|
17
17
|
* to a specific device. Timing configurations define when and how content
|
|
18
18
|
* (applets) should be displayed on devices, including scheduling and duration settings.
|
|
19
19
|
*
|
|
20
|
-
* @group Management:
|
|
20
|
+
* @group Management:31
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* ```bash
|
|
@@ -26,7 +26,7 @@ const OPTION_LIST = [organizationFacade_1.NO_DEFAULT_ORGANIZATION_OPTION, organi
|
|
|
26
26
|
* to a specific device. Timing configurations define when and how content
|
|
27
27
|
* (applets) should be displayed on devices, including scheduling and duration settings.
|
|
28
28
|
*
|
|
29
|
-
* @group Management:
|
|
29
|
+
* @group Management:31
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* ```bash
|
|
@@ -17,7 +17,7 @@ const timingListCommand_1 = require("./List/timingListCommand");
|
|
|
17
17
|
* applets are displayed on signageOS devices. Timing configurations define the
|
|
18
18
|
* relationship between devices, applets, and scheduling parameters.
|
|
19
19
|
*
|
|
20
|
-
* @group Management:
|
|
20
|
+
* @group Management:202
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
* ```bash
|
package/dist/index.js
CHANGED
|
@@ -59,5 +59,6 @@ const index = (0, commandDefinition_1.createCommandDefinition)({
|
|
|
59
59
|
// Initialize autocomplete with root command reference using dependency injection
|
|
60
60
|
(0, autocompleteCommand_1.initializeAutocomplete)(index);
|
|
61
61
|
(0, commandProcessor_1.processCommand)(index).catch((err) => {
|
|
62
|
-
|
|
62
|
+
console.error(err.message || err);
|
|
63
|
+
process.exit(1);
|
|
63
64
|
});
|
package/docs/applet/index.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: custom-script-generate-index
|
|
3
3
|
title: generate
|
|
4
|
-
sidebar_position:
|
|
4
|
+
sidebar_position: 1031
|
|
5
5
|
---
|
|
6
6
|
# generate
|
|
7
7
|
|
|
@@ -11,8 +11,9 @@ Generate a local repository for developing a Custom Script
|
|
|
11
11
|
## Description
|
|
12
12
|
|
|
13
13
|
Creates a new custom script project with boilerplate code and configuration files.
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
Generates `.sosconfig.json`, platform directories, and sample implementations.
|
|
15
|
+
|
|
16
|
+
Requires: name, description, dangerLevel (low/medium/high/critical).
|
|
16
17
|
|
|
17
18
|
## Usage
|
|
18
19
|
|
|
@@ -20,11 +21,23 @@ including necessary dependencies and project structure.
|
|
|
20
21
|
sos custom-script generate [options]
|
|
21
22
|
```
|
|
22
23
|
|
|
24
|
+
## Options
|
|
25
|
+
|
|
26
|
+
| Option | Description |
|
|
27
|
+
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
28
|
+
| `--name` | Custom script name (string) |
|
|
29
|
+
| `--description` | Custom script description (string) |
|
|
30
|
+
| `--danger-level` | Danger level - Can be one of the following: low, medium, high, critical. It represents the danger level of the Custom Script. It should be set according to the potential impact of the Custom Script on the device. (string) |
|
|
31
|
+
| `--yes` | Skip confirmation prompts and use provided values (boolean) |
|
|
32
|
+
|
|
23
33
|
## Examples
|
|
24
34
|
|
|
25
35
|
```bash
|
|
26
|
-
#
|
|
36
|
+
# Interactive generation
|
|
27
37
|
sos custom-script generate
|
|
38
|
+
|
|
39
|
+
# Non-interactive (CI/CD)
|
|
40
|
+
sos custom-script generate --name brightness-control --description "Device brightness" --danger-level low --yes
|
|
28
41
|
```
|
|
29
42
|
|
|
30
43
|
## Since
|
|
@@ -62,5 +75,6 @@ sos --profile production organization list
|
|
|
62
75
|
|
|
63
76
|
## See Also
|
|
64
77
|
|
|
65
|
-
- [
|
|
66
|
-
- [
|
|
78
|
+
- [Documentation](https://developers.signageos.io/docs/custom-scripts/)
|
|
79
|
+
- [Config File](https://developers.signageos.io/docs/custom-scripts/#config-file)
|
|
80
|
+
- [Upload command](../upload/)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: custom-script-index
|
|
3
3
|
title: custom-script
|
|
4
|
-
sidebar_position:
|
|
4
|
+
sidebar_position: 1010
|
|
5
5
|
---
|
|
6
6
|
# custom-script
|
|
7
7
|
|
|
@@ -10,9 +10,10 @@ Custom Script management
|
|
|
10
10
|
|
|
11
11
|
## Description
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
Custom Scripts management for advanced device operations.
|
|
14
|
+
|
|
15
|
+
Allows sending OS-specific scripts with native API access to signageOS devices.
|
|
16
|
+
Supports JavaScript (browser), PowerShell (Windows), Bash/Shell (Linux/Android).
|
|
16
17
|
|
|
17
18
|
## Usage
|
|
18
19
|
|
|
@@ -46,10 +47,10 @@ sos custom-script generate [options]
|
|
|
46
47
|
## Examples
|
|
47
48
|
|
|
48
49
|
```bash
|
|
49
|
-
# Generate new
|
|
50
|
+
# Generate new project
|
|
50
51
|
sos custom-script generate
|
|
51
52
|
|
|
52
|
-
# Upload
|
|
53
|
+
# Upload to platform
|
|
53
54
|
sos custom-script upload
|
|
54
55
|
```
|
|
55
56
|
|
|
@@ -93,4 +94,5 @@ sos --profile production organization list
|
|
|
93
94
|
|
|
94
95
|
## See Also
|
|
95
96
|
|
|
96
|
-
- [
|
|
97
|
+
- [Documentation](https://developers.signageos.io/docs/custom-scripts/)
|
|
98
|
+
- [Config File](https://developers.signageos.io/docs/custom-scripts/#config-file)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: custom-script-upload-index
|
|
3
3
|
title: upload
|
|
4
|
-
sidebar_position:
|
|
4
|
+
sidebar_position: 1032
|
|
5
5
|
---
|
|
6
6
|
# upload
|
|
7
7
|
|
|
@@ -10,10 +10,11 @@ Upload custom script to the signageOS platform
|
|
|
10
10
|
|
|
11
11
|
## Description
|
|
12
12
|
|
|
13
|
-
Uploads custom script code and configuration to
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
Uploads custom script code and configuration to signageOS platform from `.sosconfig.json`.
|
|
14
|
+
Creates/updates script, uploads platform-specific files, and provides script UID for execution.
|
|
15
|
+
|
|
16
|
+
May prompt for confirmation when creating new scripts or versions.
|
|
17
|
+
Use `--yes` to skip prompts for automated deployments.
|
|
17
18
|
|
|
18
19
|
## Usage
|
|
19
20
|
|
|
@@ -23,18 +24,22 @@ sos custom-script upload [options]
|
|
|
23
24
|
|
|
24
25
|
## Options
|
|
25
26
|
|
|
26
|
-
| Option | Description
|
|
27
|
-
| --------------------------- |
|
|
28
|
-
| `--no-default-organization` | Prevent using the defaultOrganizationUid from ~/.sosrc (boolean)
|
|
29
|
-
| `--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` | Allow to upload new custom script or create new version without confirmation step (boolean) |
|
|
30
32
|
|
|
31
33
|
## Examples
|
|
32
34
|
|
|
33
35
|
```bash
|
|
34
|
-
# Upload
|
|
36
|
+
# Upload interactively
|
|
35
37
|
sos custom-script upload
|
|
36
38
|
|
|
37
|
-
#
|
|
39
|
+
# Skip confirmations (CI/CD)
|
|
40
|
+
sos custom-script upload --yes
|
|
41
|
+
|
|
42
|
+
# Specific organization
|
|
38
43
|
sos custom-script upload --organization-uid abc123def456
|
|
39
44
|
```
|
|
40
45
|
|
|
@@ -73,6 +78,6 @@ sos --profile production organization list
|
|
|
73
78
|
|
|
74
79
|
## See Also
|
|
75
80
|
|
|
76
|
-
- [
|
|
77
|
-
- [
|
|
78
|
-
- [
|
|
81
|
+
- [Documentation](https://developers.signageos.io/docs/custom-scripts/)
|
|
82
|
+
- [REST API](https://developers.signageos.io/api/#tag/DeviceCustom-Script)
|
|
83
|
+
- [Generate command](../generate/)
|
package/docs/device/index.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: device-set-content-index
|
|
3
3
|
title: set-content
|
|
4
|
-
sidebar_position:
|
|
4
|
+
sidebar_position: 2013
|
|
5
5
|
---
|
|
6
6
|
# set-content
|
|
7
7
|
|
|
@@ -22,19 +22,23 @@ sos device set-content [options]
|
|
|
22
22
|
|
|
23
23
|
## Options
|
|
24
24
|
|
|
25
|
-
| Option | Description
|
|
26
|
-
| --------------------------- |
|
|
27
|
-
| `--no-default-organization` | Prevent using the defaultOrganizationUid from ~/.sosrc (boolean)
|
|
28
|
-
| `--organization-uid` | Organization UID (string)
|
|
29
|
-
| `--applet-uid` | Applet UID (string)
|
|
30
|
-
| `--device-uid` | Device UID (string)
|
|
25
|
+
| Option | Description |
|
|
26
|
+
| --------------------------- | ----------------------------------------------------------------------------------------- |
|
|
27
|
+
| `--no-default-organization` | Prevent using the defaultOrganizationUid from ~/.sosrc (boolean) |
|
|
28
|
+
| `--organization-uid` | Organization UID (string) |
|
|
29
|
+
| `--applet-uid` | Applet UID (string) |
|
|
30
|
+
| `--device-uid` | Device UID (string) |
|
|
31
|
+
| `--yes` | Skip selection prompts (requires explicit device-uid and applet-uid for safety) (boolean) |
|
|
31
32
|
|
|
32
33
|
## Examples
|
|
33
34
|
|
|
34
35
|
```bash
|
|
35
|
-
# Deploy applet to device
|
|
36
|
+
# Deploy applet to device (interactive, allows selection if multiple versions exist)
|
|
36
37
|
sos device set-content --device-uid device123 --applet-uid my-applet
|
|
37
38
|
|
|
39
|
+
# Skip selection prompts (requires explicit UIDs, fails if multiple versions)
|
|
40
|
+
sos device set-content --device-uid device123 --applet-uid my-applet --yes
|
|
41
|
+
|
|
38
42
|
# Deploy with organization override
|
|
39
43
|
sos device set-content --device-uid device123 --applet-uid my-applet --organization-uid org456
|
|
40
44
|
```
|
package/docs/index.md
CHANGED
|
@@ -73,6 +73,14 @@ access to all available command groups.
|
|
|
73
73
|
|
|
74
74
|
## Commands
|
|
75
75
|
|
|
76
|
+
### Authentication
|
|
77
|
+
|
|
78
|
+
#### `sos login`
|
|
79
|
+
|
|
80
|
+
Authenticate user with signageOS
|
|
81
|
+
|
|
82
|
+
[→ See detailed documentation](/cli/login/)
|
|
83
|
+
|
|
76
84
|
### Development
|
|
77
85
|
|
|
78
86
|
#### `sos applet`
|
|
@@ -91,13 +99,21 @@ Custom Script management
|
|
|
91
99
|
|
|
92
100
|
[→ See detailed documentation](/cli/custom-script/)
|
|
93
101
|
|
|
94
|
-
|
|
102
|
+
#### `sos plugin`
|
|
95
103
|
|
|
96
|
-
|
|
104
|
+
Plugin management
|
|
97
105
|
|
|
98
|
-
|
|
106
|
+
**Available commands**: `sos plugin generate`, `sos plugin upload`
|
|
99
107
|
|
|
100
|
-
[→ See detailed documentation](/cli/
|
|
108
|
+
[→ See detailed documentation](/cli/plugin/)
|
|
109
|
+
|
|
110
|
+
#### `sos runner`
|
|
111
|
+
|
|
112
|
+
Runner management
|
|
113
|
+
|
|
114
|
+
**Available commands**: `sos runner generate`, `sos runner upload`
|
|
115
|
+
|
|
116
|
+
[→ See detailed documentation](/cli/runner/)
|
|
101
117
|
|
|
102
118
|
### Management
|
|
103
119
|
|
package/docs/login/index.md
CHANGED
|
@@ -11,8 +11,8 @@ Authenticate user with signageOS
|
|
|
11
11
|
## Description
|
|
12
12
|
|
|
13
13
|
Handles user authentication using username/email and password credentials.
|
|
14
|
-
Supports
|
|
15
|
-
|
|
14
|
+
Supports Auth0 authentication method. Stores credentials securely in the
|
|
15
|
+
~/.sosrc configuration file for subsequent CLI operations.
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
@@ -1,19 +1,49 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: plugin-generate-index
|
|
3
3
|
title: generate
|
|
4
|
-
sidebar_position:
|
|
4
|
+
sidebar_position: 1051
|
|
5
5
|
---
|
|
6
6
|
# generate
|
|
7
7
|
|
|
8
8
|
Generates a local repository for developing a Plugin
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Generates a local repository for developing a Plugin 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 plugin generate [options]
|
|
15
23
|
```
|
|
16
24
|
|
|
25
|
+
## Options
|
|
26
|
+
|
|
27
|
+
| Option | Description |
|
|
28
|
+
| --------------- | ----------------------------------------------------------- |
|
|
29
|
+
| `--name` | Plugin name (string) |
|
|
30
|
+
| `--description` | Plugin description (string) |
|
|
31
|
+
| `--yes` | Skip confirmation prompts and use provided values (boolean) |
|
|
32
|
+
|
|
33
|
+
## Examples
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# Generate plugin project interactively
|
|
37
|
+
sos plugin generate
|
|
38
|
+
|
|
39
|
+
# Generate non-interactively (suitable for CI/CD)
|
|
40
|
+
sos plugin generate --name my-plugin --description "My custom plugin" --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:
|