groundmail-cli
Skill0 starsChanged 23 days agoMITView on GitHub
Use when operating Groundmail from the terminal — groundmail CLI, emails send, domains add/apply/verify, webhooks, suppressions, templates, API keys, automations. Trigger for shell scripts, CI, or npx groundmail workflows.
- Reads credentials
- Installs packages
In this repository4 other files it gives its agents.
- email-best-practicesSkill
- groundmail-mailboxesSkill
- groundmail-mcpSkill
- groundmailSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 123
Never print full gm_ secrets into logs or commits
- Distinctive: line 124
Prefer CLI for ops; prefer SDK inside application code
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Groundmail CLI
Package: groundmail-cli (bin: groundmail). Wraps the groundmail SDK.
export GROUNDMAIL_API_KEY=gm_…
# optional local:
# export GROUNDMAIL_API_URL=http://localhost:3003/api
npx -y --package=groundmail-cli -- groundmail <command>
# or: npm install -g groundmail-cli && groundmail <command>For API semantics (sandbox, errors, field names), also load the groundmail skill.
Common flows
Sandbox send
groundmail emails send \
--from noreply@mail.groundmail.dev \
--to owner@example.com \
--subject "Sandbox check" \
--html "<p>It works.</p>"to must be the account email when using the sandbox from.
Production send
groundmail emails send \
--from you@verified.com \
--to user@example.com \
--subject "Hello" \
--html "<p>Hi</p>"Domains
groundmail domains add example.com
groundmail domains apply example.com --provider cloudflare
groundmail domains verify example.com
groundmail domains listEmails ops
groundmail emails list --limit 25
groundmail emails get --id msg_…
groundmail emails insights --window 7d
groundmail emails cancel --id msg_…
groundmail emails resend --id msg_…
groundmail emails batch --file ./emails.jsonWebhooks
groundmail webhooks list
groundmail webhooks create --url https://yourapp.com/hooks
groundmail webhooks get --id wh_…
groundmail webhooks delete --id wh_…Suppressions
groundmail suppressions list
groundmail suppressions add --email user@example.com --reason bounced
groundmail suppressions remove --email user@example.comTemplates
groundmail templates list
groundmail templates get --id tpl_…
groundmail templates publish --id tpl_…Agent mailboxes
groundmail mailboxes create --local-part signup-bot
groundmail mailboxes wait signup-bot@agents.groundmailbox.com --since 2026-11-05T12:00:00Z
groundmail mailboxes reply <mailbox> mbm_… --text …See the groundmail-mailboxes skill.
API keys
groundmail keys list
groundmail keys create --name ci
groundmail keys delete --id key_…Rules
- Never print full
gm_secrets into logs or commits - Prefer CLI for ops; prefer SDK inside application code
- Output is JSON for most commands — pipe to
jqwhen needed
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

