twitter-cli

Perform Twitter/X operations with Python and output JSON, YAML, or tables.

4|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/hwj123hwj/custom-skills --skill twitter-cli-hwj123hwj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: twitter-cli
Source: https://github.com/hwj123hwj/custom-skills/tree/main/skills/twitter-cli
Command: npx skills add https://github.com/hwj123hwj/custom-skills --skill twitter-cli-hwj123hwj

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines Twitter/X operations such as reading tweets, posting, replying, and user lookups, providing a convenient way to interact with the platform without the need for a web interface.

Core Features & Use Cases

  • Comprehensive Twitter/X Operations: Handle reading, posting, replying, liking, retweeting, following, searching, and user lookups.
  • Authentications: Supports browser cookie extraction or environment variables for authentication.
  • Output Formats: Offers rich tables, YAML, and JSON output formats.
  • Use Case: Easily manage your Twitter/X interactions from the command line, saving time and increasing productivity.

Quick Start

Use the twitter command to post a new tweet: twitter post "Hello from Twitter CLI!"

Frequently Asked Questions about twitter-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I post tweets and manage Twitter/X interactions from the command line?

You can manage Twitter/X interactions from the command line by using a CLI to perform operations like posting, replying, liking, retweeting, and searching. It requires Python 3.8+ and outputs data in rich tables, YAML, or JSON formats.

Can I authenticate Twitter/X CLI operations using browser cookies?

Yes, you can authenticate Twitter/X CLI operations using browser cookies. The tool supports authentication via browser cookie extraction or environment variables to securely manage your Twitter/X interactions.

Do I need Python to run Twitter/X command line operations for reading and posting?

Yes, you need Python 3.8 or higher to run Twitter/X command line operations. The CLI relies on Python to execute scripts that handle reading tweets, posting, replying, and searching.

What output formats are supported when fetching Twitter/X data via CLI?

When fetching Twitter/X data via CLI, the supported output formats are rich tables, YAML, and JSON. These formats allow you to easily parse tweet data and user lookup results in your terminal.

What's the best way to search and look up Twitter/X users without a web interface?

The best way to search and look up Twitter/X users without a web interface is using a command line tool. It allows you to execute user lookups and searches directly from your terminal, returning results in structured YAML or JSON.

Are there limitations when using a CLI for Twitter/X operations instead of the official web interface?

Using a CLI for Twitter/X operations streamlines reading and posting without a web interface, but it requires a Python 3.8+ environment and proper authentication setup via environment variables or browser cookies to function correctly.

Related Skills