@theatrical/cli
The CLI provides three commands for common developer workflows: scaffolding new projects, generating TypeScript types from an OpenAPI spec, and inspecting live API responses.
Install
npm install -g @theatrical/cliCommands
theatrical init
Scaffold a new project from a template.
theatrical init my-booking-app --template react-ticketingOptions:
--template— starter template (default:react-ticketing)--api-key— pre-configure your Vista API key
theatrical codegen
Generate TypeScript types and Zod schemas from an OpenAPI spec.
theatrical codegen ./openapi.yaml --output ./src/types/generated --zodOptions:
--output <dir>— output directory (default:./src/generated)--zod— include Zod schemas alongside the types
theatrical inspect
Explore live API responses with syntax highlighting and timing.
theatrical inspect sessions list --site site-001 --date 2026-04-20theatrical inspect films search -q "Dune"theatrical inspect sites get site-001