CLI
The Gaman Command Line Interface has several commands as follows:
Common
Section titled “Common”gaman dev
Section titled “gaman dev”gaman dev is an alias for npm run dev and is useful for running the Gaman app in development mode.
Example:
# nodenpx gaman dev
# ornpm run devgaman build
Section titled “gaman build”gaman build is an alias for npm run build and is useful for building your project to production mode. After building, the result will be in the dist/** folder by default.
Example:
# nodenpx gaman build
# ornpm run buildgaman start
Section titled “gaman start”gaman start is an alias for npm start and is useful for running the app in production mode that you’ve already built. So, before gaman start, you must build first.
Example:
# nodenpx gaman start
# ornpm startHere I give a bonus if you want to deploy with pm2, you can use the following command:
pm2 start --name your-project-name "npm start"Or you can go directly to the GamanJS entry point, which is dist/index.js.
Example:
pm2 start --name your-project-name "dist/index.js"