Command 'juju diff-bundle'

See also: How to manage bundles


juju diff-bundle [options] <bundle file or name>


Compare a bundle with a model and report any differences.

Global Options:

--debug  (= false)

Equivalent to --show-log --logging-config==DEBUG

-h, --help  (= false)

Show help on a command or other topic.

--logging-config (= "")

Specify log levels for modules

--quiet  (= false)

Show no informational output

--show-log  (= false)

If set, write the log file to stderr

--verbose  (= false)

Show more verbose output

Command Options:

-B, --no-browser-login  (= false)

Do not use web browser for authentication

--annotations  (= false)

Include differences in annotations

--arch (= "")

Specify an arch <all|amd64|arm64|armhf|i386|ppc64el|riscv64|s390x>

--base (= "")

Specify a base

--channel (= "")

Channel to use when getting the bundle from Charmhub

-m, --model (= "")

Model to operate in. Accepts [<controller name>:]<model name>|<model UUID>

--map-machines (= "")

Indicates how existing machines correspond to bundle machines

--overlay  (= )

Bundles to overlay on the primary bundle, applied in order

--series (= "")

Specify a series. DEPRECATED: use --base


Bundle can be a local bundle file or the name of a bundle in the charm store. The bundle can also be combined with overlays (in the same way as the deploy command) before comparing with the model.

The map-machines option works similarly as for the deploy command, but existing is always assumed, so it doesn’t need to be specified.

Config values for comparison are always source from the “current” model generation.

Specifying a base will retrieve the bundle for the relevant store for the give base.


juju diff-bundle localbundle.yaml
juju diff-bundle charmed-kubernetes
juju diff-bundle charmed-kubernetes --overlay local-config.yaml --overlay extra.yaml
juju diff-bundle charmed-kubernetes --base ubuntu@22.04
juju diff-bundle -m othermodel hadoop-spark
juju diff-bundle localbundle.yaml --map-machines 3=4

See also:


Last updated 8 months ago.