DEV Community

Matt Hagner
Matt Hagner

Posted on

3

I Wrote This Article In The Terminal

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.

Prior Art

This tool was heavily inspired by Tim Deschryver who wrote this article about a VS Code extension called New Blog Post. If you use VS Code, check it out!


If you're interested in using the CLI app you can install it globally at @hagnerd/devto, or run it with npx @hagnerd/devto.

Once installed it will be globally available with devto new.

The following commands are available:

  1. devto new - creates a new article with frontmatter.
  2. devto publish - pushes the article up to your dev.to account*
  3. 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.
  4. 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!

Top comments (0)

Postgres on Neon - Get the Free Plan

No credit card required. The database you love, on a serverless platform designed to help you build faster.

Get Postgres on Neon

Instrument, monitor, fix: a hands-on debugging session

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️