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.
Requirements
Section titled “Requirements”- Node.js ≥ 20
Install
Section titled “Install”npm install -g @loomta/clipnpm install -g @loomta/cliThis installs the loomta binary on your PATH.
Verify
Section titled “Verify”loomta --versionloomta --help--help lists every command group. Then authenticate and confirm the key works:
loomta auth:loginloomta auth:status# → { "status": "authenticated", "source": "file", "connectedPlatforms": 1 }How output works
Section titled “How output works”- 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 code1.
loomta platforms:list | jq -r '.platforms[].id'- Authentication — the three ways to log in.
- Command reference — every command and flag.
- Recipes — end-to-end publishing workflows.