TypeScript library to access a Mastodon server from command line and in shell scripts.
Run the following command for usage in NPM projects:
npm install tsl-mastodon-cli
Run the following command for global installation:
npm install --global tsl-mastodon-cli
You need an access token for communication with a Mastodon server.
-
Open your Mastodon website and go to the profile settings of the account.
-
In the profile settings open the section 'Development'.
-
Create a new application and use the related access token.
$ npx tsl-mastodon-cli post-status \
--api 'https://mastodon.example/api/v1/' \
--token 'ABC' \
--media 'animation.gif' \
--text 'Hello, World!' \
--visibility public
The available options are not settled yet.
Please run npx tsl-mastodon-cli --help
to get the latest overview.