SmallForce CLI

The smallforce CLI gives you full command-line access to the SmallForce platform — social media publishing, inbox management, CRM, Google reviews, and AI call analytics.

Install

Install globally from npm:

npm install -g smallforce

Verify the installation:

smallforce --version

Authentication

Every command requires a SmallForce API key. To get one, download the SmallForce app → open Settings → create an API key.

export SMALLFORCE_API_KEY=sf_sk_live_xxx

Add this to your shell profile (.zshrc, .bashrc, etc.) to persist across sessions.

Option 2: CLI flag

Pass the key directly on any command:

smallforce social accounts --api-key sf_sk_live_xxx

The environment variable takes precedence. Use --api-key for one-off commands or scripts that use a different key.

Global options

These options apply to every SmallForce command.

FlagDescriptionDefault
--api-key <key>SmallForce API keySMALLFORCE_API_KEY env var
--base-url <url>Override the API endpointhttps://backend.smallforcehq.com
--versionPrint CLI version
--helpShow help for any command

Quick start

# List your connected social accounts
smallforce social accounts

# Publish a post immediately
smallforce social create --content "Hello world! 🚀" --accounts <account-id> --mode now

# List inbox conversations
smallforce inbox conversations

# Check your Google reviews
smallforce reviews list

# View CRM contacts
smallforce contacts list

# List recent calls
smallforce calls list

Command reference

Command groupDescription
socialAgentic social media — create, schedule, and manage posts across 8 platforms
inboxList conversations, read messages, send replies
contactsCRM with pipeline stages, custom fields, and analytics
reviewsMonitor and respond to Google Business reviews
callsAI-powered call transcripts and analysis
orgOrganization details and configuration

Environment variables

VariableDescriptionDefault
SMALLFORCE_API_KEYYour API key for authentication
SMALLFORCE_BASE_URLOverride the backend API URLhttps://backend.smallforcehq.com