reddit-cli
command reference

search

Search posts, comments, subreddits, or users

Search posts, comments, subreddits, or users

Search posts, comments, subreddits, or users

Usage: reddit search [OPTIONS] <QUERY>

Arguments:
  <QUERY>  Words or name prefix to search for

Options:
      --format <FORMAT>      Choose how to render results [possible values: auto, json, jsonl, md, pretty]
  -s, --sub <SUB>            Restrict the search to a subreddit. Repeat to search multiple subreddits
      --source <SOURCE>      Choose the live API or the archive [possible values: auto, live, archive]
      --type <SEARCH_TYPE>   Choose what to search for [default: posts] [possible values: posts, comments, subs, users]
      --offline              Use only the local store and ignore cache expiration
      --sort <SORT>          Order results within each search [default: relevance] [possible values: relevance, hot, top, new, comments]
      --refresh              Fetch fresh results and update the cache
      --time <TIME>          Set the time period for live search [possible values: hour, day, week, month, year, all]
      --author <AUTHOR>      Restrict archive results to a username
      --no-cache             Skip cache reads and writes
  -q, --quiet                Suppress notes on stderr
      --since <SINCE>        Restrict archive results to items after this date
      --until <UNTIL>        Restrict archive results to items before this date
      --limit <LIMIT>        Maximum number of results to return [default: 25]
      --after <AFTER>        Resume from a previous page cursor
      --rank <RANK>          Order results after merging subreddit searches [default: interleave] [possible values: interleave, score, new, comments]
      --comments <COMMENTS>  Attach up to this many top root comments per post [default: 0]
  -h, --help                 Print help