ReddGrowReddGrow Docs

CLI Reference

Install and use @reddgrow/cli to query Reddit data from the terminal or shell scripts

@reddgrow/cli is the official command-line interface for the ReddGrow API. It supports both interactive human-readable output and raw JSON for scripting and AI agent pipelines.

Installation

# npm
npm install -g @reddgrow/cli

# yarn
yarn global add @reddgrow/cli

# pnpm
pnpm add -g @reddgrow/cli

# bun
bun add -g @reddgrow/cli

Verify the install:

reddgrow --version

Quick Start

1. Save your API key

reddgrow auth login rg_your_key_here

2. Verify the connection

reddgrow auth whoami

3. Make your first data request

reddgrow subreddits about MachineLearning

Command Groups

GroupAliasDescription
authManage API key and connection
subredditsrCommunity data, posts, comments, rules, wiki
postsPost search, batch fetch, comments, duplicates
usersuUser profiles and activity history
domainsdTrack Reddit mentions of any domain

Global Options

FlagDescription
--mode agentForce raw JSON output
--mode humanForce rich colored output
--helpShow help for any command
--versionPrint installed version

Further Reading

  • Auth — Login, logout, and connection status
  • Subreddits — All 10 subreddit commands
  • Posts — Post search and retrieval
  • Users — User profile and history
  • Domains — Domain mention tracking
  • Output Modes — Human vs agent mode
  • Configuration — Environment variables and config file