Skip to content

Code Generators

The velox make command scaffolds common code patterns.

GeneratorAliasDescription
procedurep, procProcedure files
schemas, zodZod schemas
migrationmigPrisma migrations
modelmFull model setup
testt, specTest files
resourcer, resFull resource stack
Terminal window
velox make procedure users
velox make procedure posts --crud
Terminal window
velox make schema User
velox make schema Post --crud
Terminal window
velox make migration create_users_table
velox make migration add_email_to_users
Terminal window
velox make resource Product

Creates: model, schema, procedures, and tests.

OptionDescription
--crudInclude CRUD operations
--soft-deleteAdd deletedAt field
--paginationAdd paginated list
--dry-runPreview without writing
--jsonMachine-readable output
Terminal window
velox make procedure users --crud
Created: src/procedures/users.ts
- listUsers (GET /api/users)
- getUser (GET /api/users/:id)
- createUser (POST /api/users)
- updateUser (PUT /api/users/:id)
- deleteUser (DELETE /api/users/:id)