CLI
和网页共用同一套随机引擎和词库:同一个 seed 在终端和网页上抽出的词完全一样。CLI 本身不调用任何搜索接口,所有“查”的动作都是打开浏览器跳转。
安装
npx trenddice # 或全局安装 npm i -g trenddice
需要 Node 20 以上。没网也能用:npm 包里内置了一份词库快照。
常用命令
- npx trenddice
- 交互模式,显示今日 10 词:↑↓ 选择,t Trends,g Google,a allintitle,d 讨论,s 收藏,x 看过,r 换一批
- trenddice roll --seed k3x9a2pq
- 指定种子抽词,结果与网页一致
- trenddice roll -n 20 --pools formula,wild --json
- 抽 20 个,只用公式和冷门词池,输出 JSON
- trenddice roll --me --surprise 30
- 为我抽(需要先导入画像),30% 纯随机
- trenddice trends "pdf merger" "pdf splitter" --range 12m --geo US
- 直接打开 Trends 对比(最多 4 个词 + 基准词)
- trenddice open "pdf merger" --via github
- 用任意跳转源打开:google / allintitle / github / reddit / domain …
- trenddice discuss "pdf merger"
- 打开这个词的网页讨论页
- trenddice fav list | add <word> | rm <word> | export --format md
- 收藏管理,导出格式与网页一致
- trenddice compare
- 从收藏里选最多 4 个,一起打开 Trends 对比
- trenddice pools update
- 拉取最新的新词词库
- trenddice config set bench gpts
- 设置基准词;还可以设置 geo / range / hl / weights / site
- trenddice profile prompt
- 打印画像提示词并复制到剪贴板
- trenddice profile import
- 导入 agent 输出的 JSON(文件、管道或剪贴板)