Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2
devhindo/x
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
CLI tool to post tweets on x (twitter) from terminal
- post tweets from terminal like this
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 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
- 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 is
x_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
- download the verion that matches your archeticture fromlatest release
- extract the file and get the
x.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 run
x --version
to verify the installation - if the installation was successful, you should see the version of x that was installed
- idk never used it before. but I have darwin binaries in thelatest release so you can try it out
- run
x auth
- an auth url will be opened in your browser, if it doesn't run
x auth --url
to get the url - verify
X CLI
in the opened twitter page - after authorizing the app return to the terminal and run
x 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 a
verified
message - now you can post tweets using
x -t "tweet text"
- if anything went wrong run
x -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!
x -t "tweet text"
orx --tweet "tweet text"
orx "hi there!"
or even one word tweet likex spotifyURL
About
post tweets from terminal
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.