How to Use ReelsFarm CLI with GitHub Actions for CI/CD Social Media
· AI agents and MCP · 5 min read · Reels Farm Team
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.
Content Angle Generator
Generate content angles you can turn into hooks, captions, slideshows, or scripts.
Free Caption Formatter
Format TikTok and Instagram captions with cleaner spacing and line breaks. Keep your original wording, review the result, and copy it for posting.
Free Hashtag Cleaner
Remove duplicate hashtags, normalize spacing, and format a clean tag list. Choose a limit and grouping style, then copy the result for your next post.
Related reading
- What Is a Social Media CLI? Commands, Uses, and Limits
A social media CLI is a command-line interface for working with social accounts and posts through terminal commands. Depending on the product, it can list accounts, upload media, prepare posts, schedule publication, or inspect delivery results.
- 4 Social Media CLI Tools for Terminal Publishing
To post to social media from a terminal, choose a command-line interface that supports your account, media type, and publishing task. Check authentication, structured output, and delivery status before writing a recurring 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.
- 4 Ways to Connect AI Coding Agents to Social Media
An AI coding agent needs a supported connection before it can act on social accounts. Choose a tool interface that can access your media, identify destinations, and report completed publishing work.
Related comparisons
- ReelsFarm vs Blotato: Slideshows, Posting and Agents
A fact-checked comparison of ReelsFarm and Blotato for creators and builders.
- ReelsFarm vs Postiz: AI Content and Scheduling
A fact-checked comparison of ReelsFarm and Postiz for teams choosing between making content and scheduling it.
- Best TikTok Automation Tools for Content Teams
TikTok automation tools compared on what they make, how they post and price.
- Best Short-Form Content Automation Tools
Short-form automation tools compared on formats, posting, agents and price.
Drive traffic to what matters on autopilot.
Create standout posts, line up your calendar, and publish consistently without juggling a dozen tools.
