# Extensions: How to create package file

**URL:** <https://discourse.slicer.org/t/extensions-how-to-create-package-file/6079>\
**Category:** Development\
**Tags:** extensions-manager\
**Created:** [March 8, 2019, 9:55pm UTC](https://discourse.slicer.org/t/extensions-how-to-create-package-file/6079 "2019-03-08T21:55:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![triple\_axel](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@triple\_axel](https://discourse.slicer.org/u/triple_axel)\
**Post date:** [March 8, 2019, 9:55pm UTC](https://discourse.slicer.org/t/extensions-how-to-create-package-file/6079/1 "2019-03-08T21:55:41Z")

</div>

Hi,  
I am trying to test out my extension by manually downloading it via the extension manager. I am currently following this tutorial:  
[https://www.slicer.org/wiki/Documentation/Nightly/Developers/Tutorials/BuildTestPackageDistributeExtensions](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Tutorials/BuildTestPackageDistributeExtensions)

Under testing, I was wondering what it means by "If you have built your extension then build the PACKAGE target to create a package file ".  
I currently created the folder containing all the contents required for an extension (CmakeLists, modules, etc.) using the Extension Wizard. I was wondering how to build a package file from the folder?

Thanks a bunch.

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [March 8, 2019, 11:00pm UTC](https://discourse.slicer.org/t/extensions-how-to-create-package-file/6079/2 "2019-03-08T23:00:18Z")

</div>

> I was wondering how to build a package file from the folder?

First, you have to build your extension. See [How to build an extension ?](https://www.slicer.org/wiki/Documentation/Nightly/Developers/FAQ/Extensions#How_to_build_an_extension_.3F)

Then, you can generate the package building the corresponding target. See [How to package an extension ?](https://www.slicer.org/wiki/Documentation/Nightly/Developers/FAQ/Extensions#How_to_package_an_extension_.3F)
