npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

transactional-cli

v0.1.1

Published

Official CLI for Transactional - manage email, SMS, forms, and more from your terminal

Readme

transactional-cli

Official command-line interface for Transactional - manage email, SMS, forms, and more from your terminal.

npm version License: MIT

Installation

npm install -g transactional-cli

Or using npx without installation:

npx transactional-cli login

Quick Start

  1. Authenticate

    transactional login

    This opens your browser to authenticate and link the CLI to your Transactional organization.

  2. Send an email

    transactional email send \
      --from "[email protected]" \
      --to "[email protected]" \
      --subject "Hello from CLI" \
      --text "This is a test email"
  3. Check your user info

    transactional whoami

Commands

Authentication

| Command | Description | |---------|-------------| | transactional login | Authenticate with Transactional | | transactional logout | Log out from all organizations | | transactional whoami | Show current user and organization | | transactional switch [org] | Switch to a different organization | | transactional orgs list | List all authenticated organizations |

Email

| Command | Description | |---------|-------------| | transactional email send | Send a single email | | transactional email batch <file> | Send batch emails from JSON file | | transactional email stats | Get email statistics | | transactional email templates list | List email templates | | transactional email templates get <id> | Get template details | | transactional email templates create | Create a new template | | transactional email domains list | List email domains | | transactional email domains add <domain> | Add a domain | | transactional email senders list | List email senders | | transactional email suppressions list | List suppressions |

Configuration

| Command | Description | |---------|-------------| | transactional config show | Show current configuration | | transactional config set <key> <value> | Set a configuration value | | transactional config get <key> | Get a configuration value | | transactional config reset | Reset to default configuration | | transactional config path | Show configuration file paths |

Global Options

| Option | Description | |--------|-------------| | -o, --org <slug> | Override the current organization | | --json | Output results as JSON | | --help | Show help for a command | | --version | Show CLI version |

Configuration

Configuration is stored in ~/.transactional/config.json:

| Key | Description | Default | |-----|-------------|---------| | apiUrl | API base URL | https://api.usetransactional.com | | webUrl | Web app URL | https://app.usetransactional.com | | outputFormat | Output format (table, json, yaml) | table | | color | Enable color output | true |

Environment Variables

| Variable | Description | |----------|-------------| | TRANSACTIONAL_API_URL | Override API URL | | TRANSACTIONAL_WEB_URL | Override web URL | | NO_COLOR | Disable color output | | TRANSACTIONAL_NO_COLOR | Disable color output |

Credentials

Credentials are stored securely in ~/.transactional/credentials.json with file permissions set to 0600 (read/write for owner only).

Examples

Send email with template

transactional email send \
  --from "[email protected]" \
  --to "[email protected]" \
  --template-alias "welcome" \
  --model '{"name": "John", "company": "Acme"}'

Send batch emails

Create a file emails.json:

[
  {
    "from": "[email protected]",
    "to": "[email protected]",
    "subject": "Hello User 1",
    "text": "Hello from batch!"
  },
  {
    "from": "[email protected]",
    "to": "[email protected]",
    "subject": "Hello User 2",
    "text": "Hello from batch!"
  }
]

Then send:

transactional email batch emails.json

Get stats as JSON

transactional email stats --period month --json

Documentation

Full documentation is available at usetransactional.com/docs/cli

License

MIT - see LICENSE for details.