@signageos/cli 2.4.1 → 2.5.1
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/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,92 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: autocomplete-index
|
|
3
|
+
title: autocomplete
|
|
4
|
+
sidebar_position: 70
|
|
5
|
+
---
|
|
6
|
+
# autocomplete
|
|
7
|
+
|
|
8
|
+
CLI auto-completion management
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Provides commands for installing and managing shell auto-completion for the signageOS CLI.
|
|
14
|
+
Auto-completion enhances developer productivity by providing intelligent command and
|
|
15
|
+
sub-command suggestions in supported shells (bash, zsh, fish).
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
sos autocomplete <subcommand> [options]
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Subcommands
|
|
24
|
+
|
|
25
|
+
### install
|
|
26
|
+
|
|
27
|
+
Install command auto-completion for bash/zsh shells
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
sos autocomplete install [options]
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[→ See detailed documentation](/cli/autocomplete/install/)
|
|
34
|
+
|
|
35
|
+
### uninstall
|
|
36
|
+
|
|
37
|
+
Uninstall command auto-completion for bash/zsh shells
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
sos autocomplete uninstall [options]
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
[→ See detailed documentation](/cli/autocomplete/uninstall/)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## Examples
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
# Install auto-completion for current shell
|
|
50
|
+
sos autocomplete install
|
|
51
|
+
|
|
52
|
+
# Uninstall auto-completion
|
|
53
|
+
sos autocomplete uninstall
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Since
|
|
57
|
+
|
|
58
|
+
2.4.0
|
|
59
|
+
|
|
60
|
+
## Global Options
|
|
61
|
+
|
|
62
|
+
All commands support the following global options:
|
|
63
|
+
|
|
64
|
+
| Option | Alias | Description |
|
|
65
|
+
|--------|-------|-------------|
|
|
66
|
+
| `--help` | `-h` | Display help information for any command |
|
|
67
|
+
| `--version` | `-v` | Display the installed version of the CLI |
|
|
68
|
+
| `--api-url` | `-u` | Override the API URL for REST requests |
|
|
69
|
+
| `--profile` | | Use a specific profile from ~/.sosrc config |
|
|
70
|
+
|
|
71
|
+
### Examples
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
# Show version
|
|
75
|
+
sos --version
|
|
76
|
+
|
|
77
|
+
# Get help for any command
|
|
78
|
+
sos applet --help
|
|
79
|
+
sos applet upload --help
|
|
80
|
+
|
|
81
|
+
# Use custom API endpoint
|
|
82
|
+
sos --api-url https://api.example.com applet upload
|
|
83
|
+
|
|
84
|
+
# Use specific profile
|
|
85
|
+
sos --profile production organization list
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
## Related Commands
|
|
90
|
+
|
|
91
|
+
- [`sos autocomplete install`](/cli/autocomplete/install/) - Install command auto-completion for bash/zsh shells
|
|
92
|
+
- [`sos autocomplete uninstall`](/cli/autocomplete/uninstall/) - Uninstall command auto-completion for bash/zsh shells
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: autocomplete-install-index
|
|
3
|
+
title: install
|
|
4
|
+
sidebar_position: 71
|
|
5
|
+
---
|
|
6
|
+
# install
|
|
7
|
+
|
|
8
|
+
Install command auto-completion for bash/zsh shells
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Enables auto-completion functionality for the signageOS CLI in supported shells.
|
|
14
|
+
This command adds auto-completion scripts and configuration to the user's shell
|
|
15
|
+
profile, allowing tab completion for commands and sub-commands.
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
sos autocomplete install [options]
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Examples
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# Install auto-completion
|
|
27
|
+
sos autocomplete install
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Advanced Usage
|
|
31
|
+
|
|
32
|
+
### Shell Compatibility
|
|
33
|
+
|
|
34
|
+
signageOS CLI autocomplete supports:
|
|
35
|
+
- **Zsh** (.zshrc)
|
|
36
|
+
- **Bash** (.bashrc, .bash_profile)
|
|
37
|
+
- **Fish** (.config/fish/config.fish)
|
|
38
|
+
|
|
39
|
+
### Setup Process
|
|
40
|
+
|
|
41
|
+
1. **Install completion script**: Adds script to home directory
|
|
42
|
+
2. **Configure shell**: Adds source line to shell configuration file
|
|
43
|
+
3. **Activate immediately**: Source the completion script without restart
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
# Install and activate immediately
|
|
47
|
+
sos autocomplete install
|
|
48
|
+
source ~/.sos-completion.sh
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Usage Examples
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
# Show all top-level commands
|
|
55
|
+
sos [TAB]
|
|
56
|
+
|
|
57
|
+
# Show all applet subcommands
|
|
58
|
+
sos applet [TAB]
|
|
59
|
+
|
|
60
|
+
# Autocomplete partial commands
|
|
61
|
+
sos applet up[TAB] # Completes to "sos applet upload"
|
|
62
|
+
sos org l[TAB] # Completes to "sos organization list"
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Troubleshooting
|
|
66
|
+
|
|
67
|
+
If autocomplete isn't working:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
# Verify installation
|
|
71
|
+
ls -la ~/.sos-completion.sh
|
|
72
|
+
|
|
73
|
+
# Check shell configuration
|
|
74
|
+
grep "sos-completion" ~/.zshrc # or ~/.bashrc
|
|
75
|
+
|
|
76
|
+
# Reload shell configuration
|
|
77
|
+
source ~/.zshrc # or ~/.bashrc
|
|
78
|
+
|
|
79
|
+
# Reinstall if needed
|
|
80
|
+
sos autocomplete uninstall
|
|
81
|
+
sos autocomplete install
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
## Since
|
|
86
|
+
|
|
87
|
+
2.4.0
|
|
88
|
+
|
|
89
|
+
## Global Options
|
|
90
|
+
|
|
91
|
+
All commands support the following global options:
|
|
92
|
+
|
|
93
|
+
| Option | Alias | Description |
|
|
94
|
+
|--------|-------|-------------|
|
|
95
|
+
| `--help` | `-h` | Display help information for any command |
|
|
96
|
+
| `--version` | `-v` | Display the installed version of the CLI |
|
|
97
|
+
| `--api-url` | `-u` | Override the API URL for REST requests |
|
|
98
|
+
| `--profile` | | Use a specific profile from ~/.sosrc config |
|
|
99
|
+
|
|
100
|
+
### Examples
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
# Show version
|
|
104
|
+
sos --version
|
|
105
|
+
|
|
106
|
+
# Get help for any command
|
|
107
|
+
sos applet --help
|
|
108
|
+
sos applet upload --help
|
|
109
|
+
|
|
110
|
+
# Use custom API endpoint
|
|
111
|
+
sos --api-url https://api.example.com applet upload
|
|
112
|
+
|
|
113
|
+
# Use specific profile
|
|
114
|
+
sos --profile production organization list
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
## See Also
|
|
119
|
+
|
|
120
|
+
- [Uninstall auto-completion command](../uninstall/)
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: autocomplete-uninstall-index
|
|
3
|
+
title: uninstall
|
|
4
|
+
sidebar_position: 72
|
|
5
|
+
---
|
|
6
|
+
# uninstall
|
|
7
|
+
|
|
8
|
+
Uninstall command auto-completion for bash/zsh shells
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Removes the signageOS CLI auto-completion functionality from the user's shell configuration.
|
|
14
|
+
This command reverses the changes made by the install command, removing auto-completion
|
|
15
|
+
scripts and configuration entries from shell profile files.
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
sos autocomplete uninstall [options]
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Examples
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# Uninstall auto-completion
|
|
27
|
+
sos autocomplete uninstall
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Since
|
|
31
|
+
|
|
32
|
+
2.4.0
|
|
33
|
+
|
|
34
|
+
## Global Options
|
|
35
|
+
|
|
36
|
+
All commands support the following global options:
|
|
37
|
+
|
|
38
|
+
| Option | Alias | Description |
|
|
39
|
+
|--------|-------|-------------|
|
|
40
|
+
| `--help` | `-h` | Display help information for any command |
|
|
41
|
+
| `--version` | `-v` | Display the installed version of the CLI |
|
|
42
|
+
| `--api-url` | `-u` | Override the API URL for REST requests |
|
|
43
|
+
| `--profile` | | Use a specific profile from ~/.sosrc config |
|
|
44
|
+
|
|
45
|
+
### Examples
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
# Show version
|
|
49
|
+
sos --version
|
|
50
|
+
|
|
51
|
+
# Get help for any command
|
|
52
|
+
sos applet --help
|
|
53
|
+
sos applet upload --help
|
|
54
|
+
|
|
55
|
+
# Use custom API endpoint
|
|
56
|
+
sos --api-url https://api.example.com applet upload
|
|
57
|
+
|
|
58
|
+
# Use specific profile
|
|
59
|
+
sos --profile production organization list
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
## See Also
|
|
64
|
+
|
|
65
|
+
- [Install auto-completion command](../install/)
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: custom-script-generate-index
|
|
3
|
+
title: generate
|
|
4
|
+
sidebar_position: 51
|
|
5
|
+
---
|
|
6
|
+
# generate
|
|
7
|
+
|
|
8
|
+
Generate a local repository for developing a Custom Script
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Creates a new custom script project with boilerplate code and configuration files.
|
|
14
|
+
This command sets up a complete development environment for custom script development,
|
|
15
|
+
including necessary dependencies and project structure.
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
sos custom-script generate [options]
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Examples
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# Generate custom script project
|
|
27
|
+
sos custom-script generate
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Since
|
|
31
|
+
|
|
32
|
+
2.2.0
|
|
33
|
+
|
|
34
|
+
## Global Options
|
|
35
|
+
|
|
36
|
+
All commands support the following global options:
|
|
37
|
+
|
|
38
|
+
| Option | Alias | Description |
|
|
39
|
+
|--------|-------|-------------|
|
|
40
|
+
| `--help` | `-h` | Display help information for any command |
|
|
41
|
+
| `--version` | `-v` | Display the installed version of the CLI |
|
|
42
|
+
| `--api-url` | `-u` | Override the API URL for REST requests |
|
|
43
|
+
| `--profile` | | Use a specific profile from ~/.sosrc config |
|
|
44
|
+
|
|
45
|
+
### Examples
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
# Show version
|
|
49
|
+
sos --version
|
|
50
|
+
|
|
51
|
+
# Get help for any command
|
|
52
|
+
sos applet --help
|
|
53
|
+
sos applet upload --help
|
|
54
|
+
|
|
55
|
+
# Use custom API endpoint
|
|
56
|
+
sos --api-url https://api.example.com applet upload
|
|
57
|
+
|
|
58
|
+
# Use specific profile
|
|
59
|
+
sos --profile production organization list
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
## See Also
|
|
64
|
+
|
|
65
|
+
- [Custom Scripts Documentation](https://developers.signageos.io/docs/custom-scripts/)
|
|
66
|
+
- [Upload custom script command](../upload/)
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: custom-script-index
|
|
3
|
+
title: custom-script
|
|
4
|
+
sidebar_position: 50
|
|
5
|
+
---
|
|
6
|
+
# custom-script
|
|
7
|
+
|
|
8
|
+
Custom Script management
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Provides commands for developing and deploying custom scripts to signageOS devices.
|
|
14
|
+
Custom Scripts enable advanced device functionality beyond standard applets,
|
|
15
|
+
including system-level operations and device-specific configurations.
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
sos custom-script <subcommand> [options]
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Subcommands
|
|
24
|
+
|
|
25
|
+
### upload
|
|
26
|
+
|
|
27
|
+
Upload custom script to the signageOS platform
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
sos custom-script upload [options]
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[→ See detailed documentation](/cli/custom-script/upload/)
|
|
34
|
+
|
|
35
|
+
### generate
|
|
36
|
+
|
|
37
|
+
Generate a local repository for developing a Custom Script
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
sos custom-script generate [options]
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
[→ See detailed documentation](/cli/custom-script/generate/)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## Examples
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
# Generate new custom script project
|
|
50
|
+
sos custom-script generate
|
|
51
|
+
|
|
52
|
+
# Upload custom script to platform
|
|
53
|
+
sos custom-script upload
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Since
|
|
57
|
+
|
|
58
|
+
1.8.0
|
|
59
|
+
|
|
60
|
+
## Global Options
|
|
61
|
+
|
|
62
|
+
All commands support the following global options:
|
|
63
|
+
|
|
64
|
+
| Option | Alias | Description |
|
|
65
|
+
|--------|-------|-------------|
|
|
66
|
+
| `--help` | `-h` | Display help information for any command |
|
|
67
|
+
| `--version` | `-v` | Display the installed version of the CLI |
|
|
68
|
+
| `--api-url` | `-u` | Override the API URL for REST requests |
|
|
69
|
+
| `--profile` | | Use a specific profile from ~/.sosrc config |
|
|
70
|
+
|
|
71
|
+
### Examples
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
# Show version
|
|
75
|
+
sos --version
|
|
76
|
+
|
|
77
|
+
# Get help for any command
|
|
78
|
+
sos applet --help
|
|
79
|
+
sos applet upload --help
|
|
80
|
+
|
|
81
|
+
# Use custom API endpoint
|
|
82
|
+
sos --api-url https://api.example.com applet upload
|
|
83
|
+
|
|
84
|
+
# Use specific profile
|
|
85
|
+
sos --profile production organization list
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
## Related Commands
|
|
90
|
+
|
|
91
|
+
- [`sos custom-script upload`](/cli/custom-script/upload/) - Upload custom script to the signageOS platform
|
|
92
|
+
- [`sos custom-script generate`](/cli/custom-script/generate/) - Generate a local repository for developing a Custom Script
|
|
93
|
+
|
|
94
|
+
## See Also
|
|
95
|
+
|
|
96
|
+
- [Custom Scripts Documentation](https://developers.signageos.io/docs/custom-scripts/)
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: custom-script-upload-index
|
|
3
|
+
title: upload
|
|
4
|
+
sidebar_position: 52
|
|
5
|
+
---
|
|
6
|
+
# upload
|
|
7
|
+
|
|
8
|
+
Upload custom script to the signageOS platform
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Description
|
|
12
|
+
|
|
13
|
+
Uploads custom script code and configuration to the signageOS platform based on
|
|
14
|
+
the .sosconfig.json configuration file. Custom Scripts enable advanced device
|
|
15
|
+
functionality beyond standard applets, including system-level operations and
|
|
16
|
+
device-specific configurations for multiple platforms.
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
sos custom-script 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
|
+
|
|
31
|
+
## Examples
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
# Upload custom script from current directory
|
|
35
|
+
sos custom-script upload
|
|
36
|
+
|
|
37
|
+
# Upload with specific organization
|
|
38
|
+
sos custom-script upload --organization-uid abc123def456
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Since
|
|
42
|
+
|
|
43
|
+
1.8.0
|
|
44
|
+
|
|
45
|
+
## Global Options
|
|
46
|
+
|
|
47
|
+
All commands support the following global options:
|
|
48
|
+
|
|
49
|
+
| Option | Alias | Description |
|
|
50
|
+
|--------|-------|-------------|
|
|
51
|
+
| `--help` | `-h` | Display help information for any command |
|
|
52
|
+
| `--version` | `-v` | Display the installed version of the CLI |
|
|
53
|
+
| `--api-url` | `-u` | Override the API URL for REST requests |
|
|
54
|
+
| `--profile` | | Use a specific profile from ~/.sosrc config |
|
|
55
|
+
|
|
56
|
+
### Examples
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
# Show version
|
|
60
|
+
sos --version
|
|
61
|
+
|
|
62
|
+
# Get help for any command
|
|
63
|
+
sos applet --help
|
|
64
|
+
sos applet upload --help
|
|
65
|
+
|
|
66
|
+
# Use custom API endpoint
|
|
67
|
+
sos --api-url https://api.example.com applet upload
|
|
68
|
+
|
|
69
|
+
# Use specific profile
|
|
70
|
+
sos --profile production organization list
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## See Also
|
|
75
|
+
|
|
76
|
+
- [Custom Scripts Documentation](https://developers.signageos.io/docs/custom-scripts/)
|
|
77
|
+
- [Generate custom script project](../generate/)
|
|
78
|
+
- [Custom Script management commands](../)
|
|
@@ -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/)
|