x-cli

CLI Free 500 lines By Infatoshi GitHub - Infatoshi/x-cli Social Media

Description

A command-line interface for X/Twitter that connects directly to the X API v2. Post tweets, replies, and quotes. Search tweets and read timelines. Like, retweet, and manage bookmarks. View tweet performance metrics. Works with both URLs and tweet IDs.

Key Features

  • Post tweets, replies, and quote tweets from the terminal
  • Search tweets and read home/user timelines
  • Like, retweet, and bookmark tweets
  • Get user profiles, followers, and following lists
  • View tweet performance metrics and engagement data
  • Delete tweets programmatically

Installation

1. Clone the repository: git clone https://github.com/Infatoshi/x-cli.git
2. Install with uv: uv tool install .
3. Configure credentials at ~/.config/x-cli/.env with your X Developer Portal API keys
4. Run: x-cli post "Your tweet here"

Stack & Dependencies

Python X API v2 uv