@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,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
|
+
```
|
|
@@ -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](../)
|