DEV Community

Qasim Muhammad
Qasim Muhammad

Posted on

Manage Email Signatures from the CLI — Create, List, and Attach to Sends

The nylas email signatures commands manage reusable email signatures stored per-grant. Create HTML signatures once, attach them to any send with a flag — no more pasting footers manually.

What email signatures do

Signatures are HTML blocks stored server-side and attached to outgoing emails via --signature-id. Create different signatures for different contexts (formal, casual, department) and switch between them per-send.

Quick Start

nylas email signatures create --name "Work" --body "<p>— Qasim<br>Staff SRE, Nylas</p>"
nylas email send --to alice@example.com --subject "Hello" --body "..." --signature-id SIG_ID
Enter fullscreen mode Exit fullscreen mode

Key commands

Command What it does
nylas email signatures list List stored signatures
nylas email signatures show <id> Show signature HTML
nylas email signatures create --name N --body B Create from inline HTML
nylas email signatures create --name N --body-file FILE Create from HTML file
nylas email signatures update <id> Update a signature
nylas email signatures delete <id> --yes Delete a signature

Creating a signature from a file

cat > sig.html << 'EOF'
<p style="font-family: sans-serif; font-size: 14px;">
  <strong>Qasim Muhammad</strong><br>
  Staff SRE · Nylas<br>
  <a href="https://cli.nylas.com">cli.nylas.com</a>
</p>
EOF

nylas email signatures create --name "Default" --body-file sig.html --json
Enter fullscreen mode Exit fullscreen mode

Using a signature when sending

nylas email send \
  --to team@company.com \
  --subject "Weekly update" \
  --body "Here's the summary..." \
  --signature-id <sig-id>
Enter fullscreen mode Exit fullscreen mode

The signature HTML is appended to the email body automatically.

Related posts


All commands: Nylas CLI Command Reference

Get started: brew install nylas/nylas-cli/nylasother install methods

Top comments (0)