Skip to content

Commands Cheat Sheet

Fresh

CLI Commands

CommandDescription
npm install -g @elgato/cliInstall Stream Deck CLI
streamdeck createCreate new plugin (wizard)
streamdeck devEnable dev mode + debugger
streamdeck linkSymlink plugin for dev
streamdeck listList installed plugins
streamdeck packPackage for distribution
streamdeck restart <uuid>Restart plugin
streamdeck stop <uuid>Stop plugin
streamdeck validateValidate manifest
sdShorthand alias for streamdeck

npm Scripts

ScriptDescription
npm run buildBuild plugin
npm run watchBuild + hot-reload

SDK API Quick Reference

Action Events

EventTrigger
onWillAppearAction visible on canvas
onWillDisappearAction removed
onKeyDownKey pressed
onKeyUpKey released
onDialDownDial pressed
onDialUpDial released
onDialRotateDial rotated
onTouchTapTouch strip tapped
onDidReceiveSettingsSettings changed

Action Commands

CommandDescription
setTitle(title)Set display title
setImage(image)Set display image
setState(state)Toggle state (0/1)
setSettings(settings)Save settings
getSettings()Load settings
showOk()Show success feedback
showAlert()Show warning feedback

Dial Commands

CommandDescription
setFeedbackLayout(layout)Set dial layout
setFeedback(feedback)Update layout values
setTriggerDescription(desc)Set interaction labels

Global API

APIDescription
streamDeck.connect()Initialize plugin
streamDeck.loggerRoot logger
streamDeck.devicesConnected devices
streamDeck.settings.setGlobalSettings()Save global settings
streamDeck.settings.getGlobalSettings()Load global settings
streamDeck.system.openUrl(url)Open URL in browser
streamDeck.system.getSecrets()Get DRM secrets
streamDeck.profiles.switchToProfile()Switch profile
streamDeck.i18n.translate(key)Translate string

Device Types

IDDevice
0Stream Deck / Scissor Keys
1Stream Deck Mini
2Stream Deck XL
3Stream Deck Mobile
4Corsair G-Keys
5Stream Deck Pedal
6Corsair Voyager
7Stream Deck +
8SCUF Controller
9Stream Deck Neo
10Stream Deck Studio
11Virtual Stream Deck
12Galleon 100 SD
13Stream Deck + XL

Built-in Layouts (SD+)

IDNameDescription
$X1IconTitle + icon
$A0CanvasFull/partial canvas
$A1ValueTitle + icon + value
$B1IndicatorValue + bar
$B2GradientColor-mapped bar
$C1DoubleDual values

Key URLs

ResourceURL
Manifest Schemahttps://schemas.elgato.com/streamdeck/plugins/manifest.json
Layout Schemahttps://schemas.elgato.com/streamdeck/plugins/layout.json
OAuth Redirecthttps://oauth2-redirect.elgato.com/streamdeck/plugins/message/<UUID>
PI Debuggerhttp://localhost:23654/
Plugin Sampleshttps://github.com/elgatosf/streamdeck-plugin-samples