diff --git a/pages/common/resend.md b/pages/common/resend.md new file mode 100644 index 0000000000..9dcf227168 --- /dev/null +++ b/pages/common/resend.md @@ -0,0 +1,36 @@ +# resend + +> Send and manage emails from the command-line. +> More information: . + +- Log in to Resend (opens browser for authentication): + +`resend login` + +- Log in with an API key directly (for CI/agents): + +`resend login --key {{re_xxxxxxxxx}}` + +- Send an email: + +`resend emails send --from {{email@example.com}} --to {{recipient@example.com}} --subject "{{subject}}" --text "{{message}}"` + +- Create a template: + +`resend templates create --name "{{Welcome}}" --subject "{{subject}}" --html "{{

Hello

}}"` + +- Send an email using a template: + +`resend emails send --to {{recipient@example.com}} --template {{template_id}}` + +- List verified domains: + +`resend domains {{[ls|list]}}` + +- Show current authentication status: + +`resend whoami` + +- Check CLI version, API key, and domain status: + +`resend doctor`