Social Flow
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.
For the beginner-first path, start with the unified first-run flow, then open Studio:
social start-here
social studio
The Studio app is served at /studio/app/, opens on Start Here in Beginner Mode, and keeps that mode persisted per browser.
Quickstart
# 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,name
Natural-language mode:
social ai --provider deterministic "list ads account act_123"
social ai --provider ollama "get my facebook profile"
Core Commands
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 hatch
Studio
Launch the Studio app with:
social studio
That opens the canonical Studio route at /studio/app/. Onboarding notes:
- Facebook/Instagram: opens Graph Explorer to generate a token.
- WhatsApp: opens Meta App Dashboard (WhatsApp API Setup) for token generation.
social studio --frontend-path ... is available for local or external custom frontends, but it is not the primary app path.
WhatsApp Send Safety
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)
Config Compatibility
- Active state lives in
~/.social-flow/config.json
- Existing
~/.social-cli/config.json and ~/.meta-cli/config.json are migrated automatically
- Existing profile-based
~/.social-flow/config.json files continue to work; the latest CLI now reads and writes that shared schema directly
Developer Workflow
npm ci
npm run build:social-ts
npm run test:social-ts
npm start
npm run dev uses the same latest CLI entrypoint as the published social binary.
Docs
License
Open-core licensing:
评论