Basic Usage
Basic knowledge on how to use KGen in five minutes.
Generating from template
To generate a new project from template, run:
Where
<template-name>
is the name of template, in format <owner>/<repo>
. For example samzhangjy/vanilla
points to https://github.com/samzhangjy/kgen-template-vanilla.Running
kgen gen
will first download the template from GitHub and then KGen will execute the template content.For example running
samzhangjy/vanilla
template will result the following:After answering questions about project configuration, KGen will generate your project at the current directory.
Global configuration
KGen has a global configuration file named
.kgen.json
. You can check its file path with the following command:Currently KGen supports the following configurations, with default values on the right side: