Skip to content
Back to skills

Devto Setup

ASecurity

Dev.to API setup for minipostiz-cli — generate API key, store credentials, posting format

  • 54 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 29, 2026
toolsjavascriptgojavabashnodeapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned May 29, 2026

npx -y skills add javimosch/supercli --skill devto-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Devto Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Devto Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/javimosch-devto-setup/badge)](https://www.skillsdirectory.com/skills/javimosch-devto-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: minipostiz-devto-setup
description: Dev.to API setup for minipostiz-cli — generate API key, store credentials, posting format
type: setup
---

# minipostiz-cli — Dev.to Setup

Dev.to has a simple REST API. One API key is all you need.

## What you need

| Credential | Flag |
|------------|------|
| API Key | `--apiKey` |
| Tags (optional) | `--tags` (comma-separated, max 4) |
| Series (optional) | `--series` |

---

## Step 1 — Generate an API Key

1. Go to https://dev.to → sign in
2. Click your avatar → **Settings**
3. **Extensions** → **DEV Community API Keys**
4. Enter a description (e.g. `minipostiz`) → **Generate API Key**
5. Copy the key — it's shown once (but you can generate multiple)

---

## Step 2 — Store in minipostiz-cli

```bash
minipostiz auth --platform devto --apiKey "YOUR_API_KEY"

# With optional defaults
minipostiz auth --platform devto \
  --apiKey "YOUR_API_KEY" \
  --tags "webdev,productivity,tools" \
  --series "My Series Name"

# Or via supercli
sc minipostiz auth set-devto --apiKey "YOUR_API_KEY"
```

---

## Step 3 — Test

```bash
minipostiz auth verify --platform devto
minipostiz publish --platform devto --message "# My First Post

This is the body of the article published via minipostiz-cli."
```

---

## Post format

Dev.to posts are **articles**. minipostiz-cli maps:
- **First line** of `--message` → article title (markdown heading stripped)
- **Remaining lines** → article body (markdown supported)

```bash
minipostiz publish --platform devto --message "# Article Title

## Introduction

Body content here. Supports **bold**, *italic*, \`code\`, etc."
```

---

## Optional: tags and series

Tags and series can be set at auth time (applied to all posts) or overridden:

```bash
# Update auth to set default tags
minipostiz auth --platform devto --apiKey "KEY" --tags "javascript,node,cli"
```

---

## Troubleshooting

| Error | Cause | Fix |
|-------|-------|-----|
| `401 Unauthorized` | Invalid API key | Regenerate key at dev.to → Settings → Extensions |
| `422 Unprocessable` | Article validation failed | Ensure title (first line) is non-empty |
| Post published but no tags | Tags not in auth | Add `--tags` to `minipostiz auth --platform devto` |

## Token lifetime

Dev.to API keys **do not expire** unless deleted from Settings → Extensions.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.