Back to list
SuperCLI 新プラグイン「devto-publish」:コマンドラインから直接 Dev.to に記事を投稿する
New Dev.to Publish Plugin for SuperCLI: Publish Articles from the Command Line
Translated: 2026/4/25 6:30:47 翻訳信頼度: 92.7%
Japanese Translation
SuperCLI 用の新しいプラグイン「devto-publish」を発表しました。このプラグインは Dev.to の REST API をラップし、ターミナルを離れずに記事を投稿することを可能にします。
**コマンドライン使用例**
```
sc devto article publish --api-key "your-api-key" --title "My Article Title" --body-markdown "# Content here" --tags "javascript,nodejs"
```
**主要機能**
- Draft mode: 公開前にドラフトを保存
- Tag management: 1 つのフィールドにカンマ区切りの形式で最大 4 つのタグを設定
- Agent-friendly: 10 つの一般的な落とし穴を含んだ完全なスキルガイド
- API key authentication: 安全なフラグベースの認証
- API キー取得方法:https://dev.to/settings/account
**プラグインのインストール**
```
sc plugins install ./plugins/devto-publish
```
**AI エージェント向け詳細情報**
プラグインには、AI エージェントがその使い方をどのようにするかを学ぶための詳細な `SKILL.md` が含まれており、以下の内容をカバーしています:
- API キーのセキュリティベストプラクティス
- Markdown のエスケープに関する落とし穴
- タグの形式要件
- レート制限の処理
- 文字符号化の問題
これにより、SuperCLI を使用する AI エージェントは現在、ワークフローの一部として Dev.to に記事を投稿することができます。
**技術記事の公開例**
```
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"
```
**関連リポジトリ**
- プラグイン:https://github.com/javimosch/supercli/tree/master/plugins/devto-publish
- SuperCLI:https://github.com/javimosch/supercli
Happy publishing! 🚀
Original Content
I just released a new plugin for supercli that lets you publish articles to Dev.to directly from the command line.
devto-publish is a supercli plugin that wraps the Dev.to REST API, allowing you to publish articles without leaving your terminal.
sc devto article publish --api-key "your-api-key" --title "My Article Title" --body-markdown "# Content here" --tags "javascript,nodejs"
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
Get API key from https://dev.to/settings/account
Install plugin: sc plugins install ./plugins/devto-publish
Publish away!
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.
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"
Plugin: https://github.com/javimosch/supercli/tree/master/plugins/devto-publish
SuperCLI: https://github.com/javimosch/supercli
Happy publishing! 🚀