Skip to main content

Publish your markdown to Medium, from the CLI

Project description


publish your markdown to Medium, from the CLI


$ pip install mdium



First off, set up mdium with your Medium integration token. You’ll have to generate one from the settings page.

$ mdium init <integration-token>

This will create a file at ~/.mdium, containing your integration token and author ID.


For publishing, your markdown doc must have the following frontmatter:

title: My Awesome Post
tags: ['some', 'tags', 'here']
status: draft

## markdown here

Note that the status field can be either draft or public.

Finally, run

$ mdium publish path/to/
Done! Your post has been published at

It’s that simple.


MIT © Anirudh Oppiliappan

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mdium, version 2.0.0
Filename, size File type Python version Upload date Hashes
Filename, size mdium-2.0.0-py3-none-any.whl (3.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size mdium-2.0.0.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page