Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions guides/plugins/plugins/creating-plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@ From your Shopware project's root directory, run:
bin/console plugin:create SwagBasicExample
```

Optionally, you can run this command to create a demo configuration file in the `Resources` directory:
### Skipping optional scaffold files

Pass the `--no-scaffold` flag to skip all optional scaffold files and generate only the required plugin skeleton:

```bash
bin/console plugin:create SwagBasicExample --create-config
bin/console plugin:create SwagBasicExample Swag\BasicExample --no-scaffold
```

The command will generate all the basic required files that are needed for an extension to be installed on a Shopware instance. Make sure to adjust the namespace in the files as per your need.
When running the command interactively without the flag, you will be asked, "Would you like to scaffold optional plugin files?". Answering "no" has the same effect.

### Structure for long-term maintainability

Expand Down
Loading