juju set-credentialΒΆ

Usage: juju set-credential [options] <cloud name> <credential name>

Summary:
Relates a remote credential to a model.

Global Options:
--debug  (= false)
    equivalent to --show-log --logging-config=<root>=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
-m, --model (= "")
    Model to operate in. Accepts [<controller name>:]<model name>|<model UUID>

Details:
This command relates a credential cached on a controller to a specific model.
It does not change/update the contents of an existing active credential. See
command `update-credential` for that.

The credential specified may exist locally (on the client), remotely (on the
controller), or both. The command will error out if the credential is stored
neither remotely nor locally.

When remote, the credential will be related to the specified model.

When local and not remote, the credential will first be uploaded to the
controller and then related.

This command does not affect an existing relation between the specified
credential and another model. If the credential is already related to a model
this operation will result in that credential being related to two models.

Use the `show-credential` command to see how remote credentials are related
to models.

Examples:

For cloud 'aws', relate remote credential 'bob' to model 'trinity':

    juju set-credential -m trinity aws bob

See also:
    credentials
    show-credential
    update-credential