npm
Commands
The CLI follows a logical command hierarchy that matches developer workflows:Project Initialization
Theinworld 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 inworld.ai/templates.-n, --name <name>- Name of the project directory-t, --template <template>- Template to use (currently onlyllm-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 agraph.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:inworld init --template llm-to-tts-node (see Project Initialization above).
Telemetry
The Inworld 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
Next Steps
Ready to start building with the Inworld 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 helporinworld [command] --helpfor detailed command information