You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to use CobiGen, to generate templates for the following code generation.
3
+
More information about CobiGen on https://devonfw.com/website/pages/docs/master-cobigen.asciidoc.html.
4
+
5
+
=== Prerequisites
6
+
7
+
* An installed devonfw distribution is needed. To execute the CobiGen CLI, you have to install the devonfw IDE first. Follow the https://devonfw.com/website/pages/docs/devonfw-ide-introduction.asciidoc.html[devonfw IDE] documentation to install the same.
8
+
9
+
=== Generate CobiGen Templates with CobiGen CLI
10
+
11
+
First open a command prompt in your current workspace. You should be inside your devonfw directory, if not change your directory to *<%= devonPath;%>*.
12
+
Run the CobiGen command `devon cobigen adapt-templates`
13
+
to generate a new templates folder next to the CobiGen CLI and save its location in a configuration file.
14
+
15
+
You can also spezify the location of the templates folder with the parameter `--custom-location` or `-cl` and pass the absolute path to your custom location.
* An installed devonfw distribution is needed. To execute the CobiGen CLI, you have to install the devonfw IDE first. Follow the https://devonfw.com/website/pages/docs/devonfw-ide-introduction.asciidoc.html[devonfw-ide] documentation to install the same.
6
+
7
+
=== Install CobiGen with a command prompt
8
+
9
+
First, you need to open a command prompt in your current workspace. For Windows, you can use PowerShell and on Linux and macOS, you can use the Terminal.
10
+
Navigate to the devonfw installation directory with this command `cd <%= devonPath;%>`.
11
+
Execute the command `devon cobigen` and CobiGen will be installed.
12
+
To update the environment, you have to execute `devon` and you have successfully installed CobiGen.
13
+
14
+
Some further information about the usage of CobiGen can be found https://devonfw.com/website/pages/docs/master-cobigen.asciidoc.html[here].
0 commit comments