@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 +21 -0
- package/README.md +217 -0
- package/bin/streamdeck.mjs +5 -0
- package/package.json +79 -0
- package/template/.vscode/launch.json +20 -0
- package/template/.vscode/settings.json +14 -0
- package/template/com.elgato.template.sdPlugin/imgs/actions/counter/icon.png +0 -0
- package/template/com.elgato.template.sdPlugin/imgs/actions/counter/icon@2x.png +0 -0
- package/template/com.elgato.template.sdPlugin/imgs/actions/counter/key.png +0 -0
- package/template/com.elgato.template.sdPlugin/imgs/actions/counter/key@2x.png +0 -0
- package/template/com.elgato.template.sdPlugin/imgs/plugin/category-icon.png +0 -0
- package/template/com.elgato.template.sdPlugin/imgs/plugin/category-icon@2x.png +0 -0
- package/template/com.elgato.template.sdPlugin/imgs/plugin/marketplace.png +0 -0
- package/template/com.elgato.template.sdPlugin/imgs/plugin/marketplace@2x.png +0 -0
- package/template/com.elgato.template.sdPlugin/manifest.json.ejs +46 -0
- package/template/package.json.ejs +20 -0
- package/template/rollup.config.mjs +71 -0
- package/template/src/actions/increment-counter.ts.ejs +39 -0
- package/template/src/plugin.ts +12 -0
- package/template/tsconfig.json.ejs +14 -0
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
|
+

|
|
11
|
+
[](https://docs.elgato.com/sdk)
|
|
12
|
+
[](https://discord.gg/GehBUcu627)
|
|
13
|
+
[](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.
|