CLI
Schedule posts, manage inbox, run broadcasts, and automate campaigns across every channel from the terminal. Built for developers and AI agents. Outputs JSON by default.
Setup
Install
bash
npm install -g @salesint/cli
Authenticate
bash
salesint auth:login
# Opens your browser to authorize the CLI.
# An API key is created automatically and saved to ~/.salesint/config.json
bash
# Or set a key manually
salesint auth:set --key si_your_api_key_here
bash
# Verify setup
salesint auth:check
Quick Examples
bash
# Schedule a post for tomorrow at 9am
salesint posts:create \
--text "Hello from the SalesInt CLI!" \
--accounts acc_twitter123,acc_linkedin456 \
--scheduledAt "2026-06-10T09:00:00Z"
# List Instagram DM conversations
salesint inbox:conversations --platform instagram --pretty
# Create a WhatsApp broadcast and send it
salesint broadcasts:create \
--websiteId web_abc \
--accountId acc_whatsapp \
--platform whatsapp \
--name "Summer Sale" \
--message "Check out our deals this week!"
salesint broadcasts:send <broadcastId>
# Import contacts from CSV
salesint contacts:import --websiteId web_abc --file ./leads.csv
# Get best posting times
salesint analytics:best-time --platform instagram --pretty
Command Reference
Authentication
| Command | Description |
|---|
| salesint auth:login | Log in via browser (creates API key automatically) |
| salesint auth:set --key <key> | Save API key manually |
| salesint auth:check | Verify API key is valid |
Websites
| Command | Description |
|---|
| salesint websites:list | List all websites |
| salesint websites:get <id> | Get website details |
| salesint websites:create --url <url> | Add a new website |
| salesint websites:train <id> | Re-train AI on website content |
Social Posts
| Command | Description |
|---|
| salesint posts:create | Create a new post |
| salesint posts:list | List posts with optional filters |
| salesint posts:get <id> | Get post details |
| salesint posts:delete <id> | Delete a post |
| salesint posts:retry <id> | Retry a failed post |
Contacts
| Command | Description |
|---|
| salesint contacts:list | List CRM contacts |
| salesint contacts:create | Create a contact |
| salesint contacts:get <id> | Get contact details |
| salesint contacts:update <id> | Update a contact |
| salesint contacts:delete <id> | Delete a contact |
| salesint contacts:import --file ./contacts.csv | Bulk import from CSV |
Inbox
| Command | Description |
|---|
| salesint inbox:conversations | List DM conversations |
| salesint inbox:messages <id> | Get messages in a conversation |
| salesint inbox:send <id> | Send a message in a conversation |
| salesint inbox:comments | List post comments across accounts |
| salesint inbox:reply <postId> | Reply to a comment |
Broadcasts
| Command | Description |
|---|
| salesint broadcasts:list | List broadcasts |
| salesint broadcasts:create | Create a broadcast draft |
| salesint broadcasts:send <id> | Send a broadcast immediately |
| salesint broadcasts:schedule <id> | Schedule a broadcast for later |
| salesint broadcasts:recipients <id> | List broadcast recipients |
Campaigns
| Command | Description |
|---|
| salesint campaigns:list | List email campaigns |
| salesint campaigns:create | Create a campaign |
| salesint campaigns:send <id> | Send a campaign |
| salesint campaigns:analytics <id> | View campaign analytics |
Analytics
| Command | Description |
|---|
| salesint analytics:posts | Get post performance metrics |
| salesint analytics:daily | Get daily engagement stats |
| salesint analytics:best-time | Get best times to post |
| salesint analytics:leads | Get lead capture stats by website |
Configuration
The CLI stores settings in ~/.salesint/config.json. You can also use environment variables:
| Variable | Description | Required |
|---|
| SALESINT_API_KEY | Your API key | Yes |
| SALESINT_API_URL | Custom API endpoint | No |
ℹ️Environment variables override the config file. Useful for CI/CD pipelines and server deployments.
Supported Platforms
InstagramWhatsAppTelegramTwitter / XLinkedInFacebookYouTubeTikTokPinterestRedditBlueskyThreadsSnapchatGoogle Business