The Basics
ArtisanNode
Introduction
ArtisanNode (bun artisanNode ...) is the framework CLI, similar in spirit to Laravel's php artisan. Use it for generators, database workflows, queue workers, route inspection, scheduler tasks, and SSR helpers.
General
tinker starts a REPL with the application container booted (providers, utils, global helpers, and services), similar to Laravel Tinker.
Make commands
make:exception is not currently part of the built-in command list. Create custom exception classes manually and forward with throw or next(error) so the framework error handler can process them (see Error handling).
Database
Prisma
See Prisma for configuration.
TypeORM
make:model scaffolds TypeORM entities into app/Entities/ when DB_ORM=typeorm. Migrations use the TypeORM CLI — see TypeORM.
Dev server
serve (alias watch) is the recommended backend dev command. It:
- watches backend paths (
app/,route/,jcc-express-mvc/,resources/views/, etc.) - reloads silently on code changes (no terminal clear, no restart banner)
- keeps the same
PORTfrom.envacross restarts - watches
public/hotso the backend picks up Vite when the dev asset server starts
Run Vite separately for frontend assets:
npm run dev (bun --watch server.ts) is a simpler alternative without the Laravel-style watcher. Prefer bun artisanNode serve when you want silent reloads, stable ports, and public/hot integration.
Queue, routes, build, schedule, SSR
Publish
publish copies a framework component's stub files into your app and wires it up (config, providers, routes). It is idempotent — re-run it safely; existing files are skipped unless you pass force=true.
Some publishables take extra arguments. The Monitor publishable accepts a view stack — pick the one your app uses (default jsblade):
See Monitor for details on each stack.
Cloudinary — wires config and the service provider so req.storeToCloudinary() works:
See Cloudinary for credentials and usage.
Custom commands
Custom commands live in app/Console/Command and are auto-discovered when they expose signature and handle.