CLI Reference

The lt command-line tool — manage credits and call tools from your terminal.

Install

npm install -g @lightning-tools/cli

Quick start

lt start

Follow the prompts to buy credits via Lightning invoice and save your API key. After first run your key is stored automatically.

Config file

The API key is stored in ~/.lightning-tools/config.json. You can also set LIGHTNING_TOOLS_API_KEY as an environment variable — the CLI will use it if present.

Command reference

Command Description
lt start Get started — buy credits and get an API key, or manage your existing account
lt topup <quantity> Top up credits for your existing account
lt set-key <key> Store an existing API key
lt balance Show your current credit balance
lt tools List all available tools
lt run [name] Run a tool interactively with guided prompts, or pass flags directly: lt run --flag value\nFor multi-action tools use: lt run date-utils/today --flag value
lt <tool-name> Call a tool directly by name, e.g. lt email-validator