Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/xPublic

post tweets from terminal

License

NotificationsYou must be signed in to change notification settings

devhindo/x

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI tool to post tweets on x (twitter) from terminal

preview

Table of Contents

Usage

Main Usage

  • post tweets from terminal like this
x"first tweet from terminal!"

Full Docs

interact with x (twitter) from terminal.USAGE  x<command>Main usage (posting a tweet)  x<tweet-text>    Examples:      one word tweet (no spaces)  x hi      multiple words tweet        x"hi from terminal"      with optional arg:          x -t"hi there"      extended optional arg:      x --tweet"hi x"Commands  -h             show thishelp  auth           start authorizing your X account  auth --url     get auth urlif it didn't open browser after running'x auth'  auth -v        verify authorization after running'x auth'  -t "text"      post a tweet  -v             show version  -c             clear authorized account

Installation

Linux

  • download the verion that matches computer's operating system fromlatest release
  • open a terminal in the directory where the file was downloaded
  • for example assume the file name isx_Linux_x86_64.tar.gz
  • remove any previous downloaded version of x
sudo rm -rf /usr/local/x
  • run the following command to extract the file
sudo tar -C /usr/local -xzf x_Linux_x86_64.tar.gz
  • Add/usr/local/x to the PATH environment variable
  • Do this by adding the following line to your $HOME/.profile or /etc/profile (for a system-wide installation):
# opening the filenano$HOME/.profile# and add this line at the end of the fileexport PATH=$PATH:/usr/local/x
  • run the following command to update the current session
source$HOME/.profile
  • verify the installation by running the following command
x version
  • if the installation was successful, you should see the version of x that was installed

Windows

  • download the verion that matches your archeticture fromlatest release
  • extract the file and get thex.exe file and place it in a directory that is in your PATH environment variable. a common one isC:\Windows\system32
  • open a terminal and runx --version to verify the installation
  • if the installation was successful, you should see the version of x that was installed

Mac

  • idk never used it before. but I have darwin binaries in thelatest release so you can try it out

Authentication

  • runx auth
  • an auth url will be opened in your browser, if it doesn't runx auth --url to get the url
  • verifyX CLI in the opened twitter page
  • after authorizing the app return to the terminal and runx auth -v

Note: runningx auth -v windows might flag the tool as a threat this is because it reads a config file that was previously generatedhere to identify the user by a random string that's unique for your device. you can check the functionhere. so if the threat shows up, allow it and continue.

  • if the authorization was successful, you should see averified message
  • now you can post tweets usingx -t "tweet text"
  • if anything went wrong runx -c to clear any settings and start over
  • if the problem persists, kindly open an issuehere and describe the problem and I'll be happy to help!

Posting tweets

x -t "tweet text" orx --tweet "tweet text" orx "hi there!" or even one word tweet likex spotifyURL


[8]ページ先頭

©2009-2025 Movatter.jp