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
| Group | Description | Nb commands |
|---|---|---|
accounts | Channel connection and management | 18 |
posts | Post creation and management | 22 |
queue | Scheduling and slots | 14 |
inbox | Messages, comments, mentions | 31 |
analytics | Performance metrics | 28 |
ads | Multi-network ads | 41 |
autopilot | Auto generation + publishing | 12 |
phone-numbers | Number purchase and management | 9 |
webhooks | Callback configuration | 8 |
api-keys | API key management | 6 |
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 }}