Skip to main content
AhaSend CLI domains commands let you add and verify sending domains; this page covers their arguments and flags. Before running the examples, log in with a full API key, use your verified sender domain, and replace YOUR_RESOURCE_ID with a resource UUID from your test account. Create any named template, recipient, attachment, or JSON files first. Shell examples use Bash; examples that read JSON with jq need jq installed. Sends use sandbox mode.

Overview

Available subcommands:
  • list - List all domains
  • create - Add a new domain
  • get - Get domain details
  • verify - Verify domain DNS configuration
  • check-dns - Check published DNS records
  • edit - Update domain settings
  • delete - Remove a domain

List Domains

List all domains in your AhaSend account with their verification status, DNS record status, and other details. The list can be filtered and paginated for large numbers of domains.

Create Domain

The command prints the exact SPF, DKIM, and DMARC records for your domain. Copy those values; see domain setup.

Verify Domain

After configuring DNS records:
Most records verify within minutes. DNS changes can take up to 48 hours to propagate.

Get Domain Details

Check and Edit DNS Settings

Tracking and other service subdomains lock after DNS verification. To export records while adding a new test subdomain:
--format also accepts bind and cloudflare; --no-dns-help omits DNS help.

Delete Domain

Deleting a domain is irreversible. You’ll need to re-add and re-verify the domain if you want to use it again.

Common DNS Setup

Existing SPF Records

If you already have SPF records, merge them:

Subdomains

You can add subdomains for sending:

Next Steps

Command Flags

These flags come from the current CLI. All commands also accept the global flags.

domains check-dns

domains create

domains delete

domains edit

domains get

This command has no command-specific flags. See global flags.

domains list

domains verify