This article was written with my new tool devto, a CLI for creating new articles, and posting them to Dev.to. It's dead simple, and probably a little rough around the edges.
If you're interested in using the CLI app you can install it globally at
@hagnerd/devto, or run it with
Once installed it will be globally available with
The following commands are available:
devto new- creates a new article with frontmatter.
devto publish- pushes the article up to your dev.to account*
devto dashboard- just a quick alias to open dev.to/dashboard in the browser. Great if you want to push a draft up, and make changes or preview it.
devto reset- deletes your global ~/.devto file (which stores your API key)
* I haven't tested it with orgs so if someone that is part of an org tries it
out and the cli doesn't behave correctly, let me know!