Skip to main content

Installation

Homebrew

brew install loops-so/tap/loops

Script for macOS, Linux, Windows via WSL

curl -fsSL --proto '=https' --tlsv1.2 https://cli.loops.so | bash
To install a specific version or to a custom path, append -s -- <version> <path> to bash in the command above. The default installation path is ~/.local/bin.

Script for Windows PowerShell

irm https://raw.githubusercontent.com/Loops-so/cli/main/install.ps1 | iex

Verify

loops version

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:
loops auth login --name my-team
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
  • --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.
export LOOPS_API_KEY=your_api_key

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.
FlagShortDescription
--debugPrint API request details before sending
--output-oOutput format: text (default) or json
--team-tTeam key name to use
--help-hShow help for any command

Commands

auth

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

contacts

Create, update, find, and delete contacts.

events

Send events to trigger automations.

lists

View your mailing lists.

transactional

Send and manage transactional emails.

contact-properties

Create and list contact properties.

completion

Set up shell autocompletion.

Utility commands

loops api-key

Validate your current API key.
loops api-key

loops version

Print the CLI version.
loops version
Last modified on April 7, 2026