@@ -16,24 +16,24 @@ chmod +x magegen.php
1616### Download the phar
1717
1818```
19- curl -o magegen.phar https://github.com/Skywire/MageGen/releases/latest/download/magegen.phar
19+ curl -o -L magegen.phar https://github.com/Skywire/MageGen/releases/latest/download/magegen.phar
2020chmod +x magegen.phar
2121sudo mv magegen.phar /usr/local/bin/magegen
2222```
2323
2424## Usage
2525
26- ### Commands
26+ Run from inside a Magento 2 project directory.
2727
28- All commands expect magepath as the first argument this is the path to the magento 2 installation.
28+ ` magegen --help `
2929
30- If omitted the current working directory will be used.
30+ ### Commands
3131
3232#### Make Module
3333
3434Create a new Magento module with registration and etc/module.xml files
3535
36- ` ./magegen.php make:module <magepath> [<namespace> [<module>]] `
36+ ` ./magegen.php make:module [<namespace> [<module>]] `
3737
3838* vendor - The vendor namespace e.g MyCompanyName
3939* module - The module name, e.g MyModuleName
@@ -44,7 +44,7 @@ Create or update a plugin class.
4444
4545You can update an existing plugin to add new methods.
4646
47- ` ./magegen.php make:plugin <magepath> [<subject> [<method> [<class> [<type> [<area>]]]]] `
47+ ` ./magegen.php make:plugin [<subject> [<method> [<class> [<type> [<area>]]]]] `
4848
4949* subject - The plugin subject class or interface, e.g \Magento\Checkout\Api\PaymentInformationManagementInterface
5050* method - The plugin subject method e.g. savePaymentInformationAndPlaceOrder
@@ -60,7 +60,7 @@ Create or update a CRUD entity model, with API interface, resource model and col
6060When updating a model you can add new properties, this will add the getters and setters to the interface and the model
6161class.
6262
63- ` ./magegen.php make:entity <magepath> [<module> [<entity> [<table> [<id>]]]] `
63+ ` ./magegen.php make:entity [<module> [<entity> [<table> [<id>]]]] `
6464
6565* module - The module name, e.g. MyCompany_MyModule
6666* entity - The entity model name
7171
7272Creates a repository and search result model with interfaces.
7373
74- ` ./magegen.php make:repository <magepath> [<module> [<entity> [<table> [<id>]]]] `
74+ ` ./magegen.php make:repository [<module> [<entity> [<table> [<id>]]]] `
7575
7676* module - The module name, e.g. MyCompany_MyModule
7777* entity - The entity model name
@@ -82,7 +82,7 @@ Create or update db_schema.xml.
8282
8383Will create entity table with primary key constraint, does not overwrite existing tables
8484
85- ` ./magegen.php make:schema [<magepath> [<module> [<entity>]]] `
85+ ` ./magegen.php make:schema [[<module> [<entity>]]] `
8686
8787* module - The module name, e.g. MyCompany_MyModule
8888* entity - The entity model name
0 commit comments