XActions CLI
Entry point: src/cli/index.js. Config stored at ~/.xactions/config.json.
Auth
xactions login # Interactive prompt for auth_token cookie
xactions logout # Removes saved cookie
Commands
xactions profile <username>
xactions followers <username> [-l <limit>] [-o json|csv]
xactions following <username> [-l <limit>] [-o json|csv]
xactions non-followers <username>
xactions tweets <username> [-l <limit>] [-o json|csv]
xactions search "<query>" [-l <limit>] [-o json|csv]
xactions hashtag <tag> [-l <limit>] [-o json|csv]
xactions thread <url>
xactions media <username> [-l <limit>]
xactions info
Output flags
| Flag | Description |
|---|---|
-l, --limit <n> |
Max items to scrape |
-o, --output <format> |
json or csv — saves to {username}_{command}.{ext} |
Default output is pretty-printed to terminal.
Programmatic use
The CLI wraps the same scraper API available as a library:
import { createBrowser, createPage, loginWithCookie,
scrapeProfile, scrapeFollowers, scrapeFollowing, scrapeTweets,
searchTweets, scrapeHashtag, scrapeThread, scrapeMedia,
exportToJSON, exportToCSV } from 'xactions';
See the twitter-scraping skill for return shapes and API details.
⚡ Explore XActions
100% free and open-source. No API keys, no fees, no signup.
Browse All Documentation