CLI Script

List Blueprints

Available blueprints can be found in the GitLab Blueprints Group, or via list command:

usage: blueprint-cloner list [-h]

optional arguments:
  -h, --help  show this help message and exit

Clone Blueprint

To clone a blueprint and create a new project, use the following command:

usage: blueprint-cloner clone [-h] [-b BLUEPRINT] [-v VERSION] [-n NAMESPACE] [-s] name [directory]

positional arguments:
  name                                 the project name
  directory                            the local project directory

optional arguments:
  -h, --help                           show this help message and exit
  -b BLUEPRINT, --blueprint BLUEPRINT  the name of the blueprint
  -v VERSION, --version VERSION        the version of the blueprint
  -n NAMESPACE, --namespace NAMESPACE  the GitLab namespace of the project
  -s, --skip-push                      do not push the project to GitLab

Upgrade Project

You might want to upgrade your existing project which once was cloned from an older blueprint version to a newer blueprint version. This is also possible with the following command:

usage: blueprint-cloner upgrade [-h] [-b BLUEPRINT] [-v VERSION] name [directory]

positional arguments:
  name                                 the project name
  directory                            the local project directory

optional arguments:
  -h, --help                           show this help message and exit
  -b BLUEPRINT, --blueprint BLUEPRINT  the name of the blueprint
  -v VERSION, --version VERSION        the version of the blueprint

Hint

You most likely might want to use the same blueprint and project name you already specified initially when you’ve cloned the blueprint. However, if you want to use a different blueprint or you want to rename the project, you can also use alternative values.