<a id="command-juju-diff-bundle"></a>

# `juju diff-bundle`

> See also: [deploy](https://documentation.ubuntu.com/juju/3.6/reference/juju-cli/list-of-juju-cli-commands/deploy.md)

## Summary

Compares a bundle with a model and reports any differences.

## Usage

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

### Options

| Flag                       | Default   | Usage                                                                      |
|----------------------------|-----------|----------------------------------------------------------------------------|
| `-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|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`                                 |

## Examples

```none
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
```

## Details

Bundle can be a local bundle file or the name of a bundle in
Charmhub. 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 sourced from the current model
generation.

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