💻CLI

Social media management from your terminal.

Install @aidelly/cli and get 15 command groups for posting, scheduling, batch operations, analytics, inbox management, and more. Pipe JSON output to other tools. Use in scripts and CI/CD pipelines.

npm install15 command groupsJSON outputBatch CSV/JSONCI/CD ready

Get started in 3 steps

From zero to your first post in under a minute.

1

Install the CLI

Install globally or run with npx:

npm install -g @aidelly/cli

# Or run without installing:
npx @aidelly/cli
2

Authenticate

Log in with your Aidelly account. Your API key is stored locally.

aidelly auth login

For CI/CD: set AIDELLY_API_KEY or use aidelly config set api-key YOUR_KEY.

3

Create your first post

aidelly post create \
  --platform instagram \
  --text "Hello from the CLI!"

✓ Post created

{ "id": "post_x7k2", "status": "published" }

💻

Command reference

15 command groups covering every social media operation. Run aidelly <command> --help for details.

authLogin, logout, status, switch profiles
postCreate, list, get, update, cancel, schedule posts
mediaUpload images and videos for use in posts
connectionsList connected platforms and accounts
batchBulk operations from CSV or JSON files
analyticsFetch views, likes, comments, and shares
approvalsManage content approval workflows
inboxRead and reply to comments and DMs
automationsCreate and manage content automations
calendarView and manage content calendar
brandManage brand profiles and settings
webhooksCreate and manage webhook subscriptions
usageCheck API usage and rate limits
configGet, set, and list CLI configuration
mcpRun Aidelly as an MCP server for AI agents

Built for power users

👥

Multi-profile auth

Switch between accounts and workspaces with --profile. Store multiple API keys locally.

📦

Batch operations

Publish weeks of content from a CSV or JSON file. Supports --dry-run and --parallel flags.

💻

JSON output

Pass --json to any command for machine-readable output. Pipe to jq, scripts, or dashboards.

📅

Scheduling

Schedule posts with ISO 8601 timestamps. View and manage your content calendar from the terminal.

What you can build

Batch schedule a week of content

Upload a CSV with posts, platforms, and times, then run aidelly batch run posts.csv to publish everything at once.

CI/CD release announcements

Add a post step to your deployment pipeline that announces new releases across all platforms automatically.

Multi-brand management

Use --profile to switch between client accounts without re-authenticating. Perfect for agencies.

Script-powered analytics

Pipe aidelly analytics --json into jq or a dashboard tool for automated reporting.

Examples

# Schedule a post for tomorrow at 9am
aidelly post schedule \
  --platform linkedin \
  --text "We just shipped v2.0!" \
  --at "2026-03-27T09:00:00Z"

# Batch publish from a CSV file
aidelly batch run content.csv --parallel 3

# Check analytics as JSON
aidelly analytics summary --json | jq '.views'

# Upload media and attach to a post
aidelly media upload ./product-shot.jpg
aidelly post create \
  --platform instagram \
  --text "New product launch!" \
  --media media_abc123

# Switch profiles for multi-brand management
aidelly auth switch client-acme
aidelly post list --json

Global flags

These flags work with any command:

FlagDescription
--jsonOutput as machine-readable JSON
--profile <name>Use a named auth profile
--workspace <id>Override workspace ID
--brand <id>Override brand ID
--verboseShow debug output
--quietSuppress non-essential output
--no-colorDisable colored output

Common questions

How do I install the CLI?

Run npm install -g @aidelly/cli for a global install, or use npx @aidelly/cli to run without installing.

Do I need a paid plan?

Yes. API access requires an active paid plan (Launch, Growth, or Scale). Generate your API key from Settings → API Keys in the dashboard.

Can I use the CLI in CI/CD pipelines?

Yes. Set the AIDELLY_API_KEY environment variable or use aidelly config set api-key YOUR_KEY to configure non-interactively.

What output formats are available?

Human-readable tables by default. Pass --json to any command for machine-readable JSON output that pipes to jq or other tools.

Can I manage multiple accounts?

Yes. Use aidelly auth switch to change profiles, or pass --profile <name> to any command.

What platforms does the CLI support?

Instagram, TikTok, YouTube, X (Twitter), LinkedIn, Facebook, and Bluesky. All from a single command.