--config-json <json> | no | | JSON object (non-secret fields only; use secret -stdin/-file flags) |
--config-file <path> | no | | JSON file path (- reads stdin; non-secret fields only) |
--name <name> | no | | Display name |
--transport <kind> | no | | Transport: resend or smtp |
--from-email <email> | no | | From address |
--from-name <name> | no | | From display name (no control characters or <>) |
--enabled | no | | Enable the server (default on create) |
--disabled | no | | Disable the server |
--host <host> | no | | SMTP host (required on update when —transport smtp) |
--port <n> | no | | SMTP port. Required on update when —transport smtp; create defaults from —security |
--security <mode> | no | | SMTP security: starttls, tls, or none (unauthenticated trusted relays; credentials are rejected). Required on update when —transport smtp; create defaults to starttls |
--username <user> | no | | SMTP username (non-secret) |
--api-key-stdin | no | | Read the Resend API key from stdin |
--api-key-file <path> | no | | Read the Resend API key from a file (- for stdin) |
--password-stdin | no | | Read the SMTP password from stdin |
--password-file <path> | no | | Read the SMTP password from a file (- for stdin) |
--ca-pem-stdin | no | | Read a custom SMTP CA PEM from stdin |
--ca-pem-file <path> | no | | Read a custom SMTP CA PEM from a file (- for stdin) |
--clear-ca-pem | no | | Remove a stored custom SMTP CA certificate |
--clear-username | no | | Clear stored SMTP username/password pair |
--base-url <url> | no | | Server base URL |
--json | no | | Emit machine-readable JSON on stdout |