CLI Command Reference¶
Complete reference for all Xeepy command-line commands.
Global Options¶
# All commands support these options
xeepy [OPTIONS] COMMAND [ARGS]
Options:
--config PATH Configuration file path
--profile NAME Profile to use (for multiple accounts)
--verbose, -v Enable verbose output
--quiet, -q Suppress non-essential output
--json Output in JSON format
--help Show help message
Authentication Commands¶
auth login¶
Authenticate with X/Twitter.
# Interactive browser login
xeepy auth login
# With specific profile
xeepy auth login --profile work
# Headless (cookie import)
xeepy auth login --cookies cookies.json
auth logout¶
Clear authentication.
auth status¶
Check authentication status.
auth export¶
Export session cookies.
Scraping Commands¶
scrape replies¶
Get replies to a tweet.
# Basic usage
xeepy scrape replies https://x.com/user/status/123
# With options
xeepy scrape replies https://x.com/user/status/123 \
--limit 500 \
--output replies.csv \
--format csv
# Include nested replies
xeepy scrape replies https://x.com/user/status/123 --nested
Options:
| Option | Description | Default |
|---|---|---|
--limit, -n | Maximum replies | 100 |
--output, -o | Output file | stdout |
--format, -f | Output format (csv, json, table) | table |
--nested | Include nested replies | false |
--since | Only replies after date | - |
scrape profile¶
Get user profile information.
xeepy scrape profile elonmusk
xeepy scrape profile elonmusk --json
xeepy scrape profile user1 user2 user3 --output profiles.csv
scrape followers¶
Get user's followers.
# Basic
xeepy scrape followers username
# With limit
xeepy scrape followers username --limit 1000 --output followers.csv
# Filter by followers count
xeepy scrape followers username --min-followers 1000
scrape following¶
Get who a user follows.
xeepy scrape following username --limit 500
xeepy scrape following username --output following.json --format json
scrape tweets¶
Get user's tweets.
# Recent tweets
xeepy scrape tweets username --limit 100
# With date range
xeepy scrape tweets username \
--since 2024-01-01 \
--until 2024-02-01 \
--output tweets.csv
# Include retweets
xeepy scrape tweets username --include-retweets
scrape search¶
Search for tweets.
# Basic search
xeepy scrape search "python programming"
# Advanced search
xeepy scrape search "AI tools" \
--limit 200 \
--type Latest \
--min-likes 100 \
--lang en
# Search with operators
xeepy scrape search "from:elonmusk AI" --limit 50
scrape hashtag¶
Get tweets with a hashtag.
scrape thread¶
Unroll a Twitter thread.
xeepy scrape thread https://x.com/user/status/123
xeepy scrape thread https://x.com/user/status/123 --output thread.md --format markdown
Follow/Unfollow Commands¶
follow user¶
Follow a user.
follow by-keyword¶
Follow users tweeting about keywords.
follow by-hashtag¶
Follow users using specific hashtags.
follow target-followers¶
Follow followers of a specific account.
xeepy follow target-followers competitor_account \
--limit 100 \
--min-followers 500 \
--skip-verified
unfollow non-followers¶
Unfollow accounts that don't follow you back.
# Preview mode
xeepy unfollow non-followers --dry-run
# Execute
xeepy unfollow non-followers --limit 100
# With whitelist
xeepy unfollow non-followers \
--whitelist @friend1 @friend2 \
--skip-verified \
--min-following-days 30
unfollow everyone¶
Mass unfollow (use with caution).
# ALWAYS preview first
xeepy unfollow everyone --dry-run
# With safety limits
xeepy unfollow everyone \
--limit 100 \
--whitelist-file whitelist.txt \
--delay 5
unfollow smart¶
AI-powered unfollowing based on engagement.
Engagement Commands¶
engage like¶
Like tweets.
# Single tweet
xeepy engage like https://x.com/user/status/123
# Multiple tweets
xeepy engage like url1 url2 url3
# Auto-like by keyword
xeepy engage like --keyword "python tips" --limit 20
engage retweet¶
Retweet tweets.
xeepy engage retweet https://x.com/user/status/123
xeepy engage retweet url1 url2 --quote "Great insight!"
engage comment¶
Reply to tweets.
xeepy engage comment https://x.com/user/status/123 "Great post!"
# AI-generated comment
xeepy engage comment https://x.com/user/status/123 \
--ai \
--style supportive
engage auto-like¶
Automatic liking based on criteria.
xeepy engage auto-like \
--keywords "python" "ai" "programming" \
--limit 50 \
--min-followers 500 \
--delay 2-5
engage bookmark¶
Bookmark tweets.
Monitoring Commands¶
monitor unfollowers¶
Check for unfollowers.
# Basic check
xeepy monitor unfollowers
# With notification
xeepy monitor unfollowers --notify discord
# Detailed report
xeepy monitor unfollowers --detailed --output report.json
monitor growth¶
Track follower growth.
monitor keywords¶
Monitor keyword mentions.
# Start monitoring
xeepy monitor keywords "brand" "product" \
--interval 5m \
--notify telegram
# One-time check
xeepy monitor keywords "brand" --since 1h
monitor accounts¶
Watch specific accounts for changes.
DM Commands¶
dm send¶
Send direct messages.
dm inbox¶
View DM inbox.
dm search¶
Search DMs.
Scheduling Commands¶
schedule tweet¶
Schedule a tweet.
xeepy schedule tweet "Hello world!" --at "2024-12-25 09:00"
xeepy schedule tweet "With media!" --at "2024-12-25 12:00" --media photo.jpg
schedule list¶
List scheduled tweets.
schedule delete¶
Delete scheduled tweet.
Export Commands¶
export csv¶
Export data to CSV.
xeepy export csv followers.json followers.csv
xeepy export csv --fields username,followers_count,bio
export json¶
Export to JSON.
export excel¶
Export to Excel.
Utility Commands¶
trends¶
Get trending topics.
rate-limits¶
Check rate limit status.
config¶
Manage configuration.
# Show current config
xeepy config show
# Set value
xeepy config set default_limit 100
# Edit in editor
xeepy config edit
version¶
Show version information.
Environment Variables¶
# Authentication
export XEEPY_SESSION_PATH=~/.xeepy/session.json
# Defaults
export XEEPY_DEFAULT_LIMIT=100
export XEEPY_RATE_LIMIT_DELAY=2
# Notifications
export XEEPY_DISCORD_WEBHOOK=https://discord.com/api/webhooks/...
export XEEPY_TELEGRAM_BOT_TOKEN=123456:ABC...
export XEEPY_TELEGRAM_CHAT_ID=123456789
# AI Providers
export XEEPY_OPENAI_API_KEY=sk-...
export XEEPY_ANTHROPIC_API_KEY=sk-ant-...
Examples¶
Daily Workflow¶
# Morning check
xeepy monitor unfollowers --notify discord
xeepy monitor growth
# Engagement session
xeepy engage auto-like --keywords "python" --limit 30
xeepy follow by-keyword "developer" --limit 20
# Evening cleanup
xeepy unfollow non-followers --limit 50 --skip-verified
Research Session¶
# Scrape competitor data
xeepy scrape followers competitor --limit 5000 -o comp_followers.csv
xeepy scrape tweets competitor --limit 500 -o comp_tweets.csv
# Analyze
xeepy scrape profile comp_followers.csv --output comp_profiles.csv
Content Curation¶
# Find content to engage with
xeepy scrape search "AI tools" --min-likes 1000 -o viral_ai.csv
# Scrape threads for inspiration
xeepy scrape thread https://x.com/user/status/123 -o thread.md