Core Commands
Sauf provides a series of core commands to help you manage and operate your command-line application efficiently. Below is a list of the core commands that Sauf supports:
Start Development Server
dev: Start the application in development mode.-p, --port <port>: Specify the port the application will listen on (default is 3000).-h, --host <host>: Specify the host the application will listen on (default is localhost).
sh
$ npx sauf devsh
$ pnpx sauf devsh
$ yarn sauf devsh
$ bunx sauf devBuild Application
build: Compile the application for production environment.-p, --platform <platform>: Specify the build platform (e.g., node, deno).
sh
$ npx sauf buildsh
$ pnpx sauf buildsh
$ yarn sauf buildsh
$ bunx sauf buildSync Database
db:init: Initialize the database.
sh
$ npx sauf db:initsh
$ pnpx sauf db:initsh
$ yarn sauf db:initsh
$ bunx sauf db:initSeeding Database
db:seed: Add sample data to the database.
sh
$ npx sauf db:seedsh
$ pnpx sauf db:seedsh
$ yarn sauf db:seedsh
$ bunx sauf db:seedList Registered Routes
route:list: Display the list of routes registered in your application.
sh
$ npx sauf route:listsh
$ pnpx sauf route:listsh
$ yarn sauf route:listsh
$ bunx sauf route:list