# Automating Discourse Plugin Setup with \`create-discourse-plugin\` gem

**URL:** https://meta.discourse.org/t/automating-discourse-plugin-setup-with-create-discourse-plugin-gem/315013
**Category:** Developers
**Created:** [July 4, 2024, 1:53pm UTC](https://meta.discourse.org/t/automating-discourse-plugin-setup-with-create-discourse-plugin-gem/315013 "2024-07-04T13:53:41Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [July 31, 2024, 8:51am UTC](https://meta.discourse.org/t/automating-discourse-plugin-setup-with-create-discourse-plugin-gem/315013/4 "2024-07-31T08:51:01Z")

</div>

That would be `discourse_theme new` 😉

> [@Install the Discourse Theme CLI console app to help you build themes](https://meta.discourse.org/t/install-the-discourse-theme-cli-console-app-to-help-you-build-themes/82950):
>
> The [[discourse] Discourse Theme CLI](https://github.com/discourse/discourse_theme) is a ruby gem that allows you to use your editor of choice when developing Discourse themes and theme components. As you save files the CLI will update the remote theme or component and changes to it will appear live! Installing To play with it, make sure you have Ruby 2.5 or up installed. If you are on Windows, you have 2 options: Option 1: [Windows Subsystem for Linux](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux). Windows 10 has access to a full Linux environment, you can use it to install …

* * *

@grubba how would you feel about rolling this into core as a rake task? Like

```plaintext
bin/rake plugin:create

```

People need to have a working core dev environment to work on plugins anyway, so it seems like a good fit? It would also make more ‘official’, and easier for the whole team to maintain.

I wonder if it would be better to make it 100% git, instead of relying on people using github (and having the `gh` cli)? Some people use other services to host their plugins, and also may not want them to immediately be made public.

In discourse\_theme we maintain [a local cache](https://github.com/discourse/discourse_theme/blob/main/lib/discourse_theme/scaffold.rb#L77-L106) of the theme-skeleton, so it even works offline!

---

_[View the full topic](https://meta.discourse.org/t/automating-discourse-plugin-setup-with-create-discourse-plugin-gem/315013)._
