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"
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
- Get API key from https://dev.to/settings/account
- Install plugin:
sc plugins install ./plugins/devto-publish - 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"
Links
- Plugin: https://github.com/javimosch/supercli/tree/master/plugins/devto-publish
- SuperCLI: https://github.com/javimosch/supercli
Happy publishing! 🚀
Top comments (0)