...
Step 1 - Deleting the Saved Template
To save the example-template
above, we had to initialize AND specify the --save
flag. This can be inconvenient if one does not want to initialize the template now, but still wants to save it.
The alternate way of saving/adding the template is using the uip template add
command. Before doing so, let’s first delete the saved template by running
Code Block |
---|
uip template delete example-template |
which should print
Code Block |
---|
Successfully deleted "example-template (1.0.0)" |
Running
Code Block |
---|
uip template list |
should now only show the built-in templates (which cannot be deleted):
Code Block |
---|
+--------------------+---------+---------------------------------------------------------+ | Extension Template | Version | Description | +--------------------+---------+---------------------------------------------------------+ | ue-task | 1.0.0 | starter Extension with minimal code | +--------------------+---------+---------------------------------------------------------+ | ue-publisher | 1.0.0 | starter Extension with a local Universal Event template | +--------------------+---------+---------------------------------------------------------+ |
Step 2 - Adding the Template using uip template add
To add/save the example-template
without having to initialize first, run
Code Block |
---|
uip template add <path to example-template.zip> |
which should print
Code Block |
---|
Successfully added "example-template (1.0.0)" |
Running
Code Block |
---|
uip template list |
should now only show the built-in templates (which cannot be deleted):
Code Block |
---|
+--------------------+---------+---------------------------------------------------------+ | Extension Template | Version | Description | +--------------------+---------+---------------------------------------------------------+ | ue-task | 1.0.0 | starter Extension with minimal code | +--------------------+---------+---------------------------------------------------------+ | ue-publisher | 1.0.0 | starter Extension with a local Universal Event template | +--------------------+---------+---------------------------------------------------------+ | example-template | 1.0.0 | this is the description for example template | +--------------------+---------+---------------------------------------------------------+ |
...
Now, zip up all the contents once again in a file called updated_example_template.zip
(or whatever you want to call it).
...
This will export a file called example_template-1.0.0.zip
in your current working directory. This zip can be shared and imported by others.