https://github.com/sujaudd1n/mastodoncli
Mastodon from terminal.
https://github.com/sujaudd1n/mastodoncli
api-rest mastodon mastodon-api
Last synced: about 2 months ago
JSON representation
Mastodon from terminal.
- Host: GitHub
- URL: https://github.com/sujaudd1n/mastodoncli
- Owner: sujaudd1n
- License: mit
- Created: 2023-02-10T17:51:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-07T18:40:29.000Z (almost 3 years ago)
- Last Synced: 2026-03-10T10:11:52.930Z (3 months ago)
- Topics: api-rest, mastodon, mastodon-api
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MastodonCLI
Post to Mastodon instance from the terminal.

## Setup
```console
$export DOMAIN=
$export TOKEN=
```
`` refers to *instance name* such as `mastodon.social`
`` refers to `access token`.
If you don't know your access token. Create one by following [these
steps.](#get-access-token)
## Run
```console
$python3 main.py
```
## Docs
To post some text. Use ```!p``` command.
```console
> !p hello from the terminal.
Wait...
Success.
```
The text "hello from the terminal." will be posted on the Mastodon instance.
To exit.
```console
> !exit
```
## Get access token
- Go the [settings/applications](https://mastodon.social/settings/applications).
- Click on **New application**.
- Give a name and click **submit**.
- Open newly created application.
- You can access you access token from here.