OpenAPI CLI
Generate typed clients from an OpenAPI spec:
bash
npx tanstack-fetch generate --spec ./openapi.yaml --out ./src/apiMigrate from axios / ky / ofetch / fetch
bash
npx tanstack-fetch doctor --dir ./src
npx tanstack-fetch migrate --from axios --framework react --dir ./src --write
npx tanstack-fetch migrate --from ofetch --framework nuxt --write
npx tanstack-fetch migrate --from fetch --framework nextjs --write
npx tanstack-fetch migrate --from axios --framework vue --write
npx tanstack-fetch migrate --from axios --framework solid --write
npx tanstack-fetch migrate --from fetch --framework sveltekit --writeFull mapping + scaffolds: Migrate.
The CLI ships as the tanstack-fetch binary from the same package.
