Deterministic CLI for Meta profile, post, and ads workflows.
Social Flow now standardizes on the latest deterministic CLI path. The shipped social binary, the dev entrypoint, and the TypeScript cli/ source all resolve to the same command surface and the same ~/.social-flow/config.json store.
# 1) Install
npm install -g @vishalgojha/social-flow
# 2) Set token, defaults, and AI provider
social onboard
# also provisions Chromium for browser automation unless you pass --skip-browser
# 3) Verify local readiness
social doctor
social status
# 4) Run a command
social profile get --fields id,nameNatural-language mode:
social ai --provider deterministic "list ads account act_123"
social ai --provider ollama "get my facebook profile"social onboard
social doctor
social status
social status --profiles
social config
social accounts summary
social accounts check --only needs-setup
social accounts switch <name>
social profile get --fields id,name
social post create --message "Hello team" --page-id PAGE_ID
social ads list --account act_123
social ops center
social logs
social replay <LOG_ID>
social ai --provider deterministic "create post \"Hello\" page 12345"
social hatchLaunch the agentic terminal UI with:
social hatchOnboarding notes:
- Facebook/Instagram: opens Graph Explorer to generate a token.
- WhatsApp: opens Meta App Dashboard (WhatsApp API Setup) for token generation.
social whatsapp send requires --sandbox or --prod (or set SOCIAL_WABA_MODE=prod). Sandbox mode prints the payload and never sends.
Retry tuning for transient Meta failures:
SOCIAL_META_RETRY_MAX(default 3)SOCIAL_META_RETRY_BASE_MS(default 1000)SOCIAL_META_RETRY_MAX_MS(default 8000)
- Active state lives in
~/.social-flow/config.json - Existing
~/.social-cli/config.jsonand~/.meta-cli/config.jsonare migrated automatically - Existing profile-based
~/.social-flow/config.jsonfiles continue to work; the latest CLI now reads and writes that shared schema directly
npm ci
npm run build:social-ts
npm run test:social-ts
npm startnpm run dev uses the same latest CLI entrypoint as the published social binary.
Open-core licensing:
- MIT for default OSS scope - see LICENSE
- Commercial license for explicitly marked commercial files/directories - see LICENSING and LICENSE-COMMERCIAL