Torii CLI
Torii CLI is an OpenAPI-driven command line interface for the Torii API.
Torii CLI is an OpenAPI-driven command line interface for the Torii API. It lets developers explore the API, inspect schemas, and execute API calls directly from the terminal.
The CLI dynamically fetches Torii’s OpenAPI specification and generates commands automatically, so it always stays aligned with the latest API capabilities.
It is especially useful for:
- Automation scripts
- Data extraction pipelines
- AI or agent integrations
- OpenClaw agents
- Exploring the Torii API interactively
All responses are returned as structured JSON, making the CLI easy to pipe into tools like jq, scripts, or automation frameworks.
Installation
Install the CLI globally with npm:
npm install -g torii-cliOr run it directly using npx:
npx torii-cli discovery
Authentication
The CLI authenticates using a Torii API key. Set the following environment variables before running commands:
export TORII_API_KEY="your-api-key"Quick Start
Discover available commands:
The CLI dynamically generates commands from the OpenAPI specification.
torii-cli discovery
This returns a JSON list of all available API operations.
Example: list applications:
torii-cli apps list --size 10
Full documentation and more examples
Learn more on the npm page: https://www.npmjs.com/package/torii-cli
Updated 2 days ago