Skip to main content
Generate commands enable you to create synthetic data, test data, and generated content for testing, development, and data population workflows. These commands are essential for creating test scenarios and populating systems with sample data.

Overview

Generate commands provide functionality for:
  • Generating random data (numbers, strings, dates)
  • Creating test data sets
  • Generating synthetic content
  • Creating mock data for testing
  • Populating databases with sample data

Common Use Cases

  • Test Data Creation: Generate test data for testing workflows
  • Development: Create sample data for development environments
  • Data Population: Populate systems with initial data
  • Mock Data: Generate mock data for API testing
  • Synthetic Content: Create synthetic content for testing

Command Parameters

Generate commands typically support the following parameters:
ParameterTypeDescriptionRequired
typestringData type to generate (string, number, date, etc.)Yes
formatstringFormat specification for generated dataNo
countnumberNumber of items to generateNo (defaults to 1)
minnumberMinimum value (for numeric types)No
maxnumberMaximum value (for numeric types)No

Generation Types

String Generation

Generate random strings:
{
  "command": "generate",
  "params": {
    "type": "string",
    "length": 10,
    "format": "alphanumeric"
  }
}

Number Generation

Generate random numbers:
{
  "command": "generate",
  "params": {
    "type": "number",
    "min": 1,
    "max": 100
  }
}

Date Generation

Generate dates:
{
  "command": "generate",
  "params": {
    "type": "date",
    "format": "YYYY-MM-DD",
    "startDate": "2024-01-01",
    "endDate": "2024-12-31"
  }
}

Best Practices

  • Use Realistic Data: Generate data that matches real-world patterns
  • Set Appropriate Ranges: Configure min/max values appropriately
  • Format Consistently: Use consistent formats for generated data
  • Test Generation: Verify generated data meets requirements
  • Document Patterns: Document generation patterns for reproducibility