How to pack a charm bundle

See also:

You have created your charm bundle. This document shows you how you can now pack it via Charmcraft.

Suppose you have a charm bundle consisting of a bundle.yaml file and a README.md file.

To pack it via Charmcraft, you must first add to these files a charmcraft.yaml file. Below we create a very simple charmcraft.yaml file specifying just the type of the object to be packed.

# Note the following command will clobber any existing charmcraft.yaml!
$ echo "type: bundle" > charmcraft.yaml

With this file in place, we are ready to pack the bundle:

$ charmcraft pack
Created 'super-bundle.zip'.

Done!

could we add a reference here to why we pack bundles? (ie to publish them to charmhub) ? as well as what other options can I put in my charmcraft.yaml for bundles?

1 Like