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

# AutoAgents CLI

> CLI commands for automatic agent generation in PraisonAI TypeScript

# AutoAgents CLI Commands

The `praisonai-ts` CLI provides the `auto` command for automatic agent generation.

## Generate Agents

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# Generate agents from a topic
praisonai-ts auto "Build a web scraper"

# Generate with specific pattern
praisonai-ts auto "Create a data pipeline" --pattern sequential

# Specify number of agents
praisonai-ts auto "Process documents" --agents 3

# Get JSON output
praisonai-ts auto "Build an API" --json
```

**Example Output:**

```json theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
{
  "success": true,
  "data": {
    "agents": [
      { "name": "Researcher", "role": "Research specialist" },
      { "name": "Developer", "role": "Code developer" }
    ],
    "tasks": [...],
    "pattern": "sequential"
  }
}
```

## Available Patterns

| Pattern      | Description                |
| ------------ | -------------------------- |
| `sequential` | Agents execute in sequence |
| `parallel`   | Agents execute in parallel |
| `routing`    | Route to specific agents   |

## SDK Usage

For programmatic agent generation:

```typescript theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
import { AutoAgents } from 'praisonai';

const auto = new AutoAgentTeam({
  llm: 'openai/gpt-4o-mini',
  pattern: 'sequential'
});

const result = await auto.generate('Build a web scraper');
console.log('Agents:', result.agents.length);
console.log('Pattern:', result.pattern);
```

For more details, see the [AutoAgents SDK documentation](/docs/js/auto-agents).
