Publish an article from a CLI
Thanks to awesome API that dev.to
offers it is possible to publish and update an article without manual intervention. I wrote a simple CLI that uses this API and publishes an article. Here its README:
# Devto Client
This application reads your article and publishes or edits it in `dev.to` portal.
## File Format
The application expects an article in the following format.
# Header
## Meta
tags: go, programming
## Part 1, Intro
Text of the article
The level one header (`#`) will be used at a title for the article. Information in section `## Meta` represents a meta information about your article and won't be included into its text. `Tags` represent a list of tags of the article.
## Usage
Publish an article:
devto --key=$KEY $FILEPATH
where
$KEY - is API Key for dev.to portal
$FILEPATH -is filepath to the article.
This article was created using this tool :)
THe source code can be found here.
Top comments (0)