← 返回
开发者工具 中文

Yarn - Control and Access Threads.com via the CLI

Interact with Threads (by Meta) via the yarn-threads-cli. Use when the user wants to read their home feed, likes, saved posts, or a specific thread; look up...
通过 yarn-threads-cli 与 Threads(Meta)交互。当用户想要阅读首页动态、点赞、收藏的帖子或特定帖子时使用;查看...
jeizzon
开发者工具 clawhub v0.1.3 1 版本 100000 Key: 无需
★ 0
Stars
📥 865
下载
💾 4
安装
1
版本
#latest

概述

yarn-threads

CLI for Threads (by Meta). Supports reading, browsing, and posting.

Installation

npm install -g yarn-threads-cli

Verify:

yarn-threads --version

Auth

Three options (in order of preference):

  • Chrome profile (recommended)
  • Firefox profile
  • Manual tokens (from browser DevTools → Application → Cookies on threads.net)

Refer to the yarn-threads-cli documentation for more information on how to set up authentication.

Verify auth: yarn-threads whoami

Key Commands

# Browse
yarn-threads home                        # Home feed
yarn-threads likes                       # Your liked posts
yarn-threads saved                       # Your saved/bookmarked posts

# Read
yarn-threads read <url-or-code>          # Single post
yarn-threads thread <url-or-code>        # Post + all replies
yarn-threads replies <url-or-code>       # Replies only

# Profiles
yarn-threads about <handle>              # User profile info
yarn-threads user-posts <handle>         # User's posts
yarn-threads followers <handle>          # User's followers
yarn-threads following <handle>          # Who user follows

# Search
yarn-threads search <query>              # Search users

# Post / Engage
yarn-threads post "text"                 # Create new post
yarn-threads reply <url-or-code> "text"  # Reply to a post
yarn-threads quote <url-or-code> "text"  # Quote a post

Output Flags

  • --json — structured JSON output (use for parsing media URLs, metadata)
  • --plain — stable plain text, no emoji/color (good for piping)
  • --json-full — includes raw API response (debugging)

Pagination

Feed/list commands support:

  • --all — fetch all pages
  • --max-pages — limit pages
  • --cursor — start from a specific page cursor

Media

When using --json, posts include CDN URLs for images and videos in the media fields. Analyze these with the image tool for visual context.

Examples

# Get last 2 pages of likes as JSON
yarn-threads likes --max-pages 2 --json

# Read a specific thread
yarn-threads read https://www.threads.net/@user/post/abc123

# Post with restricted replies
yarn-threads post "Hello Threads" --reply-control accounts_you_follow

# Get a profile
yarn-threads about zuck

See references/commands.md for full flag reference per command.

版本历史

共 1 个版本

  • v0.1.3 当前
    2026-03-29 18:30 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 920 📥 185,720
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 666 📥 323,767
developer-tools

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 425 📥 118,012