lfr create
It allows you to create many types of components: Liferay Workspace, Client Extensions, Docker (Dockerfile & docker-compose.yml) and OSGi components (API, Gogo Shell Command, MVC Portlet, Spring Portlet, REST Builder & Service Builder).
Usage:
lfr create TYPE NAME [flags]
# or
lfr c TYPE NAME [flags]
Running this command with no argument triggers the interactive mode where you can choose the template and enter a name from the terminal (and other options depending on the template). To make the interactive mode accessible, edit /.lfr/config.toml
:
[output]
accessible = true
Available Commands:
lfr create workspace
lfr create client-extension
lfr create docker
lfr create api
lfr create command
lfr create mvc-portlet
lfr create spring-mvc-portlet
lfr create rest-builder
lfr create service-builder
Flags:
-h
,--help
- help for
lfr create
- help for
-p
,--package
- base package name (default
org.acme
)
- base package name (default
Global Flags:
--no-color
- disable colors for output messages