Master Guides
Command Reference
The full Master CLI surface.
Run master help any time. Every command supports the obvious aliases.
master new <name>#
Scaffold a new full-stack app.
terminal
$ master new my-app$ master new my-app --db postgres # sqlite | mysql | postgres$ master new my-app --skip-frontend # backend only$ master new my-app --skip-install # don't run npm install$ master new my-app --skip-git # don't init a repo
master dev / build / start#
The Next.js-style lifecycle commands.
terminal
$ master dev # run backend + frontend together (watch mode) [alias: s]$ master build # build the frontend for production$ master start # run backend + frontend in production mode
master generate <type> <name>#
Generate code (alias g). See Generators.
terminal
$ master g scaffold post title:string body:text$ master g controller users index show$ master g model Comment body:text$ master g page about$ master g socket chat message$ master g middleware auth$ master g component billing
master db <action>#
Run migrations via MasterRecord. See Database.
terminal
$ master db migrate # apply pending migrations$ master db new AddPosts # create a migration from your models$ master db rollback # revert the latest migration$ master db enable # one-time: create the snapshot$ master db list # list migration files
master routes / info#
terminal
$ master routes # print the registered API routes$ master info # banner + Node/platform/project details$ master --version
Easter egg
Try
master power. By the power of Grayskull. ⚡