Skip to main content

CLI

Gaudi CLI is a command line tool that helps you utilize Gaudi toolkit.

Commands

build

Build entire project. Compiles Gaudi code and copies files to output folder

gaudi build [root]
root

Set working directory

dev

Start project dev builder which rebuilds project on detected code changes.

gaudi dev [root]
root

Set working directory

Options

--runtimePath, -r

Path to custom server runtime script. See embedded Gaudi.

--watch, -w

Path to custom resources dev mode should include in watched resources list. Supports glob patterns. Use multiple parameters to set multiple paths.

start

Start application server

gaudi start [root]

Options

--runtimePath, -r

Path to custom server runtime script. See embedded Gaudi.

root

Set working directory

db push

Push model changes to development database

gaudi db push [root]
root

Set working directory

db reset

Reset database

gaudi db reset [root]
root

Set working directory

db populate

Reset DB and populate it using given populator

gaudi db populate [root] [options]
root

Set working directory

Options

--populator, -p

Set working directory [required]

db migrate

Create DB migration file

gaudi db migrate [root] [options]
root

Set working directory

Options

--name, -n

Name of a migration to be created [required]

db deploy

Deploy new migrations to target database

gaudi db deploy [root]
root

Set working directory