This project provides a simple cli for setting up new projects more quickly. The organisation contains a lot of templates for many different languages and software frameworks. You can use this cli to easily use the templates and skip the anoying process of creating your projects base structure.
Init your first project
softwareTemplates init --initGit --template test-template
1. Init:
softwareTemplates init # general init command for new projects
-
--initGit or --git or --ig
If this flag is added to the init command, a new git repository will be initialized on project creation. If it is not provided, this will be validated by a cli prompt. -
--template or -t
If this flag is provided it will directly choose a template. If the template does not exists the cli terminates. If this flag is not provided the the cli will open a prompt to select a template -
--projectName or -p
If this flag is added to the init command, the project name will automatically selected. If this flag is not provided the cli will open a input prompt -
--customTemplateUrl
If you want to use templates that are not from the softwareTemplates cli, you can do so with this flag. Just insert the git url of you repository and the template will be used.
NOTE: The templates must have the valid init structure. Otherwise it will not work with the cli.
- Choose the latest version from the releases tab
- Select the version that is used for your operating system
- Move to your program files
Linux/MacOS:
sudo mv ./softwareTemplates /usr/local/bin/softwareTemplates
Windows:
Move copy your file to C:\Program Files
If you want to create your own project template for this cli, you can create a new repository and start writing your project infrastructure.
If you want to use shell scripts to initialize your project you can
put files called init.sh
and init.bat
into your root directory of the
repository.
If you want your project to be supported directly by the cli, you can try to transfer
the ownership of your repository to the SoftwareTemplates organisation.
But I will check your template, because the cli only supports safe templates out of the box.
If you want to use a custom repository use the --customTemplateUrl
flag for using foreign templates.