S2T

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.

👋 Hello and welcome!

I'm Armel Dakayao, Front-End Developer & creator of swagger-to-tanstack CLI.

Armel Dakayao

Senior Front-End Developer. I build scalable, user-friendly web & mobile apps with React,React Native, Next.js, and TypeScript.