<a id="command-juju-default-credential"></a>

# `juju default-credential`

> See also: [credentials](https://documentation.ubuntu.com/juju/4.0/reference/juju-cli/list-of-juju-cli-commands/credentials.md#command-juju-credentials), [add-credential](https://documentation.ubuntu.com/juju/4.0/reference/juju-cli/list-of-juju-cli-commands/add-credential.md#command-juju-add-credential), [remove-credential](https://documentation.ubuntu.com/juju/4.0/reference/juju-cli/list-of-juju-cli-commands/remove-credential.md#command-juju-remove-credential), [autoload-credentials](https://documentation.ubuntu.com/juju/4.0/reference/juju-cli/list-of-juju-cli-commands/autoload-credentials.md#command-juju-autoload-credentials)

**Aliases:** set-default-credentials

## Summary

Gets, sets, or unsets the default credential for a cloud on this client.

## Usage

```text
juju default-credential [options] <cloud name> [<credential name>]
```

### Options

| Flag      | Default   | Usage                                  |
|-----------|-----------|----------------------------------------|
| `--reset` | false     | Reset default credential for the cloud |

## Examples

Set the default credential for the `google` cloud:

```none
juju default-credential google <credential>
```

View the default credential for the `google` cloud:

```none
juju default-credential google
```

Unset the default credential for the `google` cloud:

```none
juju default-credential google --reset
```

## Details

This command sets a locally stored credential to be used as a default.

Default credentials avoid the need to specify a particular set of
credentials when more than one credential is available on the client for a given cloud.
