watch
Watch your Swagger file for changes and automatically regenerate. Perfect for development workflow.
Usage
bash
Options
-i, --input <path>Local Swagger file path to watch
Required-o, --output <dir>Output directory (default: ./src/api)
-t, --template <name>Template to use (default: tanstack-query)
--http-client <client>HTTP client: axios or fetch (default: axios)
--validator <validator>Schema validator: zod or yup (default: zod)
--strip-base-path [path]Strip base path from routes
Examples
Watch local file
Monitor changes and regenerate automatically
bash
Watch with custom settings
Watch with RTK Query template
bash
Important Notes
Watch mode only works with local files, not URLs.
Automatically preserves your modifications by default (safe mode enabled).
Press Ctrl+C to stop watching.