Skip to content

Conversation

@smitmartijn
Copy link

Hi 👋

I'm not entirely sure this is something you're looking for, or accepting on this repository - but I added an add-action command to the CLI app for my own benefit while creating a SD plugin, and I figured I submit this as it might help others as well.

The streamdeck add-action command check if it's in a plugin directory, then adds a new action source file, modifies the main plugin.ts to import that and register the action (before the streamdeck.connect happens, optionally creates a property inspector file, and adds the action to the manifest.

You can also add the input as parameters, so to create a new action with a one-liner. Without params, it'll use inquirer to ask for the needed details.

Example:

streamdeck add-action --name "My Action" --action-id "my-action" --description "Does something awesome" (--ui|--no-ui) [--yes]

I've been using this for the MuteDeck plugin, and works like a charm. 😊

@GeekyEggo GeekyEggo self-requested a review June 30, 2025 18:18
@GeekyEggo
Copy link
Member

Hey Martijn, thanks for your interest contributing to the CLI. We've been recently discussing internally the concept of adding an action via a new command, so your timing is apt.

We'd like to improve the overall recommended project structure to streamline defining, configuring, and working with actions, but we also believe an add command could be a good interim stepping-stone. We'll take a look at the pull request and let you know any feedback as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants