Skip to content

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:

  • 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 dev
sh
$ pnpx sauf dev
sh
$ yarn sauf dev
sh
$ bun sauf dev
  • db: init: Initialize the database.
sh
$ npx sauf db:init
sh
$ pnpx sauf db:init
sh
$ yarn sauf db:init
sh
$ bun sauf db:init
  • route:list: Display the list of routes registered in your application.
sh
$ npx sauf route:list
sh
$ pnpx sauf route:list
sh
$ yarn sauf route:list
sh
$ bun sauf route:list