CLI Overview

The Transactional CLI provides a powerful command-line interface for managing your email infrastructure.

CLI Overview

The Transactional CLI (transactional) is a command-line tool for managing your Transactional account, sending emails, and configuring your email infrastructure directly from the terminal.

Installation

Install the CLI globally using npm:

npm install -g @usetransactional/cli

Or using yarn:

yarn global add @usetransactional/cli

Or using pnpm:

pnpm add -g @usetransactional/cli

Quick Start

  1. Login to your account:
transactional login

This opens your browser to complete authentication. Follow the prompts to authorize the CLI.

  1. Select an organization:
transactional org list
transactional org use <slug>
  1. Send your first email:
transactional email send \
  --from "hello@yourdomain.com" \
  --to "recipient@example.com" \
  --subject "Hello from CLI" \
  --html "<h1>Hello World</h1>"

Command Groups

Command GroupDescription
login/logoutAuthentication commands
whoamiShow current user info
orgOrganization management
switchQuick organization switch
emailEmail operations
configCLI configuration
mcpMCP server integration

Global Options

Most commands support these options:

OptionDescription
-o, --org <slug>Override the current organization
--jsonOutput results as JSON
-h, --helpShow help for a command

Configuration

The CLI stores configuration and credentials in ~/.transactional/:

  • config.json - CLI configuration (API URL, output format)
  • credentials.json - Authentication tokens

View current config:

transactional config show

Environment Variables

VariableDescription
TRANSACTIONAL_API_URLOverride API URL
TRANSACTIONAL_WEB_URLOverride Web URL
NO_COLORDisable colored output

Next Steps