x "first tweet from terminal!"
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 this help
auth start authorizing your X account
auth --url get auth url if 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
x_Linux_x86_64.tar.gz
sudo rm -rf /usr/local/x
sudo tar -C /usr/local -xzf x_Linux_x86_64.tar.gz
/usr/local/x
to the PATH environment variable# opening the file
nano $HOME/.profile
# and add this line at the end of the file
export PATH=$PATH:/usr/local/x
source $HOME/.profile
x version
x.exe
file and place it in a directory that is in your PATH environment variable. a common one is C:\Windows\system32
x --version
to verify the installationx auth
x auth --url
to get the urlX CLI
in the opened twitter pagex auth -v
Note: running x auth -v
windows might flag the tool as a threat this is because it reads a config file that was previously generated here to identify the user by a random string that's unique for your device. you can check the function here. so if the threat shows up, allow it and continue.
verified
messagex -t "tweet text"
x -c
to clear any settings and start overx -t "tweet text"
or x --tweet "tweet text"