DEV Community

Javier Leandro Arancibia
Javier Leandro Arancibia

Posted on

New Dev.to Publish Plugin for SuperCLI: Publish Articles from the Command Line

I just released a new plugin for supercli that lets you publish articles to Dev.to directly from the command line.

What is devto-publish?

devto-publish is a supercli plugin that wraps the Dev.to REST API, allowing you to publish articles without leaving your terminal.

Usage

sc devto article publish   --api-key "your-api-key"   --title "My Article Title"   --body-markdown "# Content here"   --tags "javascript,nodejs"
Enter fullscreen mode Exit fullscreen mode

Features

  • Draft mode: Save as drafts before publishing
  • Tag management: Up to 4 tags with comma-separated format
  • Agent-friendly: Comprehensive skill guide with 10 common pitfalls
  • API key authentication: Secure flag-based auth

Setup

  1. Get API key from https://dev.to/settings/account
  2. Install plugin: sc plugins install ./plugins/devto-publish
  3. Publish away!

Agent Integration

The plugin includes a detailed SKILL.md that teaches AI agents how to use it, covering:

  • API key security best practices
  • Markdown escaping pitfalls
  • Tag format requirements
  • Rate limiting handling
  • Character encoding issues

This means agents using supercli can now publish articles to Dev.to as part of their workflows.

Example

Publish a technical article:

sc devto article publish   --api-key "$DEVTO_API_KEY"   --title "How to Build a REST API with Node.js"   --body-markdown "$(cat article.md)"   --tags "javascript,nodejs,api,webdev"
Enter fullscreen mode Exit fullscreen mode

Links

Happy publishing! 🚀

Top comments (0)