@elgato/cli 0.1.0-beta.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Corsair Memory Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,217 @@
1
+ <p align="center">
2
+ <a href="https://docs.elgato.com/sdk" title="Read the Stream Deck SDK documentation" alt="Stream Deck SDK">
3
+ <img src="./assets/banner.png">
4
+ </a>
5
+ </p>
6
+ <div align="center">
7
+
8
+ # Maker CLI
9
+
10
+ ![Maker CLI npm package](https://img.shields.io/badge/npm-v0.1.0--beta.0-blue?labelColor=grey&logo=npm&logoColor=white)
11
+ [![SDK documentation](https://img.shields.io/badge/Documentation-2ea043?labelColor=grey&logo=gitbook&logoColor=white)](https://docs.elgato.com/sdk)
12
+ [![Join the Marketplace Makers Discord](https://img.shields.io/badge/Marketplace%20Makers-5662f6?labelColor=grey&logo=discord&logoColor=white)](https://discord.gg/GehBUcu627)
13
+ [![Elgato homepage](https://img.shields.io/badge/Elgato-3431cf?labelColor=grey&logo=data:image/svg+xml;base64,PHN2ZyByb2xlPSJpbWciIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48dGl0bGU+RWxnYXRvPC90aXRsZT48cGF0aCBmaWxsPSIjZmZmZmZmIiBkPSJtMTMuODgxOCA4LjM5NjQuMDI2MS4wMTk2IDkuOTQ5NCA1LjcxNzJjLS40ODg0IDIuNzI5LTEuOTE5NiA1LjIyMjMtNC4wMzg0IDcuMDI1M0ExMS45MjYyIDExLjkyNjIgMCAwIDEgMTIuMDk3IDI0Yy0zLjE5MjUgMC02LjE5MzktMS4yNDc3LTguNDUyNy0zLjUxNDRDMS4zODY4IDE4LjIxODguMTQyNyAxNS4yMDQ0LjE0MjcgMTJjMC0zLjIwNDIgMS4yNDQtNi4yMTg3IDMuNTAxNS04LjQ4NTRDNS45MDE5IDEuMjQ4IDguOTAzMiAwIDEyLjA5NyAwYzIuNDM5NCAwIDQuNzg0Ny43MzMzIDYuNzgzIDIuMTE4NyAxLjk1MjYgMS4zNTQgMy40NDY2IDMuMjM1NyA0LjMyMjcgNS40NDIyLjExMTIuMjgyOS4yMTQ5LjU3MzYuMzA1MS44NjU3bC0yLjEyNTUgMS4yMzU5YTkuNDkyNCA5LjQ5MjQgMCAwIDAtLjI2MTktLjg2OTRjLTEuMzU0LTMuODMwMy00Ljk4MTMtNi40MDQ4LTkuMDIzNy02LjQwNDhDNi44MTcxIDIuMzg4MyAyLjUyMiA2LjcwMDUgMi41MjIgMTJjMCA1LjI5OTUgNC4yOTUgOS42MTE1IDkuNTc0OCA5LjYxMTUgMi4wNTIgMCA0LjAwODQtLjY0NDIgNS42NTk2LTEuODY0NyAxLjYxNzItMS4xOTU1IDIuODAzNi0yLjgzMzcgMy40MzA5LTQuNzM2NGwuMDA2NS0uMDQxOUw5LjU5MDYgOC4zMDQ4djcuMjI1Nmw0LjAwMDQtMi4zMTM4IDIuMDYgMS4xODExLTUuOTk2MiAzLjQ2ODgtMi4xMi0xLjIxMjZWNy4xOTQzbDIuMTE3NC0xLjIyNDUgNC4yMzA5IDIuNDI3OS0uMDAxMy0uMDAxMyIvPjwvc3ZnPg==)](https://elgato.com)
14
+
15
+ </div>
16
+
17
+ ## Installation
18
+
19
+ ```
20
+ npm install -g @elgato/cli
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ ```
26
+ Usage: streamdeck [options] [command]
27
+
28
+ Options:
29
+ -h, --help display help for command
30
+
31
+ Commands:
32
+ create Creation wizard.
33
+ link [path] Links the plugin to Stream Deck.
34
+ restart|r <uuid> Starts the plugin in Stream Deck; if the plugin is already running, it is stopped first.
35
+ stop|s <uuid> Stops the plugin in Stream Deck.
36
+ dev [options] Enables developer mode.
37
+ config Manage the local configuration.
38
+ help [command] display help for command
39
+
40
+ Alias:
41
+ streamdeck
42
+ sd
43
+ ```
44
+
45
+ ## Commands
46
+
47
+ - [create](#%EF%B8%8F-create)<br />Creation wizard.
48
+ - [link](#-link)<br />Links the plugin to Stream Deck.
49
+ - [restart](#%EF%B8%8F-restart)<br />Starts the plugin in Stream Deck; if the plugin is already running, it is stopped first.
50
+ - [stop](#-stop)<br />Stops the plugin in Stream Deck.
51
+ - [dev](#%EF%B8%8F-dev)<br />Enables developer mode.
52
+ - [config](#%EF%B8%8F-config)<br />Manage the local configuration.
53
+
54
+ ## ✏️ create
55
+
56
+ Creation wizard.
57
+
58
+ ### Synopsis
59
+
60
+ ```
61
+ streamdeck create
62
+ ```
63
+
64
+ ### Description
65
+
66
+ The creation wizard will guide you through creating Stream Deck plugins with our official Node.js SDK, and provides all scaffolding required to get started quickly. As part of the wizard, developer mode is enabled, and the plugin built and linked to Stream Deck making it ready for use.
67
+
68
+ #### See Also
69
+
70
+ - [dev](#%EF%B8%8F-dev)
71
+ - [link](#-link)
72
+
73
+ ## 🔗 link
74
+
75
+ Links the plugin to Stream Deck.
76
+
77
+ ### Synopsis
78
+
79
+ ```
80
+ streamdeck link [path]
81
+ ```
82
+
83
+ ### Description
84
+
85
+ Links the specified path (folder) to Stream Deck, effectively installing the plugin, allowing it to be accessed from within Stream Deck. When the path is unspecified, the current working directory is used.
86
+
87
+ Note: The folder name should reflect the UUID of the plugin, and must be suffixed with `.sdPlugin`, eg. `com.elgato.wave-link.sdPlugin`.
88
+
89
+ ## ♻️ restart
90
+
91
+ Starts the plugin in Stream Deck; if the plugin is already running, it is stopped first.
92
+
93
+ ### Synopsis
94
+
95
+ ```
96
+ streamdeck restart <uuid>
97
+
98
+ alias: r
99
+ ```
100
+
101
+ ### Description
102
+
103
+ Instructs Stream Deck to start the plugin, as determined by the UUID. If the plugin is already running within Stream Deck, it is first stopped and then started. As part of restarting the plugin all resources associated with the plugin, including manifest definitions, are reloaded.
104
+
105
+ #### See Also
106
+
107
+ - [stop](#-stop)
108
+
109
+ ## 🛑 stop
110
+
111
+ Stops the plugin in Stream Deck.
112
+
113
+ ### Synopsis
114
+
115
+ ```
116
+ streamdeck stop <uuid>
117
+
118
+ alias: s
119
+ ```
120
+
121
+ ### Description
122
+
123
+ Instructs Stream Deck to stop the plugin, as determined by the UUID. When stopped, the plugin and all of its resources are unloaded from Stream Deck allowing the plugin to be changed.
124
+
125
+ #### See Also
126
+
127
+ - [restart](#%EF%B8%8F-restart)
128
+
129
+ ## 🏗️ dev
130
+
131
+ Enables developer mode.
132
+
133
+ ### Synopsis
134
+
135
+ ```
136
+ streamdeck dev [-d|--disable]
137
+ ```
138
+
139
+ ### Description
140
+
141
+ Developer mode enables the local development of Stream Deck plugins, and provides the Maker with additional capabilities for building and debugging with Stream Deck. Whilst enabled, Node.js plugins can be executed, and it is also possible to debug the property inspector locally at `http://localhost:23654/`.
142
+
143
+ ## ⚙️ config
144
+
145
+ Manage the local configuration.
146
+
147
+ ### Synopsis
148
+
149
+ ```
150
+ streamdeck config set <key>=<value> [<key>=<value>...]
151
+ streamdeck config unset <key> [<key>...]
152
+ streamdeck config list
153
+ streamdeck config reset
154
+ ```
155
+
156
+ ### Description
157
+
158
+ The CLI gets its configuration settings from the user's local environment. These configuration settings define the output of commands and how they're executed, and enable customization of interaction. The `streamdeck config` command can be used to update and manage these settings.
159
+
160
+ #### Sub-commands
161
+
162
+ #### set
163
+
164
+ ```
165
+ streamdeck config set <key>=<value> [<key>=<value>...]
166
+ ```
167
+
168
+ Sets each of the configuration keys to the value provided.
169
+
170
+ #### unset
171
+
172
+ ```
173
+ streamdeck config <key> [<key>...]
174
+ ```
175
+
176
+ Sets each of the configuration keys to their default values.
177
+
178
+ #### reset
179
+
180
+ ```
181
+ streamdeck config reset
182
+ ```
183
+
184
+ Resets all configuration keys to their default values.
185
+
186
+ #### list
187
+
188
+ ```
189
+ streamdeck config list
190
+ ```
191
+
192
+ Lists the defined configuration, eg. values defined using [config set](#set).
193
+
194
+ ### Configuration
195
+
196
+ #### create.mode
197
+
198
+ - Default: `prod`
199
+ - Type: `prod` or `dev`
200
+ - `prod`, the latest supported published version.
201
+ - `dev`, the version defined within `npm.streamDeck`.
202
+
203
+ Specifies the npm version of `@elgato/streamdeck` to use when creating a Stream Deck plugin via [create](#%EF%B8%8F-create).
204
+
205
+ #### npm.streamDeck
206
+
207
+ - Default: `undefined`
208
+ - Type: String
209
+
210
+ The development npm version of `@elgato/streamdeck` to use when creating a Stream Deck plugin via [create](#%EF%B8%8F-create). The value can be a version or local path.
211
+
212
+ #### reduceMotion
213
+
214
+ - Default: `false`
215
+ - Type: Boolean
216
+
217
+ Determines whether feedback provided should prefer reduced motion; when `true`, the busy indicator will be rendered as a static indicator.