Skip to content

Generator

The Flowcore CLI generator is a tool that allows you to generate Flowcore applications, entities and more.

Generate a new Flowcore NextJS application

To generate a new Flowcore NextJS application, run the following command:

Terminal window
flowcore new nextjs-app <app-name>

this will scaffold a new NextJS application that is built using the Flowcore IDD approach and ready to use for the Flowcore Platform.

Information

This will generate a new directory with the name of the application. Inside the application directory, you will find a new NextJS application that is ready to use for the Flowcore Platform.

Generate a new Flowcore NextJS Entity

To generate a new Flowcore NextJS entity, run the following command:

Terminal window
flowcore generate nextjs-entity <entity-name>

Information

This needs to be run from inside a Flowcore NextJS application.

Generate a new Bun service

To generate a new Bun service, run the following command:

Terminal window
flowcore new bun-service <service-name>

Information

This will generate a new directory with the name of the service. Inside the service directory, you will find a new Bun application that is ready to use for the Flowcore Platform.

Generate a new Template Generator written using Bun

To generate a new Template Generator written in Bun, run the following command:

Terminal window
flowcore new generator <generator-name>

Information

This will generate a new directory with the name of the generator. Inside the generator directory, you will find a new Yeoman generator that can be written in Bun.

Generate a new Oclif Plugin for the Flowcore CLI

To generate a new Oclif Plugin for the Flowcore CLI, run the following command:

Terminal window
flowcore new plugin <plugin-name>

Information

This will generate a new directory with the name of the plugin. Inside the plugin directory, you will find a new Oclif plugin that can be used to extend the Flowcore CLI.