Renaming local credentials

Could someone help me understand how I could rename a credential? I looked through the docs and read the help from juju update-credential --help but to no avail. It seems to mainly be focused on updating the secrets but I just need a rename.

I was hoping for something like juju credential rename foo bar.

@anthonydillon unfortunately there isn’t a rename credentials command. If you have a local client only credential you can probably rename it in ~/.local/share/juju/credentials.yaml or alternatively you need to create a new one with the correct name and remove the old one.

1 Like