Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 1.08 KB

File metadata and controls

28 lines (21 loc) · 1.08 KB

threads-cli skill

Use this repo when you need Threads workflows from the terminal.

Preconditions

  • Unofficial read commands need your own Threads/Instagram session cookies.
  • Official post commands need THREADS_ACCESS_TOKEN and THREADS_USER_ID, or ~/.config/threads/oauth.json.

Common Commands

threads-cli auth-status
threads-cli read feed --limit 20 --json
threads-cli read feed --user-id 12345 --limit 20 --json
threads-cli read thread https://www.threads.net/@aiden/post/ABC123 --json
threads-cli post text --text "Hello from threads-cli" --dry-run --json
threads-cli post text --text "Hello from threads-cli" --json
threads-cli post media --text "Hello with image" --media-url "https://example.com/image.jpg" --json

Guidance

  • Prefer --json when another tool or script will consume the output.
  • Treat read output as unofficial and post commands as official publishing API calls.
  • Run auth-status before read extraction when session health is uncertain.
  • Run --dry-run --json before live publishing generated content.
  • Do not log cookies or OAuth tokens.