Skip to content
Kosh Docs

kosh update

Update the label, user or secret of an existing credential, identified by its numeric ID.

Update an existing credential, identified by its numeric ID.

Terminal window
kosh update <id>

Arguments: exactly one — the numeric ID from kosh list.

After the master password is verified you choose which single field to change — label, user or secret — and are asked to confirm before anything is written.

  • Renaming a label or user cannot produce a duplicate: if another credential already uses the resulting label and user pair, the update is aborted with credential already exists.
  • Renames are confirmed neutrally, because they are reversible.
  • Changing the secret re-encrypts it with a fresh ephemeral key and nonce, and the previous value is gone for good.
Terminal window
kosh update 3
kosh list -l github
kosh update 7