<a id="command-juju-model-constraints"></a>

# `juju model-constraints`

> See also: [models](https://documentation.ubuntu.com/juju/4.0/reference/juju-cli/list-of-juju-cli-commands/models.md#command-juju-models), [constraints](https://documentation.ubuntu.com/juju/4.0/reference/juju-cli/list-of-juju-cli-commands/constraints.md#command-juju-constraints), [set-constraints](https://documentation.ubuntu.com/juju/4.0/reference/juju-cli/list-of-juju-cli-commands/set-constraints.md#command-juju-set-constraints), [set-model-constraints](https://documentation.ubuntu.com/juju/4.0/reference/juju-cli/list-of-juju-cli-commands/set-model-constraints.md#command-juju-set-model-constraints)

## Summary

Displays machine constraints for a model.

## Usage

```text
juju model-constraints [options]
```

### Options

| Flag                       | Default     | Usage                                                                      |
|----------------------------|-------------|----------------------------------------------------------------------------|
| `-B`, `--no-browser-login` | false       | Do not use web browser for authentication                                  |
| `--format`                 | constraints | Specify output format (constraints|json|yaml)                              |
| `-m`, `--model`            |             | Model to operate in. Accepts [<controller name>:]<model name>|<model UUID> |
| `-o`, `--output`           |             | Specify an output file                                                     |

## Examples

```none
juju model-constraints
juju model-constraints -m mymodel
```

## Details

Shows constraints that have been set on the model with `juju set-model-constraints`.
By default, the model is the current model.
Model constraints are combined with constraints set on an application.
with `juju set-constraints` for commands (such as `deploy`) that provision
machines/containers for applications. Where model and application constraints overlap, the
application constraints take precedence. Constraints for a specific application
can be viewed with `juju constraints`.
