Skip to main content

Platform Subcommands

The CLI organizes commands by platform. Each platform exposes the same tools available through the MCP server and SDKs. Commands are dynamically generated from the Python SDK via reflection. When new tools are added to the platform, they appear in the CLI automatically.

Command Discovery

Use --help at any level to explore available commands and parameters:

Global Flags

These flags work with any command:

Examples

Twitter

Instagram

Reddit

TikTok

Tracking

Output Formatting

By default, the CLI outputs raw JSON. Use --output pretty for human-readable formatting:
Pipe JSON output to jq for advanced filtering and transformation: xpoz-cli twitter search_posts --query "AI" | jq '.data[].text'

Pagination

Search commands return paginated results (100 items per page). You have three options for navigating pages:
When using --all-pages on broad queries, set --max-pages to avoid unexpectedly large result sets. Each page consumes one call.

CSV Export

Use --export-csv-url to get a download URL for the full result set as a CSV file, hosted on S3. This is useful for bulk data collection and analysis in spreadsheet tools.
The command returns a URL instead of JSON rows. The CSV file includes all fields and all matching results. For more details on CSV exports, see the CSV Exports guide.

Next Steps

Authentication

Manage your access key and auth credentials.

Query Syntax

Write effective search queries with boolean operators and phrases.