Skip to main content

Installation

One-line installer

To install a specific version or to a custom path, add -s -- <version> <path> after sh in the command above. The default installation path is ~/.local/bin.
Using a coding agent? Install the Loops CLI and agent skills together with curl -fsSL https://install.loops.so/wizard | sh.

Homebrew

Script for Windows PowerShell

Go install

Verify

Authentication

The CLI requires a Loops API key. Get one from Settings > API in Loops. There are two ways to authenticate the CLI.

Keyring storage

Store a key locally with loops auth login:
You can store keys for multiple teams and switch between them:
  • loops auth use <name> — set a stored key as the default
  • loops auth list — list stored keys and see which is the default
  • loops auth get <name> — print a stored API key
  • --team <name> on any command — use a specific stored key for that command
See Auth commands for the full reference.

Environment variable

Set LOOPS_API_KEY to use a key directly — useful for CI or when keyring storage isn’t available.

Precedence

When multiple keys are available, the CLI resolves them in this order:
  1. LOOPS_API_KEY environment variable
  2. --team flag
  3. The current default (set via loops auth use)

Global flags

These flags can be used with any command.

Commands

auth

Log in, switch teams, and manage stored API keys.

campaigns

Create, list, and update draft campaigns.

contact-properties

Create and list contact properties.

contacts

Create, update, find, and delete contacts.

completion

Set up shell autocompletion.

components

View saved email components.

email-messages

Get and update draft email messages.

events

Send events to trigger automations.

lists

View your mailing lists.

themes

View saved email themes.

transactional

Send and manage transactional emails.

uploads

Upload files as email assets.

workflows

List workflows and inspect workflow graphs.

Utility commands

loops api-key

Validate your current API key.

loops --version

Print the CLI version.

loops agent-context

Print a JSON description of every command, subcommand, and flag in the CLI. Designed for AI coding agents (and other tools) that need to discover what the CLI can do without scraping --help output.
Last modified on July 1, 2026