CodeIgniter Forums
CodeIgniter4 CLI-Create - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Addins (https://forum.codeigniter.com/forumdisplay.php?fid=34)
+--- Thread: CodeIgniter4 CLI-Create (/showthread.php?tid=75717)



CodeIgniter4 CLI-Create - monkenWu - 03-09-2020

Hello everyone.

I made a plugin based on the CodeIgniter4 cli mode.

Cli-Create is based on CodeIgniter4. It will help you generate template files more quickly when developing projects with CodeIgniter4.


If you need this plugin, you can visit the git page.

git page click me
The plugin has just been released and there may be some errors. If something goes wrong, I will fix it as soon as possible.


RE: CodeIgniter4 CLI-Create - includebeer - 03-09-2020

Nice! This could be very useful!

Can you add some example commands in the README?

I did not try it yet, but I’m not use how to use some of the options, like -space, -usemodel...


RE: CodeIgniter4 CLI-Create - monkenWu - 03-09-2020

(03-09-2020, 02:01 PM)includebeer Wrote: Nice! This could be very useful!

Can you add some example commands in the README?

I did not try it yet, but I’m not use how to use some of the options, like -space, -usemodel...

Hi, thank you for your reply. I have completed all the cases that may be used.

You can read the Readme again or read it in My Hackmd.


RE: CodeIgniter4 CLI-Create - includebeer - 03-10-2020

Much better, thanks!


RE: CodeIgniter4 CLI-Create - MGatner - 03-13-2020

Cool project! Thanks for sharing. Any plans to develop it more? I’d be interested to see Migrations added to integrate more closely with the Models, even if initially it was just an empty migration file. You could probably have a “-migration” option with create:model that called the native spark migration command.


RE: CodeIgniter4 CLI-Create - monkenWu - 03-14-2020

(03-13-2020, 10:20 AM)MGatner Wrote: Cool project! Thanks for sharing. Any plans to develop it more? I’d be interested to see Migrations added to integrate more closely with the Models, even if initially it was just an empty migration file. You could probably have a “-migration” option with create:model that called the native spark migration command.

Hi, thank you for your reply. But I don’t get it.
The CI4 CLI provides the "php spark migration" command.
What I want to know is, is there a relationship between "create model" and "create migration"?


RE: CodeIgniter4 CLI-Create - InsiteFX - 03-15-2020

The migration would create the tables with all the column names etc;

See the Myth/Auth migration file to get an idea of how it's done.