auth0 email templates update
Update an email template.
To update interactively, use auth0 email templates update with no arguments.
To update non-interactively, supply the template name and other information through the flags.
Usage
auth0 email templates update [flags]
Examples
auth0 email templates update
auth0 email templates update <template>
auth0 email templates update <template> --json
auth0 email templates update <template> --json-compact
auth0 email templates update welcome --enabled=true
auth0 email templates update welcome --enabled=true --body "$(cat path/to/body.html)"
auth0 email templates update welcome --enabled=false --body "$(cat path/to/body.html)" --from "welcome@example.com"
auth0 email templates update welcome --enabled=true --body "$(cat path/to/body.html)" --from "welcome@example.com" --lifetime 6100
auth0 email templates update welcome --enabled=false --body "$(cat path/to/body.html)" --from "welcome@example.com" --lifetime 6100 --subject "Welcome"
auth0 email templates update welcome --enabled=true --body "$(cat path/to/body.html)" --from "welcome@example.com" --lifetime 6100 --subject "Welcome" --url "https://example.com"
auth0 email templates update welcome -e=true -b "$(cat path/to/body.html)" -f "welcome@example.com" -l 6100 -s "Welcome" -u "https://example.com" --json
auth0 email templates update welcome -e=true -b "$(cat path/to/body.html)" -f "welcome@example.com" -l 6100 -s "Welcome" -u "https://example.com" --json-compact
# Discover the payload schema
auth0 email templates update --schema
auth0 email templates update --schema --json
# JSON input mode (for agents and automation)
auth0 email templates update welcome --data '{"body":"<html>Welcome!</html>","enabled":true}'
auth0 email templates update welcome --data @template.json
cat template.json | auth0 email templates update welcome
Flags
-b, --body string Body of the email template.
--data string JSON payload for the operation, as a JSON string or file path (@file.json). Can also be piped via stdin.
-e, --enabled Whether the template is enabled (true) or disabled (false). (default true)
--force Skip confirmation.
-f, --from string Sender's 'from' email address.
--json Output in json format.
--json-compact Output in compact json format.
-l, --lifetime int Lifetime in seconds that the link within the email will be valid for.
--schema Print the request payload schema for this command and exit. Use with --json or --json-compact for machine-readable output.
-s, --subject string Subject line of the email.
-u, --url string URL to redirect the user to after a successful action.
Inherited Flags
--agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable.
--debug Enable debug mode.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Related Commands
- auth0 email templates show - Show an email template
- auth0 email templates update - Update an email template