@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,72 @@
1
+ ---
2
+ id: runner-index
3
+ title: runner
4
+ sidebar_position: 0
5
+ ---
6
+ # runner
7
+
8
+ Runner management
9
+
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ sos runner <subcommand> [options]
15
+ ```
16
+
17
+ ## Subcommands
18
+
19
+ ### generate
20
+
21
+ Generates a local repository for developing a Runner
22
+
23
+ ```bash
24
+ sos runner generate [options]
25
+ ```
26
+
27
+ [→ See detailed documentation](/cli/runner/generate/)
28
+
29
+ ### upload
30
+
31
+ Uploads current runner version
32
+
33
+ ```bash
34
+ sos runner upload [options]
35
+ ```
36
+
37
+ [→ See detailed documentation](/cli/runner/upload/)
38
+
39
+
40
+ ## Global Options
41
+
42
+ All commands support the following global options:
43
+
44
+ | Option | Alias | Description |
45
+ |--------|-------|-------------|
46
+ | `--help` | `-h` | Display help information for any command |
47
+ | `--version` | `-v` | Display the installed version of the CLI |
48
+ | `--api-url` | `-u` | Override the API URL for REST requests |
49
+ | `--profile` | | Use a specific profile from ~/.sosrc config |
50
+
51
+ ### Examples
52
+
53
+ ```bash
54
+ # Show version
55
+ sos --version
56
+
57
+ # Get help for any command
58
+ sos applet --help
59
+ sos applet upload --help
60
+
61
+ # Use custom API endpoint
62
+ sos --api-url https://api.example.com applet upload
63
+
64
+ # Use specific profile
65
+ sos --profile production organization list
66
+ ```
67
+
68
+
69
+ ## Related Commands
70
+
71
+ - [`sos runner generate`](/cli/runner/generate/) - Generates a local repository for developing a Runner
72
+ - [`sos runner upload`](/cli/runner/upload/) - Uploads current runner version
@@ -0,0 +1,50 @@
1
+ ---
2
+ id: runner-upload-index
3
+ title: upload
4
+ sidebar_position: 0
5
+ ---
6
+ # upload
7
+
8
+ Uploads current runner version
9
+
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ sos runner upload [options]
15
+ ```
16
+
17
+ ## Options
18
+
19
+ | Option | Description |
20
+ | --------------------------- | ---------------------------------------------------------------- |
21
+ | `--no-default-organization` | Prevent using the defaultOrganizationUid from ~/.sosrc (boolean) |
22
+ | `--organization-uid` | Organization UID (string) |
23
+
24
+ ## Global Options
25
+
26
+ All commands support the following global options:
27
+
28
+ | Option | Alias | Description |
29
+ |--------|-------|-------------|
30
+ | `--help` | `-h` | Display help information for any command |
31
+ | `--version` | `-v` | Display the installed version of the CLI |
32
+ | `--api-url` | `-u` | Override the API URL for REST requests |
33
+ | `--profile` | | Use a specific profile from ~/.sosrc config |
34
+
35
+ ### Examples
36
+
37
+ ```bash
38
+ # Show version
39
+ sos --version
40
+
41
+ # Get help for any command
42
+ sos applet --help
43
+ sos applet upload --help
44
+
45
+ # Use custom API endpoint
46
+ sos --api-url https://api.example.com applet upload
47
+
48
+ # Use specific profile
49
+ sos --profile production organization list
50
+ ```
@@ -0,0 +1,78 @@
1
+ ---
2
+ id: timing-index
3
+ title: timing
4
+ sidebar_position: 40
5
+ ---
6
+ # timing
7
+
8
+ Timing management
9
+
10
+
11
+ ## Description
12
+
13
+ Provides commands for managing timing configurations that control when and how
14
+ applets are displayed on signageOS devices. Timing configurations define the
15
+ relationship between devices, applets, and scheduling parameters.
16
+
17
+ ## Usage
18
+
19
+ ```bash
20
+ sos timing <subcommand> [options]
21
+ ```
22
+
23
+ ## Subcommands
24
+
25
+ ### list
26
+
27
+ List timing configurations assigned to a device
28
+
29
+ ```bash
30
+ sos timing list [options]
31
+ ```
32
+
33
+ [→ See detailed documentation](/cli/timing/list/)
34
+
35
+
36
+ ## Examples
37
+
38
+ ```bash
39
+ # List timing configurations
40
+ sos timing list
41
+ ```
42
+
43
+ ## Since
44
+
45
+ 0.3.0
46
+
47
+ ## Global Options
48
+
49
+ All commands support the following global options:
50
+
51
+ | Option | Alias | Description |
52
+ |--------|-------|-------------|
53
+ | `--help` | `-h` | Display help information for any command |
54
+ | `--version` | `-v` | Display the installed version of the CLI |
55
+ | `--api-url` | `-u` | Override the API URL for REST requests |
56
+ | `--profile` | | Use a specific profile from ~/.sosrc config |
57
+
58
+ ### Examples
59
+
60
+ ```bash
61
+ # Show version
62
+ sos --version
63
+
64
+ # Get help for any command
65
+ sos applet --help
66
+ sos applet upload --help
67
+
68
+ # Use custom API endpoint
69
+ sos --api-url https://api.example.com applet upload
70
+
71
+ # Use specific profile
72
+ sos --profile production organization list
73
+ ```
74
+
75
+
76
+ ## Related Commands
77
+
78
+ - [`sos timing list`](/cli/timing/list/) - List timing configurations assigned to a device
@@ -0,0 +1,71 @@
1
+ ---
2
+ id: timing-list-index
3
+ title: list
4
+ sidebar_position: 41
5
+ ---
6
+ # list
7
+
8
+ List timing configurations assigned to a device
9
+
10
+
11
+ ## Description
12
+
13
+ Retrieves and displays all timing configurations that are currently assigned
14
+ to a specific device. Timing configurations define when and how content
15
+ (applets) should be displayed on devices, including scheduling and duration settings.
16
+
17
+ ## Usage
18
+
19
+ ```bash
20
+ sos timing list [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
+ | `--device-uid` | Device UID (string) |
30
+
31
+ ## Examples
32
+
33
+ ```bash
34
+ # List timings for a specific device
35
+ sos timing list --device-uid device123
36
+
37
+ # List timings with organization override
38
+ sos timing list --device-uid device123 --organization-uid org456
39
+ ```
40
+
41
+ ## Since
42
+
43
+ 0.3.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
+ ```
package/package.json CHANGED
@@ -1,35 +1,41 @@
1
1
  {
2
2
  "name": "@signageos/cli",
3
- "version": "2.4.1",
3
+ "version": "2.6.0-rc.0",
4
4
  "main": "./dist/index.js",
5
+ "author": "signageOS.io <dev@signageos.io>",
5
6
  "files": [
6
7
  ".env",
7
8
  "dist",
8
9
  "README.md",
9
- "package.json"
10
+ "package.json",
11
+ "docs"
10
12
  ],
11
13
  "repository": {
12
14
  "url": "https://github.com/signageos/cli",
13
15
  "type": "git"
14
16
  },
15
17
  "scripts": {
16
- "build": "npx check-engine@latest && tsc && npm run build:templates",
17
- "build:templates": "node tools/include-templates.js",
18
- "lint": "eslint --config ./eslint.config.mjs --ext .ts,.tsx,.js ./src/",
19
- "lint:fix": "eslint --config ./eslint.config.mjs --fix --ext .ts,.tsx,.js ./src/",
20
- "lint:prettier": "prettier \"(src|tests|tools)/**/*.+(ts|tsx|json|js)\" --check",
21
- "lint:prettier:fix": "prettier \"(src|tests|tools)/**/*.+(ts|tsx|json|js)\" --write",
22
18
  "clean": "rm -rf dist/*",
23
- "clean-build": "npm run clean && npm run build && chmod +x dist/index.js",
19
+ "build": "npx check-engine@latest && tsc && npm run build:templates && npm run docs",
20
+ "build:templates": "node tools/include-templates.mjs",
21
+ "clean-build": "npm run clean && npm run build",
22
+ "watch": "tsc --watch",
23
+ "check-types": "tsc --noEmit",
24
24
  "test": "env NODE_ENV=test mocha",
25
- "test:windows": "cross-env NODE_ENV=test mocha",
26
25
  "test:coverage": "c8 npm run test",
27
- "watch": "tsc --watch",
28
- "check": "npm run depcheck && npx --userconfig ./.npmrc @signageos/lib-ci check-deps && npm run check-circular-deps",
26
+ "test:windows": "cross-env NODE_ENV=test mocha",
27
+ "lint": "eslint",
28
+ "lint:fix": "eslint --fix",
29
+ "lint:prettier": "prettier \"(src|tests|tools)/**/*.+(ts|tsx|json|js)\" --check",
30
+ "lint:prettier:fix": "prettier \"(src|tests|tools)/**/*.+(ts|tsx|json|js)\" --write",
31
+ "test:node-versions": "./tests/integration/test-node-versions.sh",
32
+ "test:integration:node-versions": "env NODE_ENV=test mocha --config .mocharc.node-versions.json",
33
+ "check": "npm run depcheck && npx --userconfig ./.npmrc @signageos/lib-ci check-deps && npm run check-circular-deps && npm run check-types",
29
34
  "check-circular-deps": "npx madge@5 --circular --extensions ts ./src/",
30
35
  "depcheck": "depcheck --config .depcheckrc.json",
31
- "typecheck": "tsc --noEmit",
32
- "prettier:format": "prettier \"(src|tests|tools)/**/*.+(ts|js)\" --write",
36
+ "docs": "npm run docs:generate && npm run docs:validate",
37
+ "docs:generate": "tsx tools/docs/generate.ts --action=generate --filePath=src/index.ts",
38
+ "docs:validate": "tsx tools/docs/validate/validate-docs-links.ts",
33
39
  "postinstall": "node -e \"try{require('./postinstall.js')}catch(e){}\""
34
40
  },
35
41
  "license": "MIT",
@@ -42,7 +48,7 @@
42
48
  },
43
49
  "devDependencies": {
44
50
  "@istanbuljs/nyc-config-typescript": "1.0.2",
45
- "@signageos/codestyle": "1.0.0",
51
+ "@signageos/codestyle": "2.0.3",
46
52
  "@types/archiver": "6.0.3",
47
53
  "@types/child-process-promise": "2.2.6",
48
54
  "@types/cli-progress": "3.11.6",
@@ -55,7 +61,6 @@
55
61
  "@types/mime": "3.0.4",
56
62
  "@types/mocha": "10.0.10",
57
63
  "@types/node": "22.15.3",
58
- "@types/node-fetch": "2.6.12",
59
64
  "@types/prompts": "2.4.9",
60
65
  "@types/semver": "7.7.0",
61
66
  "@types/sinon": "17.0.4",
@@ -65,16 +70,21 @@
65
70
  "cross-env": "7.0.3",
66
71
  "depcheck": "1.4.7",
67
72
  "mocha": "11.2.2",
68
- "rewiremock": "3.14.5",
73
+ "rewiremock": "3.14.6",
69
74
  "should": "13.2.3",
70
75
  "sinon": "20.0.0",
71
76
  "ts-node": "10.9.2",
77
+ "tsx": "4.20.3",
72
78
  "typescript": "5.8.3",
73
79
  "unzipper": "0.12.3"
74
80
  },
81
+ "overrides": {
82
+ "cross-spawn": "^7.0.6",
83
+ "http-cache-semantics": "^4.2.0"
84
+ },
75
85
  "dependencies": {
76
86
  "@signageos/file": "1.0.1",
77
- "@signageos/sdk": "1.27.5",
87
+ "@signageos/sdk": "1.29.0",
78
88
  "archiver": "7.0.1",
79
89
  "chalk": "2.4.2",
80
90
  "child-process-promise": "2.2.1",
@@ -87,8 +97,8 @@
87
97
  "express": "5.1.0",
88
98
  "fs-extra": "11.3.0",
89
99
  "internal-ip": "8.0.0",
100
+ "markdown-table": "3.0.4",
90
101
  "mime": "2.4.4",
91
- "node-fetch": "2.7.0",
92
102
  "prompts": "2.4.2",
93
103
  "semver": "7.7.1",
94
104
  "serve-static": "2.2.0",