@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.
Files changed (125) hide show
  1. package/README.md +27 -1
  2. package/dist/Applet/Build/appletBuildCommand.d.ts +28 -2
  3. package/dist/Applet/Build/appletBuildCommand.js +27 -1
  4. package/dist/Applet/Generate/Templates/index.js.template +1 -1
  5. package/dist/Applet/Generate/Templates/tsconfig.js.template +1 -1
  6. package/dist/Applet/Generate/appletGenerateCommand.d.ts +29 -23
  7. package/dist/Applet/Generate/appletGenerateCommand.js +38 -32
  8. package/dist/Applet/Start/appletStartCommand.d.ts +44 -2
  9. package/dist/Applet/Start/appletStartCommand.js +44 -2
  10. package/dist/Applet/Test/Upload/appletTestRunCommand.d.ts +25 -2
  11. package/dist/Applet/Test/Upload/appletTestRunCommand.js +24 -1
  12. package/dist/Applet/Test/Upload/appletTestUploadCommand.d.ts +34 -4
  13. package/dist/Applet/Test/Upload/appletTestUploadCommand.js +32 -2
  14. package/dist/Applet/Test/appletTestCommand.d.ts +23 -6
  15. package/dist/Applet/Test/appletTestCommand.js +17 -0
  16. package/dist/Applet/Upload/appletUploadCommand.d.ts +46 -4
  17. package/dist/Applet/Upload/appletUploadCommand.js +44 -2
  18. package/dist/Applet/Upload/appletUploadFacade.js +3 -3
  19. package/dist/Applet/appletCommand.d.ts +42 -10
  20. package/dist/Applet/appletCommand.js +33 -1
  21. package/dist/Auth/loginCommand.d.ts +23 -2
  22. package/dist/Auth/loginCommand.js +42 -14
  23. package/dist/Command/Autocomplete/Install/installAutocompleteCommand.d.ts +17 -0
  24. package/dist/Command/Autocomplete/Install/installAutocompleteCommand.js +17 -0
  25. package/dist/Command/Autocomplete/Install/installAutocompleteCommand.ts +17 -0
  26. package/dist/Command/Autocomplete/Uninstall/uninstallAutocompleteCommand.d.ts +17 -0
  27. package/dist/Command/Autocomplete/Uninstall/uninstallAutocompleteCommand.js +22 -5
  28. package/dist/Command/Autocomplete/autocompleteCommand.d.ts +18 -0
  29. package/dist/Command/Autocomplete/autocompleteCommand.js +19 -1
  30. package/dist/Command/autoComplete.js +2 -2
  31. package/dist/Command/globalArgs.d.ts +33 -0
  32. package/dist/Command/globalArgs.js +33 -0
  33. package/dist/CustomScript/Generate/customScriptGenerateCommand.d.ts +19 -0
  34. package/dist/CustomScript/Generate/customScriptGenerateCommand.js +20 -1
  35. package/dist/CustomScript/Upload/customScriptUploadCommand.d.ts +32 -2
  36. package/dist/CustomScript/Upload/customScriptUploadCommand.js +31 -1
  37. package/dist/CustomScript/customScriptCommand.d.ts +21 -1
  38. package/dist/CustomScript/customScriptCommand.js +20 -0
  39. package/dist/CustomScript/customScriptFacade.d.ts +5 -5
  40. package/dist/CustomScript/customScriptFacade.js +5 -4
  41. package/dist/Device/Connect/connectCommand.d.ts +51 -2
  42. package/dist/Device/Connect/connectCommand.js +50 -1
  43. package/dist/Device/Content/setContentCommand.d.ts +28 -2
  44. package/dist/Device/Content/setContentCommand.js +27 -1
  45. package/dist/Device/PowerAction/powerActionCommand.d.ts +54 -2
  46. package/dist/Device/PowerAction/powerActionCommand.js +52 -0
  47. package/dist/Device/deviceCommand.d.ts +26 -6
  48. package/dist/Device/deviceCommand.js +21 -1
  49. package/dist/Device/deviceFacade.d.ts +1 -1
  50. package/dist/Firmware/Upload/firmwareUploadCommand.d.ts +42 -0
  51. package/dist/Firmware/Upload/firmwareUploadCommand.js +40 -6
  52. package/dist/Firmware/Upload/firmwareUploadFacade.js +1 -1
  53. package/dist/Firmware/firmwareCommand.d.ts +25 -0
  54. package/dist/Firmware/firmwareCommand.js +18 -1
  55. package/dist/Lib/childProcess.js +2 -2
  56. package/dist/Organization/Get/organizationGetCommand.d.ts +31 -2
  57. package/dist/Organization/Get/organizationGetCommand.js +31 -2
  58. package/dist/Organization/List/organizationListCommand.d.ts +20 -0
  59. package/dist/Organization/List/organizationListCommand.js +21 -1
  60. package/dist/Organization/SetDefault/organizationSetDefaultCommand.d.ts +24 -0
  61. package/dist/Organization/SetDefault/organizationSetDefaultCommand.js +25 -1
  62. package/dist/Organization/organizationCommand.d.ts +27 -2
  63. package/dist/Organization/organizationCommand.js +26 -1
  64. package/dist/Organization/organizationFacade.d.ts +2 -2
  65. package/dist/Organization/organizationFacade.js +3 -3
  66. package/dist/Plugin/Generate/pluginGenerateCommand.d.ts +7 -0
  67. package/dist/Plugin/Generate/pluginGenerateCommand.js +38 -0
  68. package/dist/Plugin/Generate/pluginGenerateFacade.d.ts +12 -0
  69. package/dist/Plugin/Generate/pluginGenerateFacade.js +106 -0
  70. package/dist/Plugin/Upload/pluginUploadCommand.d.ts +25 -0
  71. package/dist/Plugin/Upload/pluginUploadCommand.js +70 -0
  72. package/dist/Plugin/pluginCommand.d.ts +27 -0
  73. package/dist/Plugin/pluginCommand.js +26 -0
  74. package/dist/Plugin/pluginFacade.d.ts +62 -0
  75. package/dist/Plugin/pluginFacade.js +251 -0
  76. package/dist/Runner/Generate/runnerGenerateCommand.d.ts +7 -0
  77. package/dist/Runner/Generate/runnerGenerateCommand.js +38 -0
  78. package/dist/Runner/Generate/runnerGenerateFacade.d.ts +12 -0
  79. package/dist/Runner/Generate/runnerGenerateFacade.js +107 -0
  80. package/dist/Runner/Upload/runnerUploadCommand.d.ts +25 -0
  81. package/dist/Runner/Upload/runnerUploadCommand.js +72 -0
  82. package/dist/Runner/runnerCommand.d.ts +27 -0
  83. package/dist/Runner/runnerCommand.js +26 -0
  84. package/dist/Runner/runnerFacede.d.ts +15 -0
  85. package/dist/Runner/runnerFacede.js +234 -0
  86. package/dist/Timing/List/timingListCommand.d.ts +26 -2
  87. package/dist/Timing/List/timingListCommand.js +26 -2
  88. package/dist/Timing/timingCommand.d.ts +17 -2
  89. package/dist/Timing/timingCommand.js +15 -0
  90. package/dist/helper.d.ts +5 -5
  91. package/dist/helper.js +4 -6
  92. package/dist/index.js +26 -2
  93. package/docs/applet/build/index.md +74 -0
  94. package/docs/applet/generate/index.md +118 -0
  95. package/docs/applet/index.md +134 -0
  96. package/docs/applet/start/index.md +104 -0
  97. package/docs/applet/test/index.md +91 -0
  98. package/docs/applet/test/run/index.md +82 -0
  99. package/docs/applet/test/upload/index.md +80 -0
  100. package/docs/applet/upload/index.md +131 -0
  101. package/docs/autocomplete/index.md +92 -0
  102. package/docs/autocomplete/install/index.md +120 -0
  103. package/docs/autocomplete/uninstall/index.md +65 -0
  104. package/docs/custom-script/generate/index.md +66 -0
  105. package/docs/custom-script/index.md +96 -0
  106. package/docs/custom-script/upload/index.md +78 -0
  107. package/docs/device/connect/index.md +148 -0
  108. package/docs/device/index.md +105 -0
  109. package/docs/device/power-action/index.md +130 -0
  110. package/docs/device/set-content/index.md +72 -0
  111. package/docs/index.md +170 -0
  112. package/docs/login/index.md +122 -0
  113. package/docs/organization/get/index.md +79 -0
  114. package/docs/organization/index.md +105 -0
  115. package/docs/organization/list/index.md +65 -0
  116. package/docs/organization/set-default/index.md +74 -0
  117. package/docs/plugin/generate/index.md +43 -0
  118. package/docs/plugin/index.md +72 -0
  119. package/docs/plugin/upload/index.md +50 -0
  120. package/docs/runner/generate/index.md +43 -0
  121. package/docs/runner/index.md +72 -0
  122. package/docs/runner/upload/index.md +50 -0
  123. package/docs/timing/index.md +78 -0
  124. package/docs/timing/list/index.md +71 -0
  125. 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](../)