Skip to main content

CRUD Command

The crud command generates basic CRUD (Create, Read, Update, Delete) operations for your zopio project. This command creates the necessary files for handling data operations in your application.

Usage

Options

Examples

Generate CRUD operations for a User model

Generate CRUD operations with a custom output directory

Generated Files

When you run the crud command, the following files will be generated:
  1. Controller: Handles HTTP requests and responses
  2. Service: Contains business logic for CRUD operations
  3. Repository: Interacts with the database
  4. Routes: Defines API endpoints for CRUD operations
  5. Model: Defines the data structure
For more specialized CRUD generation, you can use these related commands: