Command build

Usage:

charmcraft build [options]

Summary:

Build a charm operator package.

You can juju deploy the resulting .charm file directly, or upload it to Charmhub with charmcraft upload.

You must be inside a charm directory with a valid metadata.yaml, requirements.txt including the ops package for the Python operator framework, and an operator entrypoint, usually src/charm.py.

See charmcraft init to create a template charm directory structure.

Options:

       -h, --help:  Show this help message and exit
    -v, --verbose:  Show debug information and be more verbose
      -q, --quiet:  Only show warnings and errors, not progress
      -t, --trace:  Show all information needed to trace internal
                    behaviour
-p, --project-dir:  Specify the project's directory (defaults to
                    current)
       -f, --from:  Charm directory with metadata.yaml where the
                    build takes place; defaults to '.'
 -e, --entrypoint:  The executable which is the operator entry
                    point; defaults to 'src/charm.py'
-r, --requirement:  File(s) listing needed PyPI dependencies (can be
                    used multiple times); defaults to
                    'requirements.txt'

See also:

analyze
clean
init
pack
version

For a summary of all commands, run charmcraft help --all.