Introducing a Go command-line tool for interacting with Micropub servers

Featured image for sharing metadata for article

I've recently been adding a bit more media to my site, whether that's for the featured image for a post, or for screenshots for posts themselves.

In each case, I've been needing to upload it via a form on my personal Micropub client, which is slower, requires using a browser, and is not easily automatable.

As I've been looking to learn a bit more Go recently, I thought this would be a good chance to play around with Cobra and Viper, two libraries that power great command-line interfaces like hugo, glab and gh.

I've released this very early version on GitLab.

Currently, it supports uploading media to the media endpoint, but I'm looking to improve it over time, adding support for more content types, queries and operations.

Written by Jamie Tanna's profile image Jamie Tanna on , and last updated on .

Content for this article is shared under the terms of the Creative Commons Attribution Non Commercial Share Alike 4.0 International, and code is shared under the Apache License 2.0.

#go #micropub #micropub-go.

Also on: IndieWebCamp logo

This post was filed under articles.

Interactions with this post

Interactions with this post

Below you can find the interactions that this page has had using WebMention.

Have you written a response to this post? Let me know the URL:

Do you not have a website set up with WebMention capabilities? You can use Comment Parade.