I've written 'toot', a very simple command-line utility to allow Mastodon posts to be sent from the command-line: https://www.npmjs.com/package/toot
@gael totally agree. It's super handy to have command-line access to these tools if you're:
a) someone who is on command-line all day , and or
b) wants to automate the messages programmatically