CLI

Command-line interface to do everything from the terminal.

Edit this page·Last updated: July 13, 2026

pepe.business CLI

The .pepe-business CLI exposes all API features from the terminal. Ideal for CI/CD scripts, bash automations, and quick debugging.

Installation

npm install -g @pepe/business-cli
# or
brew install pepe-business

Authentication

pepe auth login
# Opens the browser for OAuth

# or with a manual token
pepe auth login --token pk_live_xxx

Config is stored in ~/.pepe/config.json.

Main commands

# Publish a post
pepe posts create \
  --text "Hello world" \
  --platforms twitter,linkedin,facebook

# List connected accounts
pepe accounts list

# Schedule a post
pepe posts create --text "Demo tomorrow" \
  --platforms twitter \
  --schedule "2026-07-20T15:00:00Z"

# Get analytics for a post
pepe analytics post post_xxxx --range 7d

# Run Auto-Pilot (URL → generated content → post)
pepe autopilot run \
  --url https://my-shop.com \
  --platforms instagram,facebook \
  --generate video

JSON output

All commands support --json for structured output:

pepe posts list --json | jq '.[] | select(.status == "published")'

Available commands

GroupDescriptionNb commands
accountsChannel connection and management18
postsPost creation and management22
queueScheduling and slots14
inboxMessages, comments, mentions31
analyticsPerformance metrics28
adsMulti-network ads41
autopilotAuto generation + publishing12
phone-numbersNumber purchase and management9
webhooksCallback configuration8
api-keysAPI key management6

Total: 371 commands across 47 groups.

Shell completion

pepe completion bash >> ~/.bashrc
pepe completion zsh >> ~/.zshrc
pepe completion fish >> ~/.config/fish/config.fish

CI/CD scripts

The CLI is perfect for automating from GitHub Actions:

- name: Publish release notes
  run: |
    pepe posts create \
      --text "New version ${{ github.event.release.tag_name }}" \
      --platforms twitter,linkedin \
      --media-urls ${{ github.event.release.assets[0].browser_download_url }}
  env:
    PEPE_API_KEY: ${{ secrets.PEPE_API_KEY }}

Was this page helpful?