footers command lets you manage the custom footers of your campaign and workflow emails.
A footer has a name, a placement, and content. The content is LMX and has a draft version and a published version. Emails use the published version only.
To use a new footer:
- Create the footer with
create. - Set the draft content with
variant update. - Publish the draft with
variant publish. - Make the footer the default with
set-default, or set it on one email withemail-messages update --footer-id.
create
Create a footer. The new footer has an unpublished draft. Emails cannot use the footer until you publish its content.
Flags
delete
Delete a footer and its content.
get
Get a footer by ID, including its content and contentRevisionId.
list
List footers.
--pick to filter the list interactively with fzf and copy the selected footer ID to your clipboard. Requires fzf to be installed and on your PATH.
Flags
set-default
Make a published footer the default footer. New campaign and workflow emails use the default footer.
--existing-emails selects which existing campaign and workflow emails change to the footer:
previousDefault— the emails that use the previous default footer.all— all emails.none— no emails. Only new emails use the footer.
updatedEmailCount, the number of existing emails that changed to the footer.
Confirmation
--existing-emails all changes the footer on every existing campaign and workflow email, so the CLI asks for confirmation first. Pass --yes to skip the prompt.
--output json or when the input is not a terminal, for example in a script or CI job. In these cases --yes is required.
Flags
update
Update the name or placement of a footer. Changes apply immediately, including to running workflows.
variant update.
Flags
At least one flag must be provided.
variant
The variant subcommands manage the content of a footer. A footer has one variant, so each subcommand takes the footer ID.
variant get
Get the content of a footer, including its contentRevisionId.
unpublishedChanges is true when the draft is different from the published content. Use --output json to get both draftLmx and publishedLmx.
variant update
Update the draft content of a footer. Emails continue to use the published content until you publish the draft.
--lmx or from a file with --lmx-file.
Footer content supports a subset of LMX. The only variables it can use are {system.company_name}, {system.company_address}, {system.mailing_list_name}, {system.unsubscribe_link}, and {contact.email}. It cannot use <Style /> or components.
Flags
One of
--lmx or --lmx-file must be provided.
variant publish
Publish the draft content of a footer. Emails that use the footer use the new content immediately.
{system.company_name}in the text.{system.company_address}in the text.{system.unsubscribe_link}as the URL of a link or button.
Flags
Concurrency control
variant update and variant publish must include either --expected-revision-id or --force:
--expected-revision-id— pass thecontentRevisionIdfrom a priorfooters variant get. The request is rejected with a conflict if the server’s revision has advanced, so you don’t overwrite or publish a concurrent edit.--force— fetch the current revision automatically and use it. Withvariant update, this overwrites any concurrent edits. Withvariant publish, this publishes the current draft, including edits from other users.

