CLI
CLI commands
Every commentscraper command with what it does, and how to authenticate in CI or on a server without a browser.
Commands#
| Command | What it does |
|---|---|
commentscraper login | Authorize this machine. Opens your browser to sign in, then stores the token locally. |
commentscraper whoami | Show which Adlicio account the CLI is currently authenticated as. |
commentscraper platforms | List every source you can scrape on your current plan. |
commentscraper research "back pain remedies" --quiet | Scrape ranked angles, pains and hooks for a topic across every available source. |
commentscraper search "crm software frustrations" --quiet | Find the threads and comments most relevant to a query. |
commentscraper scrape "<thread-url>" --format json --quiet | Pull the comments from a single thread URL. Use --format csv or text and --output <file> to save. |
commentscraper mcp | Run the CLI as a local stdio MCP server for Claude Desktop. |
Non-interactive auth#
For CI or servers where you cannot open a browser, pass the token through an environment variable instead of login:
COMMENTSCRAPER_CLI_TOKEN=<token> commentscraper scrape "<url>" --format json --quiet