Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Docs: fixed create new extension guide

Damian Legawiecbc9b6beec378
diff --git a/docs/developer/contributing/creating-an-extension.mdx b/docs/developer/contributing/creating-an-extension.mdx
index 02d5d588e8..94d3ab8a82 100644
--- a/docs/developer/contributing/creating-an-extension.mdx
+++ b/docs/developer/contributing/creating-an-extension.mdx
@@ -15,10 +15,17 @@ description: Learn how to create a Spree extension.
Let's build a simple extension. Suppose we want the ability to mark certain products as being on sale. We'd like to be able to set a sale price on a product and show products that are on sale on a separate products page. This is a great example of how an extension can be used to build on the solid Spree foundation.
+Install the Spree Extension CLI by running:
+
+
+```bash
+gem install spree_extension
+```
+
Run the following command from a directory of your choice outside of our Spree application:
```bash
-spree extension simple_sales
+spree-extension simple_sales
```
This creates a `spree_simple_sales` directory with several additional files and directories. After generating the extension make sure you change to its directory:
diff --git a/spree/template.rb b/spree/template.rb
index 5dadaea1fe..c22e343a5f 100644
--- a/spree/template.rb
+++ b/spree/template.rb
@@ -131,8 +131,6 @@ def show_success_message
say 'Useful commands:', :yellow
say ' bin/rails console # Rails console'
say " bin/rails #{USE_LOCAL_SPREE ? 'spree:load_sample_data' : 'spree_sample:load'} # Load more sample data"
- say ' bin/spree version # Spree CLI version'
- say ' bin/spree extension my_ext # Generate a new Spree extension'
say
end