kosh add
Interactively add a credential to the vault of the active profile.
Add a credential to the vault of the active profile.
kosh addArguments: none — all values are collected through interactive prompts, so nothing sensitive ends up in your shell history.
Prompts, in order: master password → label → user → secret → confirm secret.
- A credential is identified by its label and user together, so the same label can hold several accounts.
- If that pair already exists, a caution block is shown and you must type
overwrite <label> <user>to confirm before the stored secret is replaced. - The label cannot be the name of a Kosh subcommand — run
kosh helpto see the reserved names. Violations reportcredential label cannot be a command name. - To have Kosh create the secret for you instead of typing one, use
kosh generate.
Example
Section titled “Example”kosh addSee also
Section titled “See also”- Storing Credentials — the guide, with the overwrite flow
kosh update— change one field of an existing credential