Unleash the power of automation and spend more time on what truly matters — your business logic!
Ready to get started? Install the CLI now and transform your development workflow.
Modern development is fast-paced—and repetitive boilerplate shouldn’t slow you down. The Codegen Project CLI transforms your well defined APIs (AsyncAPI, OpenAPI) into production-ready code. Whether you're generating payload models, protocol functions, crafting custom generators, or automating your entire codebase setup, our CLI is your secret weapon.
- Effortless Code Generation: Convert AsyncAPI, Protobuf, RAML, or OpenAPI schemas into fully functional code in minutes.
- Customizable Output: Tailor the generated code to your project's exact needs with flexible configuration.
- Protocol Agnostic: Supports MQTT, Kafka, AMQP, NATS, and more—future-proofing your development regardless of protocols you use.
- Continuous Integration: Regenerate code on-the-fly as your API specifications evolve, seamlessly integrating into your CI/CD pipelines.
- Multi-Language Ready: Starting with TypeScript, with plans to support more languages soon.
- Instant Payload Generation: Automatically generate payload models, parameters, headers, messages, and even testing functions.
- Custom Generator Creation: Easily build your own generators directly from the configuration file.
- Seamless Integration: Plug Codegen CLI into any project—be it a Next.js app or an enterprise-grade microservices architecture.
- Live Regeneration: Keep your codebase in sync by regenerating output whenever the input changes.
Install the CLI globally or as a development dependency using your favorite package manager:
npm install --save-dev @the-codegen-project/cliyarn add @the-codegen-project/cli
pnpm add @the-codegen-project/cli
Or download a prebuilt package directly:
curl -OL https://github.com/the-codegen-project/cli/releases/latest/download/codegen.x64.pkg
sudo installer -pkg codegen.x64.pkg -target /
For more installation options, check our documentation.
codegen init
This creates a configuration file where you can specify your input document, target language, and generators.
codegen generate
Watch as your models, payloads, and more being generated!
Tweak the configuration to tailor the output exactly to your needs and integrate the generated code into your project seamlessly.
Dive deeper into all features, use cases, and best practices on our website and docs.
The Codegen Project CLI is licensed under the Apache-2.0 License.