How to Use ReelsFarm CLI with GitHub Actions for CI/CD Social Media
· MCP & AI Agents · 5 min read
CI/CD pipelines automate code deployment. ReelsFarm CLI lets them automate social media publishing too. Post to TikTok and Instagram on every release. Schedule content from cron. Run content generation from GitHub Actions. Here is how to set it up.
GitHub Actions runs your tests and deploys your code.
With ReelsFarm CLI, it can also generate and publish your social media content.
Why CI/CD for Social Media
Your product releases on a schedule. Your social content should follow the same cadence.
Every release can trigger a post. A new feature gets a TikTok slideshow. A product update gets an announcement across platforms. The CLI runs in CI the same way your build scripts do.
The human still reviews. CI prepares the draft. You approve in the pipeline or through the ReelsFarm review interface. Content goes live.
Step 1: Install the CLI in Your Workflow
Add a step to your GitHub Actions workflow that installs the ReelsFarm CLI.
```yaml
- name: Install ReelsFarm CLI
run: npm install -g @reelsfarm/mcp-client ```
The CLI is open source under MIT. The binary is `reelsfarm`.
Step 2: Authenticate
Add your ReelsFarm API key as a GitHub secret. Never commit it to the repository.
```yaml
- name: Authenticate
run: reelsfarm login --api-key ${{ secrets.REELSFARM_API_KEY }} ```
Create the API key in your ReelsFarm account settings under the MCP tab. Store it in GitHub Secrets as `REELSFARM_API_KEY`.
Step 3: Generate Content in CI
The CLI can generate content from your workflow. Product scenes, slideshows, hooks.
```yaml
- name: Generate release slideshow
run: reelsfarm slideshows prepare --product "${{ github.event.release.name }}" --format tiktok --slides 6 ```
The prepare command creates a draft. It does not publish. Credits are not spent until you confirm. The draft waits for review.
Step 4: Review and Confirm
Every destructive action requires confirmation. In CI, you can handle this two ways.
Review drafts through the ReelsFarm web app after the workflow runs. Or build a confirmation step into your pipeline that a human approves before the next stage proceeds.
The confirmation gate means CI never publishes without a human seeing the output first.
Step 5: Schedule Recurring Content
Use a scheduled workflow trigger for recurring content.
```yaml on: schedule:
- cron: '0 9 * * 1' # Every Monday at 9 AM
```
The workflow runs on schedule. The CLI prepares content. You review. It publishes.
What This Unlocks
Release-triggered posts. Every deploy publishes an announcement. Scheduled content cadences. Product updates become social posts automatically.
CI/CD for social media means your content pipeline runs on the same infrastructure as your code pipeline. No separate tool. No manual posting step. No forgetting to announce the release.
Related tools
If you want to turn this topic into something usable right now, start with these tools.
Related reading
- What Is a Social Media CLI? A Developer's Guide
A social media CLI turns posting and content creation into terminal commands. Here is what they are, how they work, and why AI agents use them.
- Best Terminal-Based Social Media Tools for Developers (2026)
Developers do not need a dashboard to post to social media. These terminal tools turn social media into commands you can script.
- How to Connect Claude Code to ReelsFarm MCP
Connect Claude Code to ReelsFarm MCP in a few steps. Generate UGC, create slideshows, schedule posts, and publish to social media from your terminal.
- Best CLI Tools for Scheduling Social Media Posts (2026)
Scheduling posts from a CLI means your AI agent handles the calendar. These are the best CLI tools for the job.
- Social Media Automation for Developer Teams — CI/CD for Content
Developer teams treat social media like infrastructure. ReelsFarm CLI integrates content creation and publishing into the same workflows you use for code.
- Connect ReelsFarm to Your AI Agent Workflow — The Full Setup Guide
Everything you need to connect ReelsFarm to an AI agent. MCP server config, CLI setup, API keys, and generating your first piece of content.
Related comparisons
- Best AI UGC Video Tools for Short-Form Content
A buying guide to AI UGC video tools, with ReelsFarm positioned for complete short-form content workflows.
- Best TikTok Automation Tools for Content Teams
A guide to TikTok automation tools for teams that need content creation, scheduling, publishing, and creative control.
- Best AI Slideshow Makers for TikTok
A guide to AI slideshow makers for TikTok, with ReelsFarm positioned for repeatable slideshow automation.
Turn one idea into a week of content.
Create, schedule, and publish AI-powered posts from one workflow built for consistent social growth.
Start for free