Skip to content

Content Commands ​

Newsletter, social, blog, scraping, research pipeline, intelligence reports.

Commands ​

optimal content newsletter ​

Newsletter generation and distribution

optimal content newsletter generate ​

Generate a branded newsletter with AI content and push to Strapi CMS

FlagDescriptionDefaultRequired
--brand <brand>Brand: CRE-11TRUST or LIFEINSURyes
--date <date>Edition date as YYYY-MM-DD (default: today)
--excel <path>Path to Excel file with property listings (CRE-11TRUST only)
--dry-runGenerate content but do NOT push to Strapi
bash
optimal content newsletter generate --brand CRE-11TRUST
optimal content newsletter generate --brand LIFEINSUR --date 2026-03-26

optimal content newsletter distribute ​

Trigger newsletter distribution via n8n webhook

FlagDescriptionDefaultRequired
--document-id <id>Strapi newsletter documentIdyes
--channel <ch>Distribution channel: email or allall
bash
optimal content newsletter distribute --document-id abc123 --channel email

optimal content newsletter status ​

Check delivery status of a newsletter

FlagDescriptionDefaultRequired
--document-id <id>Strapi newsletter documentIdyes
bash
optimal content newsletter status --document-id abc123

optimal content social ​

Social media post generation and publishing

optimal content social generate ​

Generate AI-powered social media ad posts and push to Strapi

FlagDescriptionDefaultRequired
--brand <brand>Brand: OPTIMAL, CRE-11TRUST, or LIFEINSURyes
--count <n>Number of posts to generate9
--week-of <date>Week start date YYYY-MM-DD (default: next Monday)
--campaign <theme>Campaign theme override (default: auto-rotated)
--dry-runGenerate without pushing to Strapi
bash
optimal content social generate --brand CRE-11TRUST
optimal content social generate --brand LIFEINSUR --count 3 --week-of 2026-03-23 --campaign "Q1 Launch"
optimal content social generate --brand OPTIMAL --count 5 --dry-run

optimal content social publish ​

Publish pending social posts to platforms via n8n

FlagDescriptionDefaultRequired
--brand <brand>Brand: OPTIMAL, CRE-11TRUST, or LIFEINSURyes
--limit <n>Max posts to publish
--dry-runPreview without publishing
--retryRetry previously failed posts

optimal content social queue ​

View pending social posts ready for publishing

FlagDescriptionDefaultRequired
--brand <brand>Brand: CRE-11TRUST or LIFEINSURyes

optimal content social instagram ​

Publish pending social posts to Instagram via Meta Graph API

FlagDescriptionDefaultRequired
--brand <brand>Brand: CRE-11TRUST or LIFEINSURyes
--limit <n>Max posts to publish
--dry-runPreview without publishing
bash
optimal content social instagram --brand CRE-11TRUST --limit 1

optimal content blog ​

Blog post publishing

optimal content blog publish ​

Publish a Strapi blog post and optionally deploy portfolio site

FlagDescriptionDefaultRequired
--slug <slug>Blog post slugyes
--deployDeploy portfolio site after publishing
bash
optimal content blog publish --slug quarterly-market-update
optimal content blog publish --slug quarterly-market-update --deploy

optimal content blog drafts ​

List unpublished blog post drafts

FlagDescriptionDefaultRequired
--site <site>Filter by site (portfolio, insurance)
bash
optimal content blog drafts
optimal content blog drafts --site fabric.optimal.miami

optimal content scrape-ads ​

Scrape Meta Ad Library for competitor ad intelligence

FlagDescriptionDefaultRequired
--companies <csv-or-file>Comma-separated company names or path to a text file (one per line)yes
--output <path>Save CSV results to file (default: stdout)
--batch-size <n>Companies per batch6
bash
optimal content scrape-ads --companies "Acme Corp,Beta Inc" --output ./ads-data.json
optimal content scrape-ads --companies "Acme Corp" --output ./ads.json --batch-size 10

optimal content pipeline ​

Content research pipeline: status, generate, approve, list

optimal content pipeline status ​

Show content pipeline status: scraped items, insights, posts, campaign

bash
optimal content pipeline status

optimal content pipeline generate ​

Generate an AI post for a platform from latest insight

FlagDescriptionDefaultRequired
--platform <platform>Platform: twitter or facebookyes
--topic <topic>Topic to generate foropenclaw
bash
optimal content pipeline generate --platform twitter
optimal content pipeline generate --platform facebook --topic openclaw

optimal content pipeline approve ​

Approve a draft post for Strapi sync

FlagDescriptionDefaultRequired
--id <uuid>Post UUID to approveyes
bash
optimal content pipeline approve --id <uuid>

optimal content pipeline list ​

List generated posts with optional filters

FlagDescriptionDefaultRequired
--status <status>Filter by status: draft, approved, posted, failed
--platform <platform>Filter by platform: twitter, facebook
--limit <n>Max posts to return20
bash
optimal content pipeline list
optimal content pipeline list --status draft
optimal content pipeline list --status approved --platform twitter

optimal content pipeline publish ​

Publish an approved post to its platform (X/Twitter)

FlagDescriptionDefaultRequired
--id <uuid>Post UUID to publishyes
bash
optimal content pipeline publish --id <uuid>

optimal content pipeline sync ​

Sync approved posts from Supabase to Strapi for editorial review

bash
optimal content pipeline sync

optimal content report ​

Intelligence report generation from research notes

optimal content report generate ​

Generate daily intelligence report from research notes

FlagDescriptionDefaultRequired
--date <YYYY-MM-DD>Date to generate report for (default: today)
--skip-pdfGenerate HTML only, skip PDF rendering
bash
optimal content report generate
optimal content report generate --date 2026-03-30
optimal content report generate --skip-pdf

optimal content research ​

Research pipeline: status, notes, reports

optimal content research status ​

Show research pipeline status

FlagDescriptionDefaultRequired
--jsonOutput as JSON
bash
optimal content research status
optimal content research status --json

optimal content research notes ​

View research notes for a date

FlagDescriptionDefaultRequired
--date <YYYY-MM-DD>Date (default: today)
bash
optimal content research notes
optimal content research notes --date 2026-03-30

optimal content research reports ​

List available intelligence reports

FlagDescriptionDefaultRequired
--date <YYYY-MM-DD>View specific date
--jsonOutput as JSON
bash
optimal content research reports
optimal content research reports --json

Built by Carlos Lenis in Miami