---
title: "Post From the Terminal With a Social Media CLI"
description: "Install the AdaptlyPost social media CLI with npm or Homebrew and schedule posts on 14 networks from Markdown files, CSV files and CI pipelines."
url: "https://adaptlypost.com/features/social-media-cli"
---

# Schedule Posts From Your Terminal With the AdaptlyPost Social Media CLI

Run adaptlypost, the social media CLI for terminals and CI, to create, schedule and watch posts on 14 networks from a Markdown file, a CSV file or a pipe.

[Start Your 7-Day Free Trial](https://adaptlypost.com/signup)[Open the CLI Reference](https://adaptlypost.com/features/cli/docs)

adaptlypost.com/posted

PostedView all your published posts2 posts

New mugs are in the shop today.

Platforms

PublishedSat, Dec 12, 4:00 PM

Platforms

PublishedThu, Dec 10, 11:00 AM

Platforms

Markdown

### Write the Post in Markdown

post create -f reads platforms, time and media from the frontmatter and the post text from the body.

platforms: \[TWITTER, LINKEDIN\]

at: 2026-12-15T09:00:00Z

\---

New mugs are in the shop today.

$adaptlypost post create -f launch.md✓Post created post\_7d21a0…

Bulk

### Check a Whole CSV First

post bulk --dry-run checks every row before anything is scheduled and names each refused row by line.

Roles

### See What a Key Can Do

whoami prints the workspace, the key's role and whether it can draft, schedule and publish.

Pipes

### Pipe Captions Into Posts

ai caption writes to stdout, so post create -t - schedules the caption it wrote.

1. Step 1  
### Install the CLI  
Run npm install -g @adaptlypost/cli, or brew install adaptlypost/tap/adaptlypost.
2. Step 2  
### Create a token and log in  
Create a token on the API Tokens page, run adaptlypost login and paste it. The CLI checks the token before saving it.
3. \-f launch.md \--at "+2h"  
Step 3  
### Create a post  
Run adaptlypost post create with a Markdown file and --at. Add --watch to follow the post until every network has published.

InstagramTikTokYouTubeXFacebookLinkedInPinterestThreadsBlueskyMastodonTelegramGoogle Business ProfileTumblrWordPress

### Instagram

Post a Reel, a Story or a feed post, invite up to 3 collaborators and add a first comment that goes out with the post.

post create\--ig-typeREEL\--ig-collaboratorlena.ceramics\--first-commentINSTAGRAM="Restock drops Friday at noon, link in bio."

### TikTok

Pick who can see the video, write a TikTok caption of up to 2,200 characters and turn Duet, Stitch and comments on or off.

post create\--tiktok-privacyPUBLIC\_TO\_EVERYONE\--text-forTIKTOK="Glazing the spring celadon bowls, start to finish."\--configTIKTOK='{"allowDuet":false}'

Upload a Short or a long video with its own title, and let YouTube publish it at your time so you can test thumbnails in YouTube Studio first.

post create\--yt-title"Spring glaze drop: celadon bowls"\--configYOUTUBE='{"postType":"SHORTS"}'\--first-commentYOUTUBE="Restock drops Friday at noon, link in bio."

### X

Write a shorter caption for X, add up to 25 replies as a thread and label AI-generated media.

post create\--text-forX="Spring glaze drop lands Friday."\--thread-replyX="Each bowl is thrown, trimmed and glazed by hand."\--alt"Three celadon bowls on a wooden shelf"

### Facebook

Post to a Page feed, as a Reel or as a Story, give the video a title and share the Reel to the Page's Story too.

post create\--typeVIDEO\--configFACEBOOK='{"postType":"REEL","shareToStory":true}'\--first-commentFACEBOOK="Restock drops Friday at noon, link in bio."

### LinkedIn

Publish a PDF or a slide deck as a LinkedIn document post with its own title, and add a first comment.

post create\--typeDOCUMENT\--document-title"Spring 2027 collection lookbook"\--first-commentLINKEDIN="Restock drops Friday at noon, link in bio."

### Pinterest

Pick the board by name, give the Pin a title and set the link it opens.

post create\--pinterest-board-name"Studio pottery"\--configPINTEREST='{"link":"https://kawastudio.com"}'\--alt"Three celadon bowls on a wooden shelf"

### Threads

Post a carousel of up to 10 images and videos, follow it with a thread of replies and add the AI info label.

post create\--typeCAROUSEL\--text-forTHREADS="Spring glaze drop lands Friday."\--thread-replyTHREADS="Each bowl is thrown, trimmed and glazed by hand."

### Bluesky

Add alt text to each image and follow the post with a thread of replies of up to 300 characters each.

post create\--typeIMAGE\--alt"Three celadon bowls on a wooden shelf"\--thread-replyBLUESKY="Each bowl is thrown, trimmed and glazed by hand."

### Mastodon

Add alt text to each image and a first comment that posts as a reply from the same account.

post create\--typeIMAGE\--alt"Three celadon bowls on a wooden shelf"\--first-commentMASTODON="Restock drops Friday at noon, link in bio."

### Telegram

Send a video of up to 50 MB to a channel or group with its caption, and pick the frame used as the thumbnail.

post create\--typeVIDEO\--text-forTELEGRAM="Glazing the spring celadon bowls, start to finish."\--thumbnail-ms-forTELEGRAM=1500

### Google Business Profile

Post an update, an event or an offer with a coupon code and a button such as Learn more or Book.

post create\--gbp-topicOFFER\--gbp-couponKILN15\--gbp-ctaLEARN\_MORE

### Tumblr

Give the post a title, up to 30 tags and a source link.

post create\--tumblr-title"Spring glaze drop: celadon bowls"\--tumblr-tagceramics\--tumblr-source-urlhttps://kawastudio.com

### WordPress

Publish a blog post, leave a WordPress draft or submit it for review, with its tags and categories.

post create\--wordpress-title"Spring glaze drop: celadon bowls"\--wordpress-statuspending\--wordpress-tagceramics

### Creator

Perfect for individuals and solopreneurs

$19012345678901234567890123456789012345678901234567890123456789

/month

[Start Free TrialStart Your 7-Day Free Trial](https://adaptlypost.com/signup)

* 30 connected social accounts
* Team collaboration
* 1 workspace
* 150 AI credits/month
* AI Image Studio

### Pro

Most Popular

For professionals and growing teams

$39012345678901234567890123456789012345678901234567890123456789

/month

[Start Free TrialStart Your 7-Day Free Trial](https://adaptlypost.com/signup)

* 60 connected social accounts
* 3 team members
* 3 workspaces
* 400 AI credits/month
* AI Image Studio

### Enterprise

For agencies and enterprises ready to scale

$89012345678901234567890123456789012345678901234567890123456789

/month

[Start Free TrialStart Your 7-Day Free Trial](https://adaptlypost.com/signup)

* 90 connected social accounts
* 10 team members
* 10 workspaces
* 1,000 AI credits/month
* AI Image Studio

### Every plan includes

* Unlimited scheduled posts
* AI Captions
* Image, video & carousel posts

Works with

### Custom

Custom limits, white-label and priority support

* Unlimited social accounts
* Unlimited team members
* Unlimited workspaces
* Unlimited AI credits
* AI Image Studio

Want to see the full feature comparison? [View pricing page](https://adaptlypost.com/pricing)

### 

The AdaptlyPost social media CLI is adaptlypost, a command-line tool for the AdaptlyPost API. It creates, schedules, watches and retries posts on 14 networks, bulk schedules from CSV files and runs in CI jobs.

### 

Install the AdaptlyPost CLI with npm install -g @adaptlypost/cli on Node.js 22.12 or newer, with Homebrew from adaptlypost/tap, or with curl -fsSL https://adaptlypost.com/install.sh | sh. Each one installs the adaptlypost command.

### 

adaptlypost login opens the API Tokens page, reads the token you paste and checks it with one request before saving it with file mode 0600\. In CI, set ADAPTLYPOST\_API\_TOKEN or pipe the token into adaptlypost login --token-stdin.

### 

adaptlypost post bulk schedules posts from a CSV file, a JSON file or a folder of Markdown files, in batches of 100\. Add --dry-run to check every row first, and the CLI names each refused row by line.

### 

adaptlypost post watch prints each network's result as it arrives and ends with a count of published and failed networks. It exits 0 when every network published, 1 when one failed and 8 on timeout, so it works as the last step of a deploy script.

### 

The AdaptlyPost CLI runs in any CI job with Node.js 22.12 or newer. Store the token as the ADAPTLYPOST\_API\_TOKEN secret, run post create with --watch, and the exit code fails the job when a network fails.

### 

adaptlypost post create has flags for each network's settings, such as --ig-type, --tiktok-privacy, --yt-title and --gbp-topic. Any setting without a flag goes in --config PLATFORM=json or in a platform block of the Markdown frontmatter.

### 

The AdaptlyPost CLI is free and MIT licensed, and its commands need an AdaptlyPost plan. Creator, Pro and Enterprise all include API access, and every plan starts with a 7-day free trial.

Want every command and flag? [Open the CLI reference](https://adaptlypost.com/features/cli/docs) Still have questions? Reach us at [contact@adaptlypost.com](mailto:contact@adaptlypost.com)

## Schedule Your Next Post From the Terminal

Start the 7-day free trial, create an API token, then run npm install -g @adaptlypost/cli.

[Start Your 7-Day Free Trial](https://adaptlypost.com/signup)[Open the CLI Reference](https://adaptlypost.com/features/cli/docs)

adaptlypost.com/analytics

Top Performing PostsLast 7 days

PostViewsLikes

Product launch12.4K1.9K

Behind the scenes9.8K2.3K

Weekly tips6.1K740

9:41

Tuesday, November 17

9:41

InstagramnowYour reel is getting more views than usual.
