Skip to content

Install the CLI

The Loomta CLI (loomta) wraps the public API as a small, JSON-in/JSON-out command set — built for shell scripts and AI agents as much as for humans.

  • Node.js ≥ 20
Terminal window
npm install -g @loomta/cli

This installs the loomta binary on your PATH.

Terminal window
loomta --version
loomta --help

--help lists every command group. Then authenticate and confirm the key works:

Terminal window
loomta auth:login
loomta auth:status
# → { "status": "authenticated", "source": "file", "connectedPlatforms": 1 }
  • stdout is always a single JSON document — pipe it straight into jq.
  • Diagnostics (login progress, etc.) go to stderr, so they never corrupt the JSON on stdout.
  • Failures print { "error": { "code", "message", "details" } } to stderr and exit with code 1.
Terminal window
loomta platforms:list | jq -r '.platforms[].id'