Skip to main content
The campaigns command lets you manage campaigns in your Loops account.

create

Create a new draft campaign. This also creates an empty email message — use email-messages update to set its subject, sender, preview text, and LMX content.
Target the campaign at an audience segment and schedule it to send at a specific time:

Flags

--audience-filter and --audience-filter-file are two ways to supply the same ad-hoc filter, so they’re mutually exclusive with each other — use --audience-filter for short inline JSON and --audience-filter-file to load it from a file. A filter can be combined with --audience-segment-id: when both are set, the filter is applied on top of the segment — contacts must match both. Setting a segment without a filter (or a filter without a segment) clears the other, so pass both together to keep both.

get

Get a campaign by ID.

list

List campaigns.
Pass --pick to filter the list interactively with fzf and copy the selected campaign ID to your clipboard. Requires fzf to be installed and on your PATH.

Flags

update

Update a draft campaign.
Retarget an existing campaign at a campaign group and send it immediately when published:

Flags

--audience-filter and --audience-filter-file are two ways to supply the same ad-hoc filter, so they’re mutually exclusive with each other — use --audience-filter for short inline JSON and --audience-filter-file to load it from a file. A filter can be combined with --audience-segment-id: when both are set, the filter is applied on top of the segment — contacts must match both. Setting a segment without a filter (or a filter without a segment) clears the other, so pass both together to keep both.
Last modified on August 13, 2026