Vaahcms 2x
Generators
Introduction
Improve your productivity via quick command generator
Make sure you have installed VaahCLI from following command:
npm i vaah -g
Use following command to install VaahCMS
npx vaah cms:install
Use following command to generate Module
:
npx vaah cms:m
Use following command to generate CRUD
:
npx vaah cms:crud
Use following command to generate Theme
:
npx vaah cms:t
Use following command to generate Auth
for Theme:
npx vaah cms:auth
Some Important Commands For Module
Type | Command | |
---|---|---|
migration | npx vaah cms:m-make migration <module-name> <migration-name> | |
seed | npx vaah cms:m-make seed <module-name> <seed-name> | |
model | npx vaah cms:m-make model <module-name> <model-name> | |
controller | npx vaah cms:m-make controller <module-name> <controller-name> | |
view | npx vaah cms:m-make view <module-name> <name> | |
middleware | npx vaah cms:m-make middleware <module-name> <middleware-name> | |
observer | npx vaah cms:m-make observer <module-name> <observer-name> | |
trait | npx vaah cms:m-make trait <module-name> <trait-name> | |
test | npx vaah cms:m-make test <module-name> <test-name> | |
event | npx vaah cms:m-make event <module-name> <event-name> | |
listener | npx vaah cms:m-make listener <module-name> <listener-name> | |
npx vaah cms:m-make mail <module-name> <mail-name> | ||
notification | npx vaah cms:m-make notification <module-name> <notification-name> |
Some Important Commands For Theme
Type | Command | |
---|---|---|
migration | npx vaah cms:t-make migration <theme-name> <migration-name> | |
seed | npx vaah cms:t-make seed <theme-name> <seed-name> | |
model | npx vaah cms:t-make model <theme-name> <model-name> | |
controller | npx vaah cms:t-make controller <theme-name> <controller-name> | |
view | npx vaah cms:t-make view <theme-name> <view-name> | |
middleware | npx vaah cms:t-make middleware <theme-name> <middleware-name> | |
observer | npx vaah cms:t-make observer <theme-name> <observer-name> | |
trait | npx vaah cms:t-make trait <theme-name> <trait-name> | |
test | npx vaah cms:t-make test <theme-name> <test-name> | |
event | npx vaah cms:t-make event <theme-name> <event-name> | |
listener | npx vaah cms:t-make listener <theme-name> <listener-name> | |
npx vaah cms:t-make mail <theme-name> <mail-name> | ||
notification | npx vaah cms:t-make notification <theme-name> <notification-name> |
For more commands visit: vaahcli