TWT is a command-line tool written in Go that allows you to post tweets to Twitter directly from your terminal.
Usage :
- Obtain your Twitter API keys from the Twitter Developer Portal.
- Run
twt
in your terminal. - Use
twt -c
to configure your Twitter API keys. - Enter your Twitter API keys when prompted.
- Enter your tweet content when prompted.
github repo for more information : TWT repo website : website Installation
Linux
sudo curl -L -o /usr/local/bin/twt https://github.com/EuclidStellar/twitter-cli-golang/releases/download/V1.0.2/twt_linux
sudo chmod +x /usr/local/bin/twt
macOS
sudo curl -L -o /usr/local/bin/twt https://github.com/EuclidStellar/twitter-cli-golang/releases/download/V1.0.2/twt_macos
sudo chmod +x /usr/local/bin/twt
Windows
- Download the
twt.exe
binary from the Releases page and add it to your system's PATH. -
- Move the downloaded
twt.exe
file to a directory of your choice. For example, you can create a directory namedC:\twt
and movetwt.exe
there.
- Move the downloaded
- Right-click on the Start button and select "System".
- In the System window, click on "Advanced system settings" on the left side.
- In the System Properties window, click on the "Environment Variables..." button.
- In the Environment Variables window, under "System variables", select the "Path" variable and click on "Edit...".
- In the Edit Environment Variable window, click on "New" and enter the path to the directory where you placed
twt.exe
(e.g.,C:\twt
). - Click "OK" on all windows to save the changes.
- Open a new Command Prompt window and you should be able to run
twt
from anywhere.
From Source
If you have Go installed, you can build twt
from source:
go install github.com/EuclidStellar/twitter-cli-golang@latest
if path is not in usr/local/bin then use this command
sudo mv twt /usr/local/bin