content generate
Usage
seo-ops content generate <keyword> [--words=<count>] [--tone=<style>] [--type=guide|listicle|review|faq] [--status=draft|publish] [--publish] [--provider=<name>] [--pipeline-id=<id>] [--category=<slug>] [--tags=<tags>] [--mock] [--path=<path>] [--output=<file>]
Generate SEO-optimized content using AI providers. Supports mock mode for testing.
Options
| Option | Default | Description |
|---|---|---|
--words | 1500 | Target word count |
--tone | professional | Writing tone |
--type | guide | Content type |
--status | draft | WordPress post status |
--publish | false | Publish directly to WordPress |
--provider | mock | AI provider (openai, anthropic, local, custom, mock) |
--pipeline-id | Pipeline CSV keyword ID to update status on generation | |
--category | Category slug for WordPress post (when publishing) | |
--tags | Comma-separated tags for WordPress post (when publishing) | |
--mock | Use mock generation (no AI provider required) | |
--output | stdout | Write to file instead of stdout |
Content Types
| Type | Description |
|---|---|
guide | Comprehensive guide format |
listicle | Top-N list format |
review | Product/service review |
faq | FAQ format |
Examples
Generate With Defaults (Mock Mode)
seo-ops content generate "best accounting software"
Output (mock mode):
[MOCK] Generating content for: best accounting software
Type: guide | Words: 1500 | Tone: professional
# Best Accounting Software: A Complete Guide
## Introduction
Choosing the right accounting software is one of the most important
decisions a business can make. With so many options available, finding
the best fit requires understanding your specific needs...
[MOCK CONTENT - 1500 words generated]
Specify Word Count and Tone
seo-ops content generate "seo guide" --words=2000 --tone=professional
Output:
Content generated: 2,004 words (professional tone)
Listicle Type
seo-ops content generate "top 10 seo tools" --type=listicle
Output:
[MOCK] Generating content for: top 10 seo tools
Type: listicle | Words: 1500 | Tone: professional
# Top 10 SEO Tools You Need in 2025
1. Ahrefs
2. SEMrush
3. Moz Pro
4. Screaming Frog
...
[MOCK CONTENT - 1500 words generated]
Save to File
seo-ops content generate "content marketing" --output=article.md
Output:
Content saved to: article.md (1,500 words)
Publish Directly to WordPress
seo-ops content generate "cloud accounting benefits" --publish --category=accounting --tags=cloud,software
Output:
Content generated and published: https://example.com/cloud-accounting-benefits
Post ID: 456
Status: publish