---
title: "Social Media Scheduler CLI for Your Terminal | Maeve Social"
description: "Schedule posts, upload media, send work for review and pull analytics from your terminal. Sign in through your browser and pipe JSON into your scripts."
url: "https://maevesocial.com/features/cli"
---

# A social media scheduler CLI for your terminal

Check what’s going out, upload files, schedule posts and pull client numbers without opening Maeve Social. Sign in through your browser, and every command hands back JSON you can pipe straight into a script.

[Start Your Free Trial](https://app.maevesocial.com/auth/signup)[See maeve-cli on npm](https://www.npmjs.com/package/maeve-cli)

[![](https://marketing-media.maevesocial.com/loops/cli-hero-v01-poster.webp)]()

## Install it and sign in through your browser

Install maeve-cli from npm and run maeve auth:login. Your browser opens a Maeve Social page showing the short code your terminal printed. Approve it there and your terminal finishes signing in a few seconds later, with no key to copy or paste.

zsh

```
$ npm install -g maeve-cli
$ maeve --version
0.19.1

$ maeve auth:login
Open this URL to approve CLI login:
https://app.maevesocial.com/cli/device?user_code=YRPN-C7FS

User code: YRPN-C7FS
# Approve it in your browser, and a few seconds later:
{
  "data": {
    "apiUrl": "https://api.maevesocial.com",
    "authType": "cli_login",
    "tokenType": "Bearer",
    "expiresAt": "2027-02-27T08:18:44.134Z"
  },
  "meta": null
}
```

### Install it from npm

Install globally with npm install -g maeve-cli or pnpm add -g maeve-cli. It runs on Windows, macOS and Linux with Node.js 22 or newer.

### Or skip the install

Run a single command without installing anything using npx maeve-cli or pnpm dlx maeve-cli.

### Sign in through your browser

Run maeve auth:login and it prints a link and short code, then opens a Maeve Social page. Approve it there and your terminal finishes by itself a few seconds later.

### Approve from another device

If that machine has no browser, add --no-browser and open the printed link on any device you're signed in on, like your laptop or phone.

### Updating is one line

Run npm install -g maeve-cli\@latest whenever you want to update, and maeve --version to check what's installed.

![Approve CLI login in Maeve Social: the code shown in the terminal, YRPN-C7FS, the client Maeve Social CLI, access to your Maeve account and the workspaces where you can manage CLI access, when the code expires, a note that it acts as your account, and Deny and Approve buttons](https://maevesocial.com/marketing/screenshots/cli/maeve-social-cli-approve-login.webp)

### Check the code matches

The page shows the code your terminal printed. If it isn't the one in front of you, deny it.

### Ten minutes to approve

A code runs out after ten minutes. Run maeve auth:login again for a fresh one.

### 90 days from last use

Each login lasts 90 days from its last use, and every command moves that date forward. Terminals you use regularly stay signed in.

### Up to ten terminals

Each person can have 10 terminals signed in at once. Sign one out to make room for another.

## Your roles decide what a terminal can reach

A signed-in terminal acts under your Maeve Social account, and only reaches workspaces where your role can manage CLI access. You don’t set up separate permissions for scripts, and any role change applies on the terminal’s next command.

![The same CLI login request opened by an editor: You can't approve this CLI login, because their role doesn't let them manage CLI access in any workspace, with only a Deny button](https://maevesocial.com/marketing/screenshots/cli/maeve-social-cli-cannot-approve.webp)

### Owners, admins and managers

Organisation owners and admins reach every workspace, and managers reach the workspaces they manage. Custom roles work only if they can manage CLI access.

### Editors, creators and viewers can't

They see "You can't approve this CLI login" and can only deny the request, because their role can't manage CLI access anywhere.

### Only the workspaces you manage

Your terminal reaches only workspaces where you can manage CLI access, not ones where you're an editor or viewer. To limit access to one client, use an API key.

### Role changes count straight away

Stop managing a workspace and your terminal loses it on its next command. Leave the organisation and it reaches nothing.

### Done in your name

Changes show under your own name in Maeve Social, just like edits you make in the app. There's no separate log of what a script did.

### Included on every plan

The command line comes with every plan from day one of your free trial. Commands for Standard and Premium features, like approvals, client reviews and PDF reports, still need that plan.

## Every answer comes back as JSON

Every command prints JSON in the same shape as Maeve Social’s public API, so you can pipe it straight into jq or pass it to the next step in a script. There’s no table output, and errors come back as JSON too.

workspaces.sh

```
$ maeve workspaces:list
{
  "data": [
    # Earthen Pottery Studio and Fernhill Flowers come first, by name
    {
      "id": "072be177-7ddf-4328-8ba4-d5685a44b5ef",
      "name": "Lily Dia Jewellery",
      "slug": "lily-dia-jewellery",
      "organizationName": "Kindling Social",
      "roleDefinition": {
        "key": "manager",
        "name": "Manager",
        "isCustom": false
      },
      "capabilities": [
        "ads.manage",
        "ads.read",
        "analytics.read",
        # and 73 more, one for each thing you can do
      ],
      # cut short: a few ids and the old role field too
      "timezone": "Australia/Sydney"
    },
    # then two more, by name
  ],
  "meta": null
}

$ maeve reviews:summary --workspace 072be177-7ddf-4328-8ba4-d5685a44b5ef
{
  "data": {
    "yourTurn": 15,
    "inProgress": 14,
    "done": 12
  },
  "meta": null
}
```

### JSON you can pipe

Every answer comes back as data and meta, the same shape as the public API, so you can pipe it into jq or pass it to the next command.

### Errors you can catch

When a command fails, it prints a JSON error with a code and message, like INVALID\_OPTIONS or MISSING\_CREDENTIALS, and exits with 1.

### Secrets stay out of your logs

API keys, your login and anything named like a password or token are blanked out of everything the command line prints.

### Checked before it's sent

Your JSON file is checked locally before anything goes out. If a field is wrong, you get VALIDATION\_ERROR naming the field and nothing reaches Maeve Social.

### Help on every command

Add --help to any command for its options, or run maeve --help for the full list.

### It won't hang

Most requests give up after 30 seconds, and paid ads changes wait 3 minutes. Uploads get at least 15 minutes, and longer for a big video.

## Write and schedule posts from a file

Write a post in a JSON file and send it into Maeve Social with one command. It lands on your team’s calendar like any other draft or scheduled post, and required approval rules still hold it back until someone signs off.

[See the content editor](https://maevesocial.com/features/composer)

[]()

### A post from a file

Put the caption, media and settings for one account in a JSON file and run content:create. It saves a draft unless the file says to schedule or publish.

### Times in your client's time zone

Leave the offset off, like 2026-12-11T18:30, and the time is read in that workspace's own time zone.

### Safe retries after a timeout

If creating, scheduling or publishing times out, the error prints a key. Re-run with --idempotency-key to get the first answer back instead of making a second post.

### Approval rules still apply

When a required approval workflow covers a post, scheduling or publishing fails with REVIEW\_REQUIRED and the workflow's name. Send it through reviews:submit instead.

[See approvals](https://maevesocial.com/features/approvals)

### Upload one file at a time

Send one image, video, PDF or slide deck per command with media:upload, straight into a named folder if you like. Videos go up to 2 GB.

### Move or clear a time

Move a scheduled post with content:schedule, or clear its time with --clear while keeping its review. Channels of the same post set for the same time move with it.

### Back to draft

content:revert-to-draft takes every scheduled channel of a post back to draft in one go.

### Fix a live caption

Edit the caption on a Facebook or LinkedIn post that's already live using content:published-caption with --yes. It doesn't cover other networks.

### One account per post

Each content:create makes a post for one connected account. Posting to five accounts is five commands, or a short loop.

## Add --yes when you mean it

The command line never pauses for a yes or no prompt. Publishing now, replying to comments, sending reviews and clearing files from the Bin refuse to run until you add --yes. Some big changes still run without it, like deleting a post or scheduling.

[]()

### Stops cleanly with no prompt

Leave off --yes and the command stops before sending anything, telling you why. There's no prompt to answer, so scripts never hang waiting for input.

### Publishing and replying

Publishing now, changing a live caption, replying to or hiding a comment and sending an X article to your X drafts all need --yes.

### Reviews and decisions

Sending a review, reminding reviewers, commenting on a review and recording or overriding a decision need --yes.

### Clearing the Bin and other deletes

Deleting files from the Bin needs --yes, and so does deleting tasks, calendar notes, goals or bets, or building a PDF report.

### What runs without --yes

Deleting a post runs without --yes, and takes a published post down from most networks too. Retrying a failed post, scheduling and some review changes run straight through as well.

### Ads wait for you

Turning a campaign or ad on needs --yes, and a new campaign waits for your approval on a Maeve Social page. Pausing and budget changes go straight through.

[See ads](https://maevesocial.com/features/ads)

## The rest of your workspace, from the terminal

Scheduling posts is only part of it. Approvals, the Media room, inbox replies, PDF reports, content tables and paid ads all have commands too, under the same roles and plans as Maeve Social.

### Approvals and client reviews

Send posts for review, approve or request changes, override stages, send reminders and comment on Standard and Premium. Nobody can approve a post they wrote or sent.

[See approvals](https://maevesocial.com/features/approvals)

### The Media room

Upload, rename, organise and restore files, manage folders and labels, and bulk move, label or bin up to 100 files at once. Deleting sends files to the Bin first.

[See the Media room](https://maevesocial.com/features/media-room)

### The inbox

Read conversations, reply, leave notes, hide or delete comments, mark them read or resolved, and manage tags. LinkedIn conversations and auto reply rules aren't included.

[See the inbox](https://maevesocial.com/features/inbox)

### Analytics and reports

Pull account numbers, post results, audiences and content performance, and build a PDF report on Standard and Premium. It can also bring in an Instagram account's older posts.

[See analytics](https://maevesocial.com/features/analytics-reports)

### The calendar

Read the calendar for any date range with its filters, and add, move and delete date notes.

[See the calendar](https://maevesocial.com/features/calendar)

### Tasks and the board

Add, move and update tasks, leave comments, tick off checklists and read the posts on your content board.

[See the board](https://maevesocial.com/features/board)

### Planning content tables

Make a content table, add posts as rows, fill in their columns and remove rows. Docs and canvases stay in the app.

[See Planning](https://maevesocial.com/features/planning)

### The grid

Add, move, update and remove tiles, change a mockup's photos and cover, and turn a mockup into a draft.

[See the grid](https://maevesocial.com/features/grid-planner)

### Labels and hashtags

Manage labels, label groups and hashtag groups, and tag posts and files. Pillars and formats are read only.

[See tags](https://maevesocial.com/features/tags)

### Failed posts

List failed posts, retry them one at a time, or record whether a post Maeve Social couldn't confirm really went out.

[See failed posts](https://maevesocial.com/features/failed-post-recovery)

### Your watchlist

Read the Instagram accounts you watch, their posts and a benchmark of each. Adding accounts stays in the app.

[See research](https://maevesocial.com/features/research)

### Paid ads

Read reports and manage Meta, TikTok, LinkedIn and Google campaigns. A new campaign isn't made until you approve it in Maeve Social.

[See ads](https://maevesocial.com/features/ads)

### Campaigns and strategy

Create campaigns and their phases, put posts in them, and update your strategy, goals and bets.

### X articles

Write long X articles from an HTML file, with images from your Media room, and send them to your X drafts.

## See every signed-in terminal and sign one out

Open Settings, Developer, Command line to see every terminal you’ve signed in and when it was last used. If a laptop goes missing, you can revoke its login from any browser, including your phone’s.

[]()

### Every terminal you've signed in

Settings, Developer, Command line lists your logins with their created, last used and expiry dates.

### Sign a terminal out

Revoke a login and that terminal's next command is refused until you run maeve auth:login again.

### Or sign out from the terminal

Run maeve auth:logout to sign out in Maeve Social and delete the saved login from your computer.

### From your phone's browser

The Command line tab works in a phone's browser, so you can sign out a lost laptop from anywhere. The iPhone app doesn't have it.

### Only your own terminals

Each person sees and revokes only their own logins. Owners and admins don't get a list of everyone else's terminals.

### Resetting your password signs them out

Reset your Maeve Social password and every terminal you've signed in stops working straight away.

### Every login shares one name

Every entry is listed as Maeve Social CLI, with no computer name, so tell terminals apart by when they were last used.

## Use an API key on servers and in CI

A browser login is great on your own machine. For a nightly script, server or CI job, hand the command line an API key limited to the client workspaces that job actually needs.

[See the API](https://maevesocial.com/features/api)

nightly-report.sh

```
# A nightly job for Lily Dia, with its key in your CI's secrets
$ maeve analytics:summary --workspace $LILY_DIA --days 7 \
    --api-key-env MAEVE_LILY_DIA_KEY

# If the variable isn't set, it stops instead of using your login
$ maeve workspaces:list --api-key-env MAEVE_LILY_DIA_KEY
{
  "error": {
    "code": "MISSING_CREDENTIALS",
    "message": "Missing credentials. Environment variable MAEVE_LILY_DIA_KEY is not set."
  }
}
```

### Set MAEVE\_API\_KEY

With MAEVE\_API\_KEY set, every command uses the key instead of a browser login, with no other change to your script.

### A variable for each client

Keep each client's key in its own variable and pick it with --api-key-env. If that variable isn't set, the command stops instead of using your own login.

### Which one wins

\--api-key comes first, then --api-key-env or MAEVE\_API\_KEY, then your browser login. Run maeve auth:status to see which one is active without printing it.

### Only the workspaces you tick

A key reaches only the client workspaces it was given, so a nightly job for one client can't touch the others.

### Keys come from the app

Make and revoke keys in Settings, Developer, API keys. The command line can't make them.

## Pick the command line, the API or AI agents

All three reach the same Maeve Social workspaces under the same roles and plans. Use whichever one fits the job, or mix them across your team.

### The public API

For your own code, servers and scheduled jobs. A key per job, limited to the workspaces you pick, and the widest reach of the three.

[See the API](https://maevesocial.com/features/api)

### The maeve command line

For scripts, files on your computer and quick checks. You sign in through your browser, and it asks for --yes before it publishes, sends a review or replies to a comment.

### AI agents over MCP

For Claude, ChatGPT and other agents. They need your confirmation for risky actions and can't approve posts or answer messages.

[See agent access](https://maevesocial.com/features/mcp)

## Questions

### Which plans include the command line?

Every plan, from the first day of your free trial. Commands for Standard and Premium features, like approvals, client reviews and PDF reports, still need that plan.

### Who can sign in a terminal?

Organisation owners and admins, managers, and anyone with a custom role that can manage CLI access. Editors, creators and viewers can't approve a CLI login.

### How long does a login last?

90 days from the last time you used it. Every command moves that date forward, so a terminal you use regularly stays signed in.

### Can I limit a login to one client?

No. A browser login reaches every workspace where you can manage CLI access. To limit a script to one client, use an API key made for that client's workspace.

### Does every risky command ask for --yes?

No. Deleting a post, retrying a failed one, scheduling, adding a post to a review that's already running and changing a review's stages all run without it. Deleting a published post takes it down from most networks too, so check the id first.

### Can it approve posts?

Yes, on Standard and Premium, in a stage you're part of. Nobody can approve a post they wrote or sent for review, so your terminal can't approve your own posts.

### Can it reply to comments and messages?

Yes, once you add --yes, for conversations in your Maeve Social inbox. LinkedIn conversations and auto reply rules aren't included.

### Can my coding agent use it?

Yes. The Maeve Social plugin for Claude Code, Codex and other coding agents uses the command line for local files and for work its MCP connection doesn't cover, like answering the inbox. It checks with you before anything that needs --yes.

### Can I upload a whole folder at once?

Not in one command. media:upload takes one file at a time, so loop over the folder in your shell. Alt text and labels are added afterwards with their own commands.

### Can it connect accounts, add people or make API keys?

No. Connecting social and ad accounts, billing, managing workspaces, inviting people, roles, approval workflow settings and API keys all stay in the Maeve Social app.

### Can it write Planning docs?

No. It works with content tables: make one, add posts as rows, fill in their columns and remove rows. Docs and canvases stay in the app.

### Can I get a table instead of JSON?

No. Answers are always JSON. Use jq or your language's JSON tools to pull out the fields you need.

### Does it work on Windows?

Yes. It runs wherever Node.js 22 or newer does, including Windows, macOS and Linux.

### Where does it keep my login?

In one file in your user folder: AppData on Windows, Application Support on a Mac and .config on Linux, readable only by you where your system allows it. Set MAEVE\_CLI\_AUTH\_FILE to keep it somewhere else.

### Is there a log of what my scripts did?

Not a separate one. Changes show in each post's history under your name, and the Command line tab shows when each terminal was last used.

### Is the command line in the mobile app?

No. The command line runs on your computer, and the iPhone app has no Command line tab. You can still see and sign out your terminals from your phone's browser.
