Skip to main content
The Inworld Runtime CLI is a comprehensive command-line toolkit that streamlines the entire lifecycle of Runtime graph development - from initial prototyping to production deployment and continuous optimization. To download and install Inworld Runtime CLI, run the following command:
npm

Commands

The CLI follows a logical command hierarchy that matches developer workflows:

Project Initialization

The inworld-runtime init command downloads the llm-to-tts-node template—a production-ready LLM to TTS pipeline.
Currently, only the llm-to-tts-node template is available via CLI. CLI support for fetching additional templates is coming soon. To view all available templates, visit the templates repository.
For graph-only examples that demonstrate specific Runtime features, clone the templates repository directly.
Init Command Options:
  • -n, --name <name> - Name of the project directory
  • -t, --template <template> - Template to use (currently only llm-to-tts-node)
  • --skip-install - Skip dependency installation prompt
  • --force - Force refresh template cache (download fresh copy even if cached)

Working with Graphs

Once you have a graph.ts file (either from a template project or created manually), you can use the following commands to work with your graph:

Local Testing

Test your graph locally with instant feedback:

Visualization

Generate architectural diagrams of your graph:
Graph visualization requires Graphviz to be installed on your system.

Local Server

Serve your graph locally with support for both HTTP (with optional Swagger UI) and gRPC:

Cloud Deployment

Once you’ve successfully built your graph, you can deploy it to Inworld Cloud to create a persistent, production-ready endpoint. See Cloud Deployment for more details.

A/B Testing & Experimentation

You can use the CLI to create and manage graph variants, such as model or prompt changes, for A/B testing and experimentation. Your clients will automatically use the latest variants—no client-side updates required.

TTS

Use the CLI to quickly get started with Inworld TTS. Generate speech content with direct TTS commands:
To create graphs that use TTS, initialize a template project with inworld-runtime init --template llm-to-tts-node (see Project Initialization above).

Telemetry

The Inworld Runtime CLI collects general usage data to help us improve the tool. Information such as the following are tracked:
  • Command execution time
  • CLI version
  • Command name
Managing Telemetry Inworld takes privacy and security seriously. You can opt-out if you prefer not to share any telemetry information.

Next Steps

Ready to start building with the Inworld Runtime CLI?

Quickstart

Guide to installation, authentication, and first project setup

Deployment Guide

Deploy your graphs to production with persistent endpoints

Need Help?

  • Troubleshooting Guide - Common issues and solutions
  • CLI Help: Run inworld-runtime help or inworld-runtime [command] --help for detailed command information