CLI
Schedule and manage social media posts across 14 platforms from the terminal. Built for developers and AI agents.
Schedule and manage social media posts across 14 platforms from the terminal. Built for developers and AI agents. Outputs JSON by default.
Setup
Install the CLI
npm install -g @getlatedev/cliAuthenticate
late auth:loginThis opens your browser where you can authorize the CLI. An API key is created automatically and saved to ~/.late/config.json.
You can optionally set a custom device name:
late auth:login --device-name "my-server"Running auth:login again from the same device replaces the existing key (no duplicates).
late auth:set --key "sk_your-api-key"Get your API key from getlate.dev/dashboard/api-keys.
Quick Example
# Schedule a post for tomorrow at 9am
late posts:create \
--text "Hello from the Late CLI!" \
--accounts <accountId1>,<accountId2> \
--scheduledAt "2025-06-01T09:00:00Z"Commands
Authentication
| Command | Description |
|---|---|
late auth:login | Log in via browser (creates API key automatically) |
late auth:set --key <key> | Save API key manually |
late auth:check | Verify API key works |
Profiles
| Command | Description |
|---|---|
late profiles:list | List all profiles |
late profiles:get <id> | Get profile details |
late profiles:create --name <name> | Create a new profile |
late profiles:update <id> | Update a profile |
late profiles:delete <id> | Delete a profile |
Accounts
| Command | Description |
|---|---|
late accounts:list | List connected social accounts |
late accounts:get <id> | Get account details |
late accounts:health | Check account health status |
Posts
| Command | Description |
|---|---|
late posts:create | Create a new post |
late posts:list | List posts |
late posts:get <id> | Get post details |
late posts:delete <id> | Delete a post |
late posts:retry <id> | Retry a failed post |
Analytics
| Command | Description |
|---|---|
late analytics:posts | Get post performance metrics |
late analytics:daily | Get daily engagement stats |
late analytics:best-time | Get best times to post |
Media
| Command | Description |
|---|---|
late media:upload <file> | Upload a media file |
Configuration
The CLI stores settings in ~/.late/config.json. You can also use environment variables:
| Variable | Description | Required |
|---|---|---|
LATE_API_KEY | Your API key | Yes |
LATE_API_URL | Custom API endpoint | No |
Environment variables override the config file.
Supported Platforms
Instagram, TikTok, X (Twitter), LinkedIn, Facebook, Threads, YouTube, Bluesky, Pinterest, Reddit, Snapchat, Telegram, and Google Business Profile.