> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bringits.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate Commands

> Data generation commands for generating test data or synthetic data

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:

| Parameter  | Type   | Description                                        | Required           |
| ---------- | ------ | -------------------------------------------------- | ------------------ |
| **type**   | string | Data type to generate (string, number, date, etc.) | Yes                |
| **format** | string | Format specification for generated data            | No                 |
| **count**  | number | Number of items to generate                        | No (defaults to 1) |
| **min**    | number | Minimum value (for numeric types)                  | No                 |
| **max**    | number | Maximum value (for numeric types)                  | No                 |

## Generation Types

### String Generation

Generate random strings:

```json theme={null}
{
  "command": "generate",
  "params": {
    "type": "string",
    "length": 10,
    "format": "alphanumeric"
  }
}
```

### Number Generation

Generate random numbers:

```json theme={null}
{
  "command": "generate",
  "params": {
    "type": "number",
    "min": 1,
    "max": 100
  }
}
```

### Date Generation

Generate dates:

```json theme={null}
{
  "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

## Related Commands

* [Validation Commands](/stream/commands/validation) - Validate generated data
* [Parse Commands](/stream/commands/parse) - Parse generated data
* [Sink Commands](/stream/commands/sink) - Send generated data to destinations
