Skip to main content

A CLI tool for publish markdown articles to

Project description

Pipeline Status Coverage PyPI Project License PyPI Project Version


A CLI tool for publishing markdown articles to The tool will also update articles if they already exist on It matches articles based on title in the frontmatter.


To use the CLI you will need a API Key <>_. If you want to auto upload your local images to Imgur you need to use the -a or -imgur-id and enter your client id <>_.

pip install markdown-to-devto
markdown_to_devto --help

Usage: markdown_to_devto [OPTIONS]

A CLI tool for publish markdown articles to
-k, --devto-api-key TEXT
 Your API Key. [required]
-a, --imgur-id TEXT
 If set will auto upload local images on imgur.
-m, --file PATH
 The markdown file to publish.
-f, --folder PATH
 Path to folder to publish markdown files from.
-i, --ignore PATH
 Path to folder to ignore and not publish markdown files from .history.
-l, --log-level
 [DEBUG|INFO|ERROR] Log level for the script.
--help Show this message and exit.
$ markdown_to_devto --devto-api-key ATokenAPI --imgur-id ImgurClientId --folder tests/data --ignore another_folder --ignore .history --ignore node_modules

Example Articles

For an article which looks like this; it will first check if any articles exist on your account using the title Example Document. The frontmatter includes all the various options you can set.

title: Hello, World!
published: true
tags: discuss, help
date: 20190701T10:00Z
series: Hello series
cover_image: article_published_cover_image

This is an example document.


GitLab CI

You can use also use this in your CI/CD with the provided Docker image. Below is an example .gitlab-ci.yml file, you may wish to use or include. The advantage of this is you can publish your aritcles using CI/CD.

  - publish

  stage: publish
  before_script: []
    - markdown_to_devto --folder tests/data --ignore /tests/data/another_folder

Setup Development Environment

git clone
cd markdown-to-devto
pip install tox
make install-venv
source .venv/bin/activate
make install-dev


You can find the changelog here.

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 markdown-to-devto, version 0.1.0b3
Filename, size File type Python version Upload date Hashes
Filename, size markdown-to-devto-0.1.0b3.tar.gz (10.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page