AGENT SKILL

resend.quickstart

Agent workflow to manage emails, domains, API keys, and contacts via Resend CLI.

License 许可
MIT
所属仓库
javimosch/supercli
最近更新
2026-11-02
Stars
★ 57
Forks
5

01 前言 Front Matter

name
resend.quickstart
tags
resend,email,domains,api-keys,contacts,agents,usage
description
Agent workflow to manage emails, domains, API keys, and contacts via Resend CLI.

03 SKILL.md 正文

Resend CLI Quickstart

Use this when you need to send emails, manage domains, API keys, or audience contacts.

Commands

  • resend <resource> <action> — Execute resend commands
  • resend cli setup — Install resend-cli dependency globally
  • resend auth whoami — Display the current authenticated user/identity
  • resend auth logout — Log out and clear local credentials
  • resend cli doctor — Run environment diagnostics for Resend
  • resend emails send — Send an email via the Resend API
  • resend domains list — List all domains in your account
  • resend domains create — Create a new domain for sending/receiving
  • resend domains get — Retrieve details for a specific domain
  • resend domains delete — Delete an existing domain
  • resend domains verify — Verify an existing domain
  • resend api-keys list — List all API keys in your account
  • resend api-keys create — Create a new API key
  • resend api-keys delete — Delete an existing API key
  • resend webhooks list — List all webhooks in your account
  • resend webhooks create — Create a new webhook
  • resend webhooks delete — Delete an existing webhook
  • resend contacts list — List contacts in an audience
  • resend contacts create — Create a new contact
  • resend contacts delete — Delete an existing contact
  • resend _ _ — Passthrough command for any other Resend CLI command

1) Install the plugin

supercli plugins install ./plugins/resend --json

2) Setup the dependency

The plugin requires the official resend-cli installed globally via npm.

supercli resend cli setup

3) Authenticate

You can provide the API key in three ways (ordered by priority):

A. Environment Variable (Recommended for Agents/CI)

export RESEND_API_KEY=re_xxx

B. Command Flag

supercli resend emails send --api-key re_xxx ...

C. Persistent Login

supercli resend login --key re_xxx

4) Core Operations

Emails

supercli resend emails send \
  --from "you@yourdomain.com" \
  --to "recipient@example.com" \
  --subject "Hello" \
  --text "Body text" \
  --json

Domains

supercli resend domains list --json
supercli resend domains create --name "example.com" --json
supercli resend domains verify --id "dom_123" --json

API Keys

supercli resend api-keys list --json
supercli resend api-keys create --name "Production Key" --permission full_access --json

Audience Contacts

supercli resend contacts list --audience-id "aud_123" --json
supercli resend contacts create --audience-id "aud_123" --email "user@example.com" --json

5) Diagnostics

supercli resend auth whoami --json
supercli resend cli doctor --json

04 同仓库更多 Skills