An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# MastodonCLI

Post to Mastodon instance from the terminal.

![demo image](assets/demo.png)

## 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.