lomi.

Getting started

Install lomi. CLI, verify your setup, and run your first commands.

The lomi. CLI is distributed via npm as lomi.cli. It helps you authenticate with lomi., scaffold SDK projects, test webhooks locally, create checkout sessions and payment links, and install AI agent rules.

Who this is for

The lomi. CLI is for developers integrating the hosted merchant API from your terminal, authenticate, scaffold SDK projects, test webhooks, and create sandbox checkouts.

It is not for operating lomi.’s internal platform, the admin dashboard, or self-hosting payment processing. Merchants who only use the web dashboard do not need the CLI.

Both lomi and lomi. work as command names after install.

Installation

Requires Node.js 18+ (used only to download the native binary on install).

npm install -g lomi.cli

Or with pnpm:

pnpm add -g lomi.cli

On npm install, the package downloads the correct native binary for your platform from GitHub Releases.

Homebrew

Homebrew support is available via the project formula. After a release is published:

brew tap lomiafrica/tap
brew install lomi

You can also install from the repo formula when developing locally (update SHA256 checksums after each release).

From source

git clone https://github.com/lomiafrica/lomi.
cd lomi./apps/cli
cargo install --path .

Verify installation

lomi --version
lomi --help

Troubleshooting install

SymptomLikely causeWhat to do
lomi: command not found after npm install -gnpm global bin not on PATHRun npm prefix -g and add that bin directory to your shell PATH, or use npx lomi.cli --version
Installed but lomi --version fails with glibc / version `GLIBC_X.XX' not foundPrebuilt binary targets a newer glibc than your Linux distroInstall via Homebrew, download a matching GitHub Release binary, or build from source with Rust on the same machine
Binary runs on macOS but not on older Linux CI imagesCI runners often ship older glibcUse the source build in CI, or a newer runner image (glibc ≥ 2.39 for npm-published Linux binaries at time of writing)

npm only needs Node.js 18+ to download the native binary; the CLI itself does not run on Node. If npm install -g lomi.cli succeeds but the binary cannot execute, treat it as a platform compatibility issue, not a Node version issue.

Supported platforms

PlatformInstall method
macOS (Apple Silicon)npm, Homebrew, GitHub Release
macOS (Intel)npm, Homebrew, GitHub Release
Linux (x64)npm, Homebrew, GitHub Release
Windows (x64)Coming soon

Quick start

Log in

lomi login

Opens a browser device-authorization flow and saves a CLI token globally. See Authenticate.

Check status

lomi status

Verifies your stored token and connectivity to lomi.. API.

Scaffold a project

cd my-app
lomi init

Creates SDK client setup, checkout and webhook examples, and a .env file. See Initialize a project.

Install AI agent rules (optional)

lomi install-rules

Installs Cursor rules, CLAUDE.md, AGENTS.md, VS Code instructions, and llms.txt. See Install agent rules.

lomi listen http://localhost:3000/webhooks

Receives real sandbox webhooks via cloud relay, no ngrok. See Listen for webhooks.

Run local webhook server

lomi dev

Starts a webhook receiver on http://localhost:4242/webhook. See Local development server.

Command overview

CommandDescription
lomi loginBrowser authentication
lomi logoutClear credentials for a profile
lomi whoamiShow current profile
lomi statusCheck login and API connectivity
lomi initScaffold SDK project files
lomi quickstartGolden-path checks and next steps
lomi listenCloud webhook relay (sandbox-first)
lomi devLocal webhook development server
lomi probeIntegration health checks
lomi webhooks listList webhook endpoints
lomi webhooks testSend a test webhook event
lomi products listList products and prices
lomi transactions listList recent transactions
lomi transactions getGet a transaction by ID
lomi refunds createRefund a completed transaction
lomi refunds list / refunds getList or retrieve refunds
lomi checkout createCreate a hosted checkout session
lomi payments createCreate a payment link
lomi install-rulesInstall AI agent documentation
lomi updateUpdate @lomi./sdk in current project
lomi list-profilesList saved auth profiles
lomi switchChange active profile

Full reference: Command reference.

Global options

These flags work with any command:

FlagDescription
--profile <name>Profile to use (default: default)
-a, --api-url <url>Override API base URL
-l, --log-level <level>debug, info, warn, error
--skip-telemetryOpt out of telemetry
--jsonEmit machine-readable JSON (also default when stdout is not a TTY)
-h, --helpHelp for the CLI or a subcommand
--versionPrint version

Two kinds of credentials

CLI token vs API key

lomi login stores a CLI token in your global config, used by CLI commands like status, checkout create, and dev.

lomi init writes your secret API key (LOMI_SECRET_KEY) into the project .env file, used by the SDK inside your application code.

These are different credentials serving different purposes.

Next steps

On this page