@signageos/cli 2.4.0 → 2.5.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 +27 -1
- package/dist/Applet/Build/appletBuildCommand.d.ts +28 -2
- package/dist/Applet/Build/appletBuildCommand.js +27 -1
- package/dist/Applet/Generate/Templates/index.js.template +1 -1
- package/dist/Applet/Generate/Templates/tsconfig.js.template +1 -1
- package/dist/Applet/Generate/appletGenerateCommand.d.ts +29 -23
- package/dist/Applet/Generate/appletGenerateCommand.js +37 -31
- package/dist/Applet/Start/appletStartCommand.d.ts +44 -2
- package/dist/Applet/Start/appletStartCommand.js +44 -2
- package/dist/Applet/Test/Upload/appletTestRunCommand.d.ts +25 -2
- package/dist/Applet/Test/Upload/appletTestRunCommand.js +24 -1
- package/dist/Applet/Test/Upload/appletTestUploadCommand.d.ts +34 -4
- package/dist/Applet/Test/Upload/appletTestUploadCommand.js +32 -2
- package/dist/Applet/Test/appletTestCommand.d.ts +23 -6
- package/dist/Applet/Test/appletTestCommand.js +17 -0
- package/dist/Applet/Upload/appletUploadCommand.d.ts +46 -4
- package/dist/Applet/Upload/appletUploadCommand.js +44 -2
- package/dist/Applet/Upload/appletUploadFacade.js +3 -3
- package/dist/Applet/appletCommand.d.ts +42 -10
- package/dist/Applet/appletCommand.js +33 -1
- package/dist/Auth/loginCommand.d.ts +23 -2
- package/dist/Auth/loginCommand.js +42 -14
- package/dist/Command/Autocomplete/Install/installAutocompleteCommand.d.ts +17 -0
- package/dist/Command/Autocomplete/Install/installAutocompleteCommand.js +17 -0
- package/dist/Command/Autocomplete/Install/installAutocompleteCommand.ts +17 -0
- package/dist/Command/Autocomplete/Uninstall/uninstallAutocompleteCommand.d.ts +17 -0
- package/dist/Command/Autocomplete/Uninstall/uninstallAutocompleteCommand.js +22 -5
- package/dist/Command/Autocomplete/autocompleteCommand.d.ts +18 -0
- package/dist/Command/Autocomplete/autocompleteCommand.js +19 -1
- package/dist/Command/autoComplete.js +2 -2
- package/dist/Command/globalArgs.d.ts +33 -0
- package/dist/Command/globalArgs.js +33 -0
- package/dist/CustomScript/Generate/customScriptGenerateCommand.d.ts +19 -0
- package/dist/CustomScript/Generate/customScriptGenerateCommand.js +20 -1
- package/dist/CustomScript/Upload/customScriptUploadCommand.d.ts +32 -2
- package/dist/CustomScript/Upload/customScriptUploadCommand.js +31 -1
- package/dist/CustomScript/customScriptCommand.d.ts +21 -1
- package/dist/CustomScript/customScriptCommand.js +20 -0
- package/dist/Device/Connect/connectCommand.d.ts +51 -2
- package/dist/Device/Connect/connectCommand.js +50 -1
- package/dist/Device/Content/setContentCommand.d.ts +28 -2
- package/dist/Device/Content/setContentCommand.js +27 -1
- package/dist/Device/PowerAction/powerActionCommand.d.ts +54 -2
- package/dist/Device/PowerAction/powerActionCommand.js +52 -0
- package/dist/Device/deviceCommand.d.ts +26 -6
- package/dist/Device/deviceCommand.js +21 -1
- package/dist/Device/deviceFacade.d.ts +1 -1
- package/dist/Firmware/Upload/firmwareUploadCommand.d.ts +42 -0
- package/dist/Firmware/Upload/firmwareUploadCommand.js +40 -6
- package/dist/Firmware/Upload/firmwareUploadFacade.js +1 -1
- package/dist/Firmware/firmwareCommand.d.ts +25 -0
- package/dist/Firmware/firmwareCommand.js +18 -1
- package/dist/Lib/childProcess.js +2 -2
- package/dist/Organization/Get/organizationGetCommand.d.ts +31 -2
- package/dist/Organization/Get/organizationGetCommand.js +31 -2
- package/dist/Organization/List/organizationListCommand.d.ts +20 -0
- package/dist/Organization/List/organizationListCommand.js +21 -1
- package/dist/Organization/SetDefault/organizationSetDefaultCommand.d.ts +24 -0
- package/dist/Organization/SetDefault/organizationSetDefaultCommand.js +25 -1
- package/dist/Organization/organizationCommand.d.ts +27 -2
- package/dist/Organization/organizationCommand.js +26 -1
- package/dist/Organization/organizationFacade.d.ts +2 -2
- package/dist/Organization/organizationFacade.js +3 -3
- package/dist/Timing/List/timingListCommand.d.ts +26 -2
- package/dist/Timing/List/timingListCommand.js +26 -2
- package/dist/Timing/timingCommand.d.ts +17 -2
- package/dist/Timing/timingCommand.js +15 -0
- package/dist/helper.d.ts +5 -5
- package/dist/helper.js +4 -6
- package/dist/index.js +23 -1
- package/docs/applet/build/index.md +74 -0
- package/docs/applet/generate/index.md +118 -0
- package/docs/applet/index.md +134 -0
- package/docs/applet/start/index.md +104 -0
- package/docs/applet/test/index.md +91 -0
- package/docs/applet/test/run/index.md +82 -0
- package/docs/applet/test/upload/index.md +80 -0
- package/docs/applet/upload/index.md +131 -0
- package/docs/autocomplete/index.md +92 -0
- package/docs/autocomplete/install/index.md +120 -0
- package/docs/autocomplete/uninstall/index.md +65 -0
- package/docs/custom-script/generate/index.md +66 -0
- package/docs/custom-script/index.md +96 -0
- package/docs/custom-script/upload/index.md +78 -0
- package/docs/device/connect/index.md +148 -0
- package/docs/device/index.md +105 -0
- package/docs/device/power-action/index.md +130 -0
- package/docs/device/set-content/index.md +72 -0
- package/docs/index.md +168 -0
- package/docs/login/index.md +122 -0
- package/docs/organization/get/index.md +79 -0
- package/docs/organization/index.md +105 -0
- package/docs/organization/list/index.md +65 -0
- package/docs/organization/set-default/index.md +74 -0
- package/docs/timing/index.md +78 -0
- package/docs/timing/list/index.md +71 -0
- package/package.json +29 -19
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: applet-index
|
|
3
|
+
title: applet
|
|
4
|
+
sidebar_position: 20
|
|
5
|
+
---
|
|
6
|
+
# applet
|
|
7
|
+
|
|
8
|
+
Applet development and management operations
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Provides comprehensive commands for the complete applet development lifecycle including
|
|
14
|
+
project generation, development, building, testing, uploading, and deployment to signageOS devices.
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
sos applet <subcommand> [options]
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Subcommands
|
|
23
|
+
|
|
24
|
+
### generate
|
|
25
|
+
|
|
26
|
+
Generate new signageOS applet projects with boilerplate code
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
sos applet generate [options]
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[→ See detailed documentation](generate/)
|
|
33
|
+
|
|
34
|
+
### upload
|
|
35
|
+
|
|
36
|
+
Uploads current applet version
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
sos applet upload [options]
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[→ See detailed documentation](upload/)
|
|
43
|
+
|
|
44
|
+
### start
|
|
45
|
+
|
|
46
|
+
Start local applet development server with live preview
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
sos applet start [options]
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
[→ See detailed documentation](start/)
|
|
53
|
+
|
|
54
|
+
### test
|
|
55
|
+
|
|
56
|
+
Applet test management
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
sos applet test <subcommand> [options]
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
[→ See detailed documentation](test/)
|
|
63
|
+
|
|
64
|
+
### build
|
|
65
|
+
|
|
66
|
+
Build applet locally for production deployment.
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
sos applet build [options]
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
[→ See detailed documentation](build/)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
## Examples
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
# Create new applet project
|
|
79
|
+
sos applet generate --name my-applet
|
|
80
|
+
|
|
81
|
+
# Start development server
|
|
82
|
+
sos applet start
|
|
83
|
+
|
|
84
|
+
# Build for production
|
|
85
|
+
sos applet build
|
|
86
|
+
|
|
87
|
+
# Upload to platform
|
|
88
|
+
sos applet upload
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Since
|
|
92
|
+
|
|
93
|
+
0.1.0
|
|
94
|
+
|
|
95
|
+
## Global Options
|
|
96
|
+
|
|
97
|
+
All commands support the following global options:
|
|
98
|
+
|
|
99
|
+
| Option | Alias | Description |
|
|
100
|
+
|--------|-------|-------------|
|
|
101
|
+
| `--help` | `-h` | Display help information for any command |
|
|
102
|
+
| `--version` | `-v` | Display the installed version of the CLI |
|
|
103
|
+
| `--api-url` | `-u` | Override the API URL for REST requests |
|
|
104
|
+
| `--profile` | | Use a specific profile from ~/.sosrc config |
|
|
105
|
+
|
|
106
|
+
### Examples
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
# Show version
|
|
110
|
+
sos --version
|
|
111
|
+
|
|
112
|
+
# Get help for any command
|
|
113
|
+
sos applet --help
|
|
114
|
+
sos applet upload --help
|
|
115
|
+
|
|
116
|
+
# Use custom API endpoint
|
|
117
|
+
sos --api-url https://api.example.com applet upload
|
|
118
|
+
|
|
119
|
+
# Use specific profile
|
|
120
|
+
sos --profile production organization list
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
## Related Commands
|
|
125
|
+
|
|
126
|
+
- [`sos applet generate`](generate/) - Generate new signageOS applet projects with boilerplate code
|
|
127
|
+
- [`sos applet upload`](upload/) - Uploads current applet version
|
|
128
|
+
- [`sos applet start`](start/) - Start local applet development server with live preview
|
|
129
|
+
- [`sos applet test`](test/) - Applet test management
|
|
130
|
+
- [`sos applet build`](build/) - Build applet locally for production deployment.
|
|
131
|
+
|
|
132
|
+
## See Also
|
|
133
|
+
|
|
134
|
+
- [Applet Documentation](https://developers.signageos.io/docs/applets/)
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: applet-start-index
|
|
3
|
+
title: start
|
|
4
|
+
sidebar_position: 23
|
|
5
|
+
---
|
|
6
|
+
# start
|
|
7
|
+
|
|
8
|
+
Start local applet development server with live preview
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Starts a local development server with hot reload functionality, allowing developers
|
|
14
|
+
to preview their applets in a browser-based emulator. Supports both local development
|
|
15
|
+
and device connection for testing on actual signageOS devices.
|
|
16
|
+
|
|
17
|
+
:::tip Remarks
|
|
18
|
+
The development server provides a browser-based emulator accessible at http://localhost:8090
|
|
19
|
+
by default. Hot reload automatically refreshes the emulator when source code changes.
|
|
20
|
+
:::
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
sos applet start [options]
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Options
|
|
29
|
+
|
|
30
|
+
| Option | Description | Default |
|
|
31
|
+
| --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
|
|
32
|
+
| `--no-default-organization` | Prevent using the defaultOrganizationUid from ~/.sosrc (boolean) | |
|
|
33
|
+
| `--organization-uid` | Organization UID (string) | |
|
|
34
|
+
| `--port` | Port where will the applet run (number) | `8090` |
|
|
35
|
+
| `--applet-path` | Path to the applet file or the project folder depending on the entry file. Relative to the command or absolute. (string) | |
|
|
36
|
+
| `--entry-file-path` | Path to the applet entry file. Relative to the command or absolute. (string) | |
|
|
37
|
+
| `--hot-reload` | Enable hot reload and build of applet (boolean) | `false` |
|
|
38
|
+
| `--server-port` | The custom server port for local machine server. Default is detected from currently running applet server. (number) | |
|
|
39
|
+
| `--server-public-url` | Public url of local machine server. Is useful when the local machine is behind a reverse proxy. (string) | |
|
|
40
|
+
| `--force` | Force start applet server even if it is already running on a different port. Kill the running server first. (boolean) | |
|
|
41
|
+
| `--detach` | Detach the applet HTTP server process from the terminal. Useful when want to run more commands reusing the same http server for current applet. (boolean) | `false` |
|
|
42
|
+
| `--forward-server-url` | Url of forward server to connect to the device instead of the local network (LAN). (string) | |
|
|
43
|
+
|
|
44
|
+
## Examples
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# Start development server with default settings
|
|
48
|
+
sos applet start
|
|
49
|
+
|
|
50
|
+
# Start with custom port and hot reload
|
|
51
|
+
sos applet start --port 8080 --hot-reload
|
|
52
|
+
|
|
53
|
+
# Start with specific organization
|
|
54
|
+
sos applet start --organization-uid abc123
|
|
55
|
+
|
|
56
|
+
# Start with custom applet path
|
|
57
|
+
sos applet start --applet-path ./my-applet
|
|
58
|
+
|
|
59
|
+
# Start with specific entry file
|
|
60
|
+
sos applet start --entry-file-path index.html
|
|
61
|
+
|
|
62
|
+
# Force restart if server is already running
|
|
63
|
+
sos applet start --force
|
|
64
|
+
|
|
65
|
+
# Run in detached mode
|
|
66
|
+
sos applet start --detach
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Since
|
|
70
|
+
|
|
71
|
+
0.1.0
|
|
72
|
+
|
|
73
|
+
## Global Options
|
|
74
|
+
|
|
75
|
+
All commands support the following global options:
|
|
76
|
+
|
|
77
|
+
| Option | Alias | Description |
|
|
78
|
+
|--------|-------|-------------|
|
|
79
|
+
| `--help` | `-h` | Display help information for any command |
|
|
80
|
+
| `--version` | `-v` | Display the installed version of the CLI |
|
|
81
|
+
| `--api-url` | `-u` | Override the API URL for REST requests |
|
|
82
|
+
| `--profile` | | Use a specific profile from ~/.sosrc config |
|
|
83
|
+
|
|
84
|
+
### Examples
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
# Show version
|
|
88
|
+
sos --version
|
|
89
|
+
|
|
90
|
+
# Get help for any command
|
|
91
|
+
sos applet --help
|
|
92
|
+
sos applet upload --help
|
|
93
|
+
|
|
94
|
+
# Use custom API endpoint
|
|
95
|
+
sos --api-url https://api.example.com applet upload
|
|
96
|
+
|
|
97
|
+
# Use specific profile
|
|
98
|
+
sos --profile production organization list
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
## See Also
|
|
103
|
+
|
|
104
|
+
- [Applet Development Documentation](https://developers.signageos.io/docs/applets/connect-to-device-cli/)
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: applet-test-index
|
|
3
|
+
title: test
|
|
4
|
+
sidebar_position: 24
|
|
5
|
+
---
|
|
6
|
+
# test
|
|
7
|
+
|
|
8
|
+
Applet test management
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Provides commands for testing applets on the signageOS platform, including
|
|
14
|
+
uploading test configurations and running remote tests on actual devices.
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
sos applet test <subcommand> [options]
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Subcommands
|
|
23
|
+
|
|
24
|
+
### upload
|
|
25
|
+
|
|
26
|
+
Upload applet tests to the signageOS platform
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
sos applet test upload [options]
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[→ See detailed documentation](upload/)
|
|
33
|
+
|
|
34
|
+
### run
|
|
35
|
+
|
|
36
|
+
Run applet tests on signageOS devices
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
sos applet test run [options]
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[→ See detailed documentation](run/)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
## Examples
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
# Upload test configuration
|
|
49
|
+
sos applet test upload
|
|
50
|
+
|
|
51
|
+
# Run tests remotely
|
|
52
|
+
sos applet test run
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Since
|
|
56
|
+
|
|
57
|
+
0.10.0
|
|
58
|
+
|
|
59
|
+
## Global Options
|
|
60
|
+
|
|
61
|
+
All commands support the following global options:
|
|
62
|
+
|
|
63
|
+
| Option | Alias | Description |
|
|
64
|
+
|--------|-------|-------------|
|
|
65
|
+
| `--help` | `-h` | Display help information for any command |
|
|
66
|
+
| `--version` | `-v` | Display the installed version of the CLI |
|
|
67
|
+
| `--api-url` | `-u` | Override the API URL for REST requests |
|
|
68
|
+
| `--profile` | | Use a specific profile from ~/.sosrc config |
|
|
69
|
+
|
|
70
|
+
### Examples
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
# Show version
|
|
74
|
+
sos --version
|
|
75
|
+
|
|
76
|
+
# Get help for any command
|
|
77
|
+
sos applet --help
|
|
78
|
+
sos applet upload --help
|
|
79
|
+
|
|
80
|
+
# Use custom API endpoint
|
|
81
|
+
sos --api-url https://api.example.com applet upload
|
|
82
|
+
|
|
83
|
+
# Use specific profile
|
|
84
|
+
sos --profile production organization list
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
## Related Commands
|
|
89
|
+
|
|
90
|
+
- [`sos applet test upload`](upload/) - Upload applet tests to the signageOS platform
|
|
91
|
+
- [`sos applet test run`](run/) - Run applet tests on signageOS devices
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: applet-test-run-index
|
|
3
|
+
title: run
|
|
4
|
+
sidebar_position: 26
|
|
5
|
+
---
|
|
6
|
+
# run
|
|
7
|
+
|
|
8
|
+
Run applet tests on signageOS devices
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Executes previously uploaded applet tests on remote signageOS devices. This command
|
|
14
|
+
triggers test execution and provides real-time feedback on test progress and results.
|
|
15
|
+
Tests can be run on specific devices or across multiple devices for comprehensive testing.
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
sos applet test run [options]
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Options
|
|
24
|
+
|
|
25
|
+
| Option | Description |
|
|
26
|
+
| --------------------------- | ----------------------------------------------------------------------------------------- |
|
|
27
|
+
| `--no-default-organization` | Prevent using the defaultOrganizationUid from ~/.sosrc (boolean) |
|
|
28
|
+
| `--device-uid` | Device UID (string) |
|
|
29
|
+
| `--organization-uid` | Organization UID (string) |
|
|
30
|
+
| `--applet-uid` | Applet UID (string) |
|
|
31
|
+
| `--test` | Specify the test identifiers/files to be run. If not specified, all will be run. (string) |
|
|
32
|
+
| `--yes` | Allow to run applet test without confirmation step (boolean) |
|
|
33
|
+
|
|
34
|
+
## Examples
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# Run all applet tests
|
|
38
|
+
sos applet test run --applet-uid my-applet --device-uid device123
|
|
39
|
+
|
|
40
|
+
# Run specific tests
|
|
41
|
+
sos applet test run --applet-uid my-applet --device-uid device123 --test "test1,test2"
|
|
42
|
+
|
|
43
|
+
# Run without confirmation
|
|
44
|
+
sos applet test run --applet-uid my-applet --device-uid device123 --yes
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Since
|
|
48
|
+
|
|
49
|
+
0.10.0
|
|
50
|
+
|
|
51
|
+
## Global Options
|
|
52
|
+
|
|
53
|
+
All commands support the following global options:
|
|
54
|
+
|
|
55
|
+
| Option | Alias | Description |
|
|
56
|
+
|--------|-------|-------------|
|
|
57
|
+
| `--help` | `-h` | Display help information for any command |
|
|
58
|
+
| `--version` | `-v` | Display the installed version of the CLI |
|
|
59
|
+
| `--api-url` | `-u` | Override the API URL for REST requests |
|
|
60
|
+
| `--profile` | | Use a specific profile from ~/.sosrc config |
|
|
61
|
+
|
|
62
|
+
### Examples
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
# Show version
|
|
66
|
+
sos --version
|
|
67
|
+
|
|
68
|
+
# Get help for any command
|
|
69
|
+
sos applet --help
|
|
70
|
+
sos applet upload --help
|
|
71
|
+
|
|
72
|
+
# Use custom API endpoint
|
|
73
|
+
sos --api-url https://api.example.com applet upload
|
|
74
|
+
|
|
75
|
+
# Use specific profile
|
|
76
|
+
sos --profile production organization list
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
## See Also
|
|
81
|
+
|
|
82
|
+
- [Upload test configuration command](../upload/)
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: applet-test-upload-index
|
|
3
|
+
title: upload
|
|
4
|
+
sidebar_position: 25
|
|
5
|
+
---
|
|
6
|
+
# upload
|
|
7
|
+
|
|
8
|
+
Upload applet tests to the signageOS platform
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Uploads test files for remote execution on signageOS devices. Test files are
|
|
14
|
+
identified based on the test configuration in package.json and uploaded to
|
|
15
|
+
the platform for automated testing. Supports incremental uploads with
|
|
16
|
+
change detection and confirmation prompts.
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
sos applet test upload [options]
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Options
|
|
25
|
+
|
|
26
|
+
| Option | Description |
|
|
27
|
+
| --------------------------- | --------------------------------------------------------------------------------------------- |
|
|
28
|
+
| `--no-default-organization` | Prevent using the defaultOrganizationUid from ~/.sosrc (boolean) |
|
|
29
|
+
| `--organization-uid` | Organization UID (string) |
|
|
30
|
+
| `--applet-uid` | Applet UID (string) |
|
|
31
|
+
| `--yes` | Allow to upload new applet test or override existing test without confirmation step (boolean) |
|
|
32
|
+
| `--verbose` | Outputs all files to upload (boolean) |
|
|
33
|
+
|
|
34
|
+
## Examples
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# Upload applet tests
|
|
38
|
+
sos applet test upload
|
|
39
|
+
|
|
40
|
+
# Upload tests with confirmation skip
|
|
41
|
+
sos applet test upload --yes
|
|
42
|
+
|
|
43
|
+
# Upload tests with verbose output
|
|
44
|
+
sos applet test upload --verbose
|
|
45
|
+
|
|
46
|
+
# Upload tests for specific applet
|
|
47
|
+
sos applet test upload --applet-uid my-applet-uid
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Since
|
|
51
|
+
|
|
52
|
+
0.10.0
|
|
53
|
+
|
|
54
|
+
## Global Options
|
|
55
|
+
|
|
56
|
+
All commands support the following global options:
|
|
57
|
+
|
|
58
|
+
| Option | Alias | Description |
|
|
59
|
+
|--------|-------|-------------|
|
|
60
|
+
| `--help` | `-h` | Display help information for any command |
|
|
61
|
+
| `--version` | `-v` | Display the installed version of the CLI |
|
|
62
|
+
| `--api-url` | `-u` | Override the API URL for REST requests |
|
|
63
|
+
| `--profile` | | Use a specific profile from ~/.sosrc config |
|
|
64
|
+
|
|
65
|
+
### Examples
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
# Show version
|
|
69
|
+
sos --version
|
|
70
|
+
|
|
71
|
+
# Get help for any command
|
|
72
|
+
sos applet --help
|
|
73
|
+
sos applet upload --help
|
|
74
|
+
|
|
75
|
+
# Use custom API endpoint
|
|
76
|
+
sos --api-url https://api.example.com applet upload
|
|
77
|
+
|
|
78
|
+
# Use specific profile
|
|
79
|
+
sos --profile production organization list
|
|
80
|
+
```
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: applet-upload-index
|
|
3
|
+
title: upload
|
|
4
|
+
sidebar_position: 25
|
|
5
|
+
---
|
|
6
|
+
# upload
|
|
7
|
+
|
|
8
|
+
Uploads current applet version
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Uploads the current applet version to the signageOS platform, making it available
|
|
14
|
+
for deployment to devices. The command supports both single-file and multi-file applets,
|
|
15
|
+
with automatic version management and conflict detection.
|
|
16
|
+
|
|
17
|
+
The upload process validates package.json requirements, creates or updates applet versions,
|
|
18
|
+
and handles file packaging according to .sosignore, .npmignore, and .gitignore rules.
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
sos applet upload [options]
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Options
|
|
27
|
+
|
|
28
|
+
| Option | Description |
|
|
29
|
+
| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
30
|
+
| `--applet-path` | Path to the applet file or the project folder depending on the entry file. Relative to the command or absolute. (string) |
|
|
31
|
+
| `--entry-file-path` | Path to the applet entry file. Relative to the command or absolute. (string) |
|
|
32
|
+
| `--no-default-organization` | Prevent using the defaultOrganizationUid from ~/.sosrc (boolean) |
|
|
33
|
+
| `--organization-uid` | Organization UID (string) |
|
|
34
|
+
| `--applet-uid` | Applet UID (string) |
|
|
35
|
+
| `--update-package-config` | Force updating package.json with sos.appletUid value of created applet. It's useful when appletUid is passed using SOS_APPLET_UID environment variable. (boolean) |
|
|
36
|
+
| `--yes` | Allow to upload new applet or override existing version without confirmation step (boolean) |
|
|
37
|
+
| `--verbose` | Outputs all files to upload (boolean) |
|
|
38
|
+
|
|
39
|
+
## Examples
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
# Upload applet from current directory
|
|
43
|
+
sos applet upload
|
|
44
|
+
|
|
45
|
+
# Upload with specific applet path
|
|
46
|
+
sos applet upload --applet-path ./dist
|
|
47
|
+
|
|
48
|
+
# Upload with custom entry file
|
|
49
|
+
sos applet upload --entry-file-path src/main.js
|
|
50
|
+
|
|
51
|
+
# Upload with organization override
|
|
52
|
+
sos applet upload --organization-uid abc123def456
|
|
53
|
+
|
|
54
|
+
# Skip confirmation prompts
|
|
55
|
+
sos applet upload --yes
|
|
56
|
+
|
|
57
|
+
# Verbose output with detailed file information
|
|
58
|
+
sos applet upload --verbose
|
|
59
|
+
|
|
60
|
+
# Update package.json with new applet UID
|
|
61
|
+
sos applet upload --update-package-config
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Advanced Usage
|
|
65
|
+
|
|
66
|
+
### Environment Variables
|
|
67
|
+
|
|
68
|
+
You can override certain values using environment variables:
|
|
69
|
+
|
|
70
|
+
- **`SOS_APPLET_UID`**: Specify applet UID to upload to (overrides `sos.appletUid` in package.json)
|
|
71
|
+
- **`SOS_APPLET_VERSION`**: Specify applet version to upload (overrides `version` in package.json)
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
# Upload to specific applet using environment variable
|
|
75
|
+
SOS_APPLET_UID=abc123def456 sos applet upload
|
|
76
|
+
|
|
77
|
+
# Upload with specific version
|
|
78
|
+
SOS_APPLET_VERSION=1.2.3 sos applet upload
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### File Handling
|
|
82
|
+
|
|
83
|
+
- **Applet Creation**: If applet doesn't exist, it will be created automatically
|
|
84
|
+
- **Version Management**: Applet version is read from `package.json`
|
|
85
|
+
- **Applet UID Storage**: Generated applet UID is stored in `package.json` under `sos.appletUid`
|
|
86
|
+
- **Ignore Files**: File exclusion priority (top to bottom): `.sosignore` > `.npmignore` > `.gitignore`
|
|
87
|
+
- **Single Ignore File**: Only one ignore file is used, or none
|
|
88
|
+
|
|
89
|
+
### Alternative Upload Methods
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
# Upload using npm script (recommended)
|
|
93
|
+
npm run upload
|
|
94
|
+
|
|
95
|
+
# Upload all files in applet directory (deprecated method)
|
|
96
|
+
sos applet upload --applet-path=dist/index.html
|
|
97
|
+
# Note: This will upload only the specified file and remove others from servers
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
## Since
|
|
102
|
+
|
|
103
|
+
0.4.0
|
|
104
|
+
|
|
105
|
+
## Global Options
|
|
106
|
+
|
|
107
|
+
All commands support the following global options:
|
|
108
|
+
|
|
109
|
+
| Option | Alias | Description |
|
|
110
|
+
|--------|-------|-------------|
|
|
111
|
+
| `--help` | `-h` | Display help information for any command |
|
|
112
|
+
| `--version` | `-v` | Display the installed version of the CLI |
|
|
113
|
+
| `--api-url` | `-u` | Override the API URL for REST requests |
|
|
114
|
+
| `--profile` | | Use a specific profile from ~/.sosrc config |
|
|
115
|
+
|
|
116
|
+
### Examples
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
# Show version
|
|
120
|
+
sos --version
|
|
121
|
+
|
|
122
|
+
# Get help for any command
|
|
123
|
+
sos applet --help
|
|
124
|
+
sos applet upload --help
|
|
125
|
+
|
|
126
|
+
# Use custom API endpoint
|
|
127
|
+
sos --api-url https://api.example.com applet upload
|
|
128
|
+
|
|
129
|
+
# Use specific profile
|
|
130
|
+
sos --profile production organization list
|
|
131
|
+
```
|