charmcraft pack [options]
Build and pack a charm operator package or a bundle.
juju deploy the resulting
.charm or bundle’s
.zip file directly, or upload it to Charmhub with
For the charm you must be inside a charm directory with a valid
requirements.txt including the
ops package for the Python operator framework, and an operator entrypoint, usually
charmcraft init to create a template charm directory structure.
For the bundle you must already have a
bundle.yaml (can be generated by Juju) and a README.md file.
||Show this help message and exit|
||Show debug information and be more verbose|
||Only show warnings and errors, not progress|
||Set the verbosity level to ‘quiet’, ‘brief’, ‘verbose’, ‘debug’ or ‘trace’|
||Specify the project’s directory (defaults to current)|
||Produce the result formatted as a JSON string|
||Launch shell in build environment upon failure|
||Pack charm using current host which may result in breaking changes to system configuration|
||Launch shell in build environment in lieu of packing|
||Launch shell in build environment after packing|
||Index of ‘bases’ configuration to build (can be used multiple times); defaults to all|
||Force packing even after finding lint errors|
||Dump measurements to the specified file|
Last updated 11 months ago.