@signageos/cli 2.4.1 → 2.6.0-rc.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 +38 -32
- 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/CustomScript/customScriptFacade.d.ts +5 -5
- package/dist/CustomScript/customScriptFacade.js +5 -4
- 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/Plugin/Generate/pluginGenerateCommand.d.ts +7 -0
- package/dist/Plugin/Generate/pluginGenerateCommand.js +38 -0
- package/dist/Plugin/Generate/pluginGenerateFacade.d.ts +12 -0
- package/dist/Plugin/Generate/pluginGenerateFacade.js +106 -0
- package/dist/Plugin/Upload/pluginUploadCommand.d.ts +25 -0
- package/dist/Plugin/Upload/pluginUploadCommand.js +70 -0
- package/dist/Plugin/pluginCommand.d.ts +27 -0
- package/dist/Plugin/pluginCommand.js +26 -0
- package/dist/Plugin/pluginFacade.d.ts +62 -0
- package/dist/Plugin/pluginFacade.js +251 -0
- package/dist/Runner/Generate/runnerGenerateCommand.d.ts +7 -0
- package/dist/Runner/Generate/runnerGenerateCommand.js +38 -0
- package/dist/Runner/Generate/runnerGenerateFacade.d.ts +12 -0
- package/dist/Runner/Generate/runnerGenerateFacade.js +107 -0
- package/dist/Runner/Upload/runnerUploadCommand.d.ts +25 -0
- package/dist/Runner/Upload/runnerUploadCommand.js +72 -0
- package/dist/Runner/runnerCommand.d.ts +27 -0
- package/dist/Runner/runnerCommand.js +26 -0
- package/dist/Runner/runnerFacede.d.ts +15 -0
- package/dist/Runner/runnerFacede.js +234 -0
- 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 +26 -2
- 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 +170 -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/plugin/generate/index.md +43 -0
- package/docs/plugin/index.md +72 -0
- package/docs/plugin/upload/index.md +50 -0
- package/docs/runner/generate/index.md +43 -0
- package/docs/runner/index.md +72 -0
- package/docs/runner/upload/index.md +50 -0
- package/docs/timing/index.md +78 -0
- package/docs/timing/list/index.md +71 -0
- package/package.json +29 -19
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: device-connect-index
|
|
3
|
+
title: connect
|
|
4
|
+
sidebar_position: 31
|
|
5
|
+
---
|
|
6
|
+
# connect
|
|
7
|
+
|
|
8
|
+
Connect device to local development server
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Establishes a connection between a signageOS device and the local development environment,
|
|
14
|
+
allowing real-time testing and debugging of applets during development. Supports both
|
|
15
|
+
local network (LAN) and forward server connections for different network configurations.
|
|
16
|
+
|
|
17
|
+
The command sets up a development server and configures the device to load the applet
|
|
18
|
+
from the local machine, enabling hot reload and live debugging capabilities.
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
sos device connect [options]
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Options
|
|
27
|
+
|
|
28
|
+
| Option | Description | Default |
|
|
29
|
+
| --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
|
|
30
|
+
| `--no-default-organization` | Prevent using the defaultOrganizationUid from ~/.sosrc (boolean) | |
|
|
31
|
+
| `--organization-uid` | Organization UID (string) | |
|
|
32
|
+
| `--device-uid` | Device UID (string) | |
|
|
33
|
+
| `--applet-uid` | Applet UID (string) | |
|
|
34
|
+
| `--server-public-url` | Public url of local machine server. Is useful when the local machine is behind a reverse proxy. (string) | |
|
|
35
|
+
| `--server-port` | The custom server port for local machine server. Default is detected from currently running applet server. (number) | |
|
|
36
|
+
| `--force` | Force start applet server even if it is already running on a different port. Kill the running server first. (boolean) | |
|
|
37
|
+
| `--use-forward-server` | Use forward server to connect to the device instead of the local network (LAN). It's useful when the device is not in the same network as the local machine. (boolean) | |
|
|
38
|
+
| `--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` |
|
|
39
|
+
| `--forward-server-url` | Url of forward server to connect to the device instead of the local network (LAN). (string) | |
|
|
40
|
+
| `--hot-reload` | Enable hot reload and build of applet (boolean) | `false` |
|
|
41
|
+
| `--applet-path` | Path to the applet file or the project folder depending on the entry file. Relative to the command or absolute. (string) | |
|
|
42
|
+
|
|
43
|
+
## Examples
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
# Connect device with basic configuration
|
|
47
|
+
sos device connect --device-uid device123 --applet-uid my-applet
|
|
48
|
+
|
|
49
|
+
# Connect with custom server port
|
|
50
|
+
sos device connect --device-uid device123 --server-port 8080
|
|
51
|
+
|
|
52
|
+
# Connect using forward server (for remote devices)
|
|
53
|
+
sos device connect --device-uid device123 --use-forward-server
|
|
54
|
+
|
|
55
|
+
# Connect with hot reload enabled
|
|
56
|
+
sos device connect --device-uid device123 --hot-reload
|
|
57
|
+
|
|
58
|
+
# Connect with custom organization
|
|
59
|
+
sos device connect --device-uid device123 --organization-uid org456
|
|
60
|
+
|
|
61
|
+
# Connect with custom public URL
|
|
62
|
+
sos device connect --device-uid device123 --server-public-url https://my-domain.com
|
|
63
|
+
|
|
64
|
+
# Connect and run in background
|
|
65
|
+
sos device connect --device-uid device123 --detach
|
|
66
|
+
|
|
67
|
+
# Force connection (terminate existing servers)
|
|
68
|
+
sos device connect --device-uid device123 --force
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Advanced Usage
|
|
72
|
+
|
|
73
|
+
### Prerequisites
|
|
74
|
+
|
|
75
|
+
Before connecting a device:
|
|
76
|
+
|
|
77
|
+
1. **Build and upload applet**: The applet must be built and uploaded to the platform at least once
|
|
78
|
+
2. **Device configuration**: Ensure the device is properly configured and accessible
|
|
79
|
+
3. **Network access**: Device should be accessible via local network or use `--use-forward-server` for remote access
|
|
80
|
+
|
|
81
|
+
### Development Workflow
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
# Typical development workflow
|
|
85
|
+
sos applet generate --name my-applet
|
|
86
|
+
cd my-applet
|
|
87
|
+
npm run build
|
|
88
|
+
sos applet upload
|
|
89
|
+
sos device connect --device-uid device123 --hot-reload
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Network Considerations
|
|
93
|
+
|
|
94
|
+
- **Local Network (LAN)**: Default behavior, requires device and development machine on same network
|
|
95
|
+
- **Forward Server**: Use `--use-forward-server` when device is remote or behind different network
|
|
96
|
+
- **Custom Forward Server**: Override with `--forward-server-url` for private deployments
|
|
97
|
+
- **Public URL**: Set `--server-public-url` when behind reverse proxy or custom domain
|
|
98
|
+
|
|
99
|
+
## Configuration Tips
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
# Update package.json with applet UID when created
|
|
103
|
+
sos device connect --device-uid device123 --update-package-config
|
|
104
|
+
|
|
105
|
+
# Use custom ports for development
|
|
106
|
+
sos device connect --device-uid device123 --server-port 8080
|
|
107
|
+
|
|
108
|
+
# Run server in background for multiple sessions
|
|
109
|
+
sos device connect --device-uid device123 --detach
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
## Since
|
|
114
|
+
|
|
115
|
+
0.9.0
|
|
116
|
+
|
|
117
|
+
## Global Options
|
|
118
|
+
|
|
119
|
+
All commands support the following global options:
|
|
120
|
+
|
|
121
|
+
| Option | Alias | Description |
|
|
122
|
+
|--------|-------|-------------|
|
|
123
|
+
| `--help` | `-h` | Display help information for any command |
|
|
124
|
+
| `--version` | `-v` | Display the installed version of the CLI |
|
|
125
|
+
| `--api-url` | `-u` | Override the API URL for REST requests |
|
|
126
|
+
| `--profile` | | Use a specific profile from ~/.sosrc config |
|
|
127
|
+
|
|
128
|
+
### Examples
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
# Show version
|
|
132
|
+
sos --version
|
|
133
|
+
|
|
134
|
+
# Get help for any command
|
|
135
|
+
sos applet --help
|
|
136
|
+
sos applet upload --help
|
|
137
|
+
|
|
138
|
+
# Use custom API endpoint
|
|
139
|
+
sos --api-url https://api.example.com applet upload
|
|
140
|
+
|
|
141
|
+
# Use specific profile
|
|
142
|
+
sos --profile production organization list
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
## See Also
|
|
147
|
+
|
|
148
|
+
- [Device Connection and Development Documentation](https://developers.signageos.io/docs/applets/connect-to-device-cli/)
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: device-index
|
|
3
|
+
title: device
|
|
4
|
+
sidebar_position: 30
|
|
5
|
+
---
|
|
6
|
+
# device
|
|
7
|
+
|
|
8
|
+
Device management
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Provides commands for managing signageOS devices, including connecting to devices
|
|
14
|
+
for development, controlling device power states, and managing applet deployment.
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
sos device <subcommand> [options]
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Subcommands
|
|
23
|
+
|
|
24
|
+
### set-content
|
|
25
|
+
|
|
26
|
+
Deploy applet to device
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
sos device set-content [options]
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[→ See detailed documentation](/cli/device/set-content/)
|
|
33
|
+
|
|
34
|
+
### power-action
|
|
35
|
+
|
|
36
|
+
Perform power action on device
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
sos device power-action <actionType> [options]
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[→ See detailed documentation](/cli/device/power-action/)
|
|
43
|
+
|
|
44
|
+
### connect
|
|
45
|
+
|
|
46
|
+
Connect device to local development server
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
sos device connect [options]
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
[→ See detailed documentation](/cli/device/connect/)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## Examples
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
# Connect to device for development
|
|
59
|
+
sos device connect --device-uid device123
|
|
60
|
+
|
|
61
|
+
# Control device power actions
|
|
62
|
+
sos device power-action reload --device-uid device123
|
|
63
|
+
|
|
64
|
+
# Deploy applet to device
|
|
65
|
+
sos device set-content --device-uid device123
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Since
|
|
69
|
+
|
|
70
|
+
0.9.0
|
|
71
|
+
|
|
72
|
+
## Global Options
|
|
73
|
+
|
|
74
|
+
All commands support the following global options:
|
|
75
|
+
|
|
76
|
+
| Option | Alias | Description |
|
|
77
|
+
|--------|-------|-------------|
|
|
78
|
+
| `--help` | `-h` | Display help information for any command |
|
|
79
|
+
| `--version` | `-v` | Display the installed version of the CLI |
|
|
80
|
+
| `--api-url` | `-u` | Override the API URL for REST requests |
|
|
81
|
+
| `--profile` | | Use a specific profile from ~/.sosrc config |
|
|
82
|
+
|
|
83
|
+
### Examples
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
# Show version
|
|
87
|
+
sos --version
|
|
88
|
+
|
|
89
|
+
# Get help for any command
|
|
90
|
+
sos applet --help
|
|
91
|
+
sos applet upload --help
|
|
92
|
+
|
|
93
|
+
# Use custom API endpoint
|
|
94
|
+
sos --api-url https://api.example.com applet upload
|
|
95
|
+
|
|
96
|
+
# Use specific profile
|
|
97
|
+
sos --profile production organization list
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
## Related Commands
|
|
102
|
+
|
|
103
|
+
- [`sos device set-content`](/cli/device/set-content/) - Deploy applet to device
|
|
104
|
+
- [`sos device power-action`](/cli/device/power-action/) - Perform power action on device
|
|
105
|
+
- [`sos device connect`](/cli/device/connect/) - Connect device to local development server
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: device-power-action-index
|
|
3
|
+
title: power-action
|
|
4
|
+
sidebar_position: 32
|
|
5
|
+
---
|
|
6
|
+
# power-action
|
|
7
|
+
|
|
8
|
+
Perform power action on device
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Executes various power and control actions on remote signageOS devices, including
|
|
14
|
+
applet reloads, display power management, system reboots, and applet state changes.
|
|
15
|
+
This command provides remote device management capabilities for troubleshooting
|
|
16
|
+
and maintenance operations.
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
sos device power-action <actionType> [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
|
+
| `--device-uid` | Device UID (string) |
|
|
31
|
+
| `--type` | Type of device power action (string) |
|
|
32
|
+
|
|
33
|
+
## Examples
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# Reload applet on device
|
|
37
|
+
sos device power-action reload --device-uid device123
|
|
38
|
+
|
|
39
|
+
# Turn display on
|
|
40
|
+
sos device power-action displayOn --device-uid device123
|
|
41
|
+
|
|
42
|
+
# Turn display off
|
|
43
|
+
sos device power-action displayOff --device-uid device123
|
|
44
|
+
|
|
45
|
+
# Restart application
|
|
46
|
+
sos device power-action restart --device-uid device123
|
|
47
|
+
|
|
48
|
+
# Disable applet
|
|
49
|
+
sos device power-action disable --device-uid device123
|
|
50
|
+
|
|
51
|
+
# Enable applet
|
|
52
|
+
sos device power-action enable --device-uid device123
|
|
53
|
+
|
|
54
|
+
# Reboot device
|
|
55
|
+
sos device power-action reboot --device-uid device123
|
|
56
|
+
|
|
57
|
+
# Refresh content
|
|
58
|
+
sos device power-action refresh --device-uid device123
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
# Reboot system
|
|
62
|
+
sos device power-action reboot --device-uid device123
|
|
63
|
+
|
|
64
|
+
# Refresh applet
|
|
65
|
+
sos device power-action refresh --device-uid device123
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Advanced Usage
|
|
69
|
+
|
|
70
|
+
### Power Action Types
|
|
71
|
+
|
|
72
|
+
| Action | Description |
|
|
73
|
+
|-------------|----------------------------|
|
|
74
|
+
| reload | Applet Reload |
|
|
75
|
+
| displayOn | Display power On |
|
|
76
|
+
| displayOff | Display power Off |
|
|
77
|
+
| restart | Application restart |
|
|
78
|
+
| disable | Applet disable |
|
|
79
|
+
| enable | Applet enable |
|
|
80
|
+
| reboot | System reboot |
|
|
81
|
+
| refresh | Applet Refresh |
|
|
82
|
+
|
|
83
|
+
### Usage Scenarios
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
# Reload applet content
|
|
87
|
+
sos device power-action --device-uid device123 --type reload
|
|
88
|
+
|
|
89
|
+
# Turn display off for maintenance
|
|
90
|
+
sos device power-action --device-uid device123 --type displayOff
|
|
91
|
+
|
|
92
|
+
# Restart the device application
|
|
93
|
+
sos device power-action --device-uid device123 --type restart
|
|
94
|
+
|
|
95
|
+
# Reboot the entire system
|
|
96
|
+
sos device power-action --device-uid device123 --type reboot
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
## Since
|
|
101
|
+
|
|
102
|
+
0.9.0
|
|
103
|
+
|
|
104
|
+
## Global Options
|
|
105
|
+
|
|
106
|
+
All commands support the following global options:
|
|
107
|
+
|
|
108
|
+
| Option | Alias | Description |
|
|
109
|
+
|--------|-------|-------------|
|
|
110
|
+
| `--help` | `-h` | Display help information for any command |
|
|
111
|
+
| `--version` | `-v` | Display the installed version of the CLI |
|
|
112
|
+
| `--api-url` | `-u` | Override the API URL for REST requests |
|
|
113
|
+
| `--profile` | | Use a specific profile from ~/.sosrc config |
|
|
114
|
+
|
|
115
|
+
### Examples
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
# Show version
|
|
119
|
+
sos --version
|
|
120
|
+
|
|
121
|
+
# Get help for any command
|
|
122
|
+
sos applet --help
|
|
123
|
+
sos applet upload --help
|
|
124
|
+
|
|
125
|
+
# Use custom API endpoint
|
|
126
|
+
sos --api-url https://api.example.com applet upload
|
|
127
|
+
|
|
128
|
+
# Use specific profile
|
|
129
|
+
sos --profile production organization list
|
|
130
|
+
```
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: device-set-content-index
|
|
3
|
+
title: set-content
|
|
4
|
+
sidebar_position: 33
|
|
5
|
+
---
|
|
6
|
+
# set-content
|
|
7
|
+
|
|
8
|
+
Deploy applet to device
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Deploys an applet to a specific device by creating a timing configuration
|
|
14
|
+
that activates the specified applet version on the target device. This command
|
|
15
|
+
establishes the applet-to-device relationship for production deployment.
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
sos device set-content [options]
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Options
|
|
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) |
|
|
31
|
+
|
|
32
|
+
## Examples
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
# Deploy applet to device
|
|
36
|
+
sos device set-content --device-uid device123 --applet-uid my-applet
|
|
37
|
+
|
|
38
|
+
# Deploy with organization override
|
|
39
|
+
sos device set-content --device-uid device123 --applet-uid my-applet --organization-uid org456
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Since
|
|
43
|
+
|
|
44
|
+
0.9.0
|
|
45
|
+
|
|
46
|
+
## Global Options
|
|
47
|
+
|
|
48
|
+
All commands support the following global options:
|
|
49
|
+
|
|
50
|
+
| Option | Alias | Description |
|
|
51
|
+
|--------|-------|-------------|
|
|
52
|
+
| `--help` | `-h` | Display help information for any command |
|
|
53
|
+
| `--version` | `-v` | Display the installed version of the CLI |
|
|
54
|
+
| `--api-url` | `-u` | Override the API URL for REST requests |
|
|
55
|
+
| `--profile` | | Use a specific profile from ~/.sosrc config |
|
|
56
|
+
|
|
57
|
+
### Examples
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# Show version
|
|
61
|
+
sos --version
|
|
62
|
+
|
|
63
|
+
# Get help for any command
|
|
64
|
+
sos applet --help
|
|
65
|
+
sos applet upload --help
|
|
66
|
+
|
|
67
|
+
# Use custom API endpoint
|
|
68
|
+
sos --api-url https://api.example.com applet upload
|
|
69
|
+
|
|
70
|
+
# Use specific profile
|
|
71
|
+
sos --profile production organization list
|
|
72
|
+
```
|
package/docs/index.md
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: sos
|
|
3
|
+
title: Introduction
|
|
4
|
+
sidebar_position: 0
|
|
5
|
+
---
|
|
6
|
+
# sos
|
|
7
|
+
|
|
8
|
+
SignageOS CLI - The central command-line tool for deploying, managing, and debugging signageOS projects and devices
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Overview
|
|
12
|
+
|
|
13
|
+
The signageOS CLI is a command-line tool for managing applets, devices, organizations, and other signageOS resources. It provides a comprehensive set of commands for the complete development lifecycle from applet creation to deployment.
|
|
14
|
+
|
|
15
|
+
### Key Features
|
|
16
|
+
|
|
17
|
+
- **Applet Development**: Create, build, test, and deploy applets
|
|
18
|
+
- **Development Tools**: Connect to devices for testing, upload custom scripts and debug
|
|
19
|
+
- **Device Management**: Control device power states and applet timings
|
|
20
|
+
- **Organization Management**: Handle multi-tenant environments
|
|
21
|
+
- **Authentication**: Secure login and profile management
|
|
22
|
+
|
|
23
|
+
### Installation
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npm install -g @signageos/cli
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Getting Started
|
|
30
|
+
|
|
31
|
+
1. **Login to your account**: `sos login`
|
|
32
|
+
2. **Generate a new applet**: `sos applet generate --name my-applet`
|
|
33
|
+
3. **Start development**: `cd my-applet && sos applet start`
|
|
34
|
+
|
|
35
|
+
## Usage
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
sos [options] <command>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Debugging
|
|
42
|
+
|
|
43
|
+
To enable debugging for specific modules, use the `DEBUG` environment variable:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
# Debug applet upload module
|
|
47
|
+
DEBUG=@signageos/cli:Applet:Upload:appletUploadFacade sos applet upload
|
|
48
|
+
|
|
49
|
+
# Debug all signageOS modules
|
|
50
|
+
DEBUG=@signageos/* sos applet upload
|
|
51
|
+
|
|
52
|
+
# Set debug environment variable
|
|
53
|
+
export DEBUG=@signageos/*
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
## Description
|
|
58
|
+
|
|
59
|
+
The root command for the signageOS CLI tool that provides comprehensive management
|
|
60
|
+
capabilities for applets, devices, organizations, and other signageOS resources.
|
|
61
|
+
This command serves as the entry point for all CLI operations and coordinates
|
|
62
|
+
access to all available command groups.
|
|
63
|
+
|
|
64
|
+
## Options
|
|
65
|
+
|
|
66
|
+
| Option | Alias | Description |
|
|
67
|
+
| ----------- | ----- | ---------------------------------------------------------------------------------------------------- |
|
|
68
|
+
| `--command` | `-c` | (default) Command name (string) |
|
|
69
|
+
| `--help` | `-h` | Display this usage guide. (boolean) |
|
|
70
|
+
| `--api-url` | `-u` | API URL to be used for REST requests (string) |
|
|
71
|
+
| `--version` | `-v` | Display installed version of the CLI. (boolean) |
|
|
72
|
+
| `--profile` | | signageOS Profile to be used for authentication and other values from ~/.sosrc config file. (string) |
|
|
73
|
+
|
|
74
|
+
## Commands
|
|
75
|
+
|
|
76
|
+
### Development
|
|
77
|
+
|
|
78
|
+
#### `sos applet`
|
|
79
|
+
|
|
80
|
+
Applet development and management operations
|
|
81
|
+
|
|
82
|
+
**Available commands**: `sos applet generate`, `sos applet upload`, `sos applet start`, `sos applet test`, `sos applet build`
|
|
83
|
+
|
|
84
|
+
[→ See detailed documentation](/cli/applet/)
|
|
85
|
+
|
|
86
|
+
#### `sos custom-script`
|
|
87
|
+
|
|
88
|
+
Custom Script management
|
|
89
|
+
|
|
90
|
+
**Available commands**: `sos custom-script upload`, `sos custom-script generate`
|
|
91
|
+
|
|
92
|
+
[→ See detailed documentation](/cli/custom-script/)
|
|
93
|
+
|
|
94
|
+
### Authentication
|
|
95
|
+
|
|
96
|
+
#### `sos login`
|
|
97
|
+
|
|
98
|
+
Authenticate user with signageOS
|
|
99
|
+
|
|
100
|
+
[→ See detailed documentation](/cli/login/)
|
|
101
|
+
|
|
102
|
+
### Management
|
|
103
|
+
|
|
104
|
+
#### `sos organization`
|
|
105
|
+
|
|
106
|
+
Organization management operations
|
|
107
|
+
|
|
108
|
+
**Available commands**: `sos organization list`, `sos organization get`, `sos organization set-default`
|
|
109
|
+
|
|
110
|
+
[→ See detailed documentation](/cli/organization/)
|
|
111
|
+
|
|
112
|
+
#### `sos timing`
|
|
113
|
+
|
|
114
|
+
Timing management
|
|
115
|
+
|
|
116
|
+
**Available commands**: `sos timing list`
|
|
117
|
+
|
|
118
|
+
[→ See detailed documentation](/cli/timing/)
|
|
119
|
+
|
|
120
|
+
#### `sos device`
|
|
121
|
+
|
|
122
|
+
Device management
|
|
123
|
+
|
|
124
|
+
**Available commands**: `sos device set-content`, `sos device power-action`, `sos device connect`
|
|
125
|
+
|
|
126
|
+
[→ See detailed documentation](/cli/device/)
|
|
127
|
+
|
|
128
|
+
### Tools
|
|
129
|
+
|
|
130
|
+
#### `sos autocomplete`
|
|
131
|
+
|
|
132
|
+
CLI auto-completion management
|
|
133
|
+
|
|
134
|
+
**Available commands**: `sos autocomplete install`, `sos autocomplete uninstall`
|
|
135
|
+
|
|
136
|
+
[→ See detailed documentation](/cli/autocomplete/)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
## Examples
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
# Show help and available commands
|
|
143
|
+
sos --help
|
|
144
|
+
|
|
145
|
+
# Show version information
|
|
146
|
+
sos --version
|
|
147
|
+
|
|
148
|
+
# Use custom API endpoint
|
|
149
|
+
sos --api-url https://api.custom.signageos.io applet list
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## Since
|
|
153
|
+
|
|
154
|
+
0.1.0
|
|
155
|
+
|
|
156
|
+
## Related Commands
|
|
157
|
+
|
|
158
|
+
- [`sos applet`](/cli/applet/) - Applet development and management operations
|
|
159
|
+
- [`sos login`](/cli/login/) - Authenticate user with signageOS
|
|
160
|
+
- [`sos organization`](/cli/organization/) - Organization management operations
|
|
161
|
+
- [`sos timing`](/cli/timing/) - Timing management
|
|
162
|
+
- [`sos device`](/cli/device/) - Device management
|
|
163
|
+
- [`sos custom-script`](/cli/custom-script/) - Custom Script management
|
|
164
|
+
- [`sos plugin`](/cli/plugin/) - Plugin management
|
|
165
|
+
- [`sos runner`](/cli/runner/) - Runner management
|
|
166
|
+
- [`sos autocomplete`](/cli/autocomplete/) - CLI auto-completion management
|
|
167
|
+
|
|
168
|
+
## See Also
|
|
169
|
+
|
|
170
|
+
- [CLI Setup](https://developers.signageos.io/docs/cli-setup/)
|