CLI
The loomscape command-line tool
The CLI is a thin client over the REST API — its commands are generated from /openapi.json,
so they always match the live API.
Install & log in
npx @stackbase/loomscape-cli login # stores your API key in ~/.config/loomscape/config.jsonPrecedence for the key: --api-key flag → LOOMSCAPE_API_KEY env → config file.
Commands
npx @stackbase/loomscape-cli --help # lists all operations (operationId = capability name)
npx @stackbase/loomscape-cli list_brands
npx @stackbase/loomscape-cli get_summary
npx @stackbase/loomscape-cli list_brands --json # raw JSON instead of the unwrapped dataLocal MCP (stdio)
For MCP clients that only speak stdio, the CLI can proxy to the remote server:
npx @stackbase/loomscape-cli mcp