New Dev.to Publish Plugin for SuperCLI: Publish Articles from the Command Line
Source: Dev.to
Overview
devto-publish is a SuperCLI plugin that wraps the Dev.to REST API, allowing you to publish articles to Dev.to directly from the command line.
Installation
sc plugins install ./plugins/devto-publish
Usage
sc devto article publish \
--api-key "your-api-key" \
--title "My Article Title" \
--body-markdown "# Content here" \
--tags "javascript,nodejs"
Options
--api-key– Your Dev.to API key (obtain it from ).--title– Article title.--body-markdown– Article body in Markdown format.--tags– Up to 4 tags, comma‑separated.
Features
- Draft mode – Save articles as drafts before publishing.
- Tag management – Supports up to 4 tags using a comma‑separated list.
- Agent‑friendly – Includes a comprehensive
SKILL.mdguide covering 10 common pitfalls for AI agents. - API key authentication – Secure flag‑based authentication.
The SKILL.md guide covers:
- API key security best practices
- Markdown escaping pitfalls
- Tag format requirements
- Rate‑limiting handling
- Character encoding issues
Example: Publishing 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 repository:
- SuperCLI repository:
- Get your Dev.to API key:
Happy publishing! 🚀