clavitor-cli put

put creates a new entry in the vault. Secret fields are encrypted on your machine before they are sent.

Usage

clavitor-cli put <type> <title> [--<field> <value>] [--<field>-file <path>] [--urls <url>]
clavitor-cli put --json < entry.json

Examples

A login, with the password read from stdin:

printf '%s' "$NEW_PASSWORD" | clavitor-cli put credential "Staging DB" --username app --password-file -

An API key, read from a file:

clavitor-cli put api "OpenRouter" --key-file ./key.txt --endpoint https://openrouter.ai/api/v1

A whole entry as JSON on stdin:

clavitor-cli put --json <<'EOF'
{
  "type": "database",
  "title": "Production Postgres",
  "host": "db.example.com",
  "port": "5432",
  "username": "app",
  "password": "…",
  "database": "mydb"
}
EOF

On success put prints Created: <title>.

Types and fields

The types are credential, api_key, card, identity, note, ssh_key, totp, software_license, database, wifi, server, crypto_wallet, loyalty and custom. api and ssh are short for api_key and ssh_key.

Each type has its own field names, for example username, password, totp and urls for a credential. clavitor-cli put <type> --help lists a type's fields with their encryption tier and the flag each takes; clavitor-cli --show-schema prints the whole schema as JSON. An unknown field name is an error, so a typo cannot silently drop a value.

A loyalty entry keeps a loyalty, frequent-flyer or membership card: the title, the program, the number, the member name and notes.

Secrets never go on the command line

Arguments are visible to other processes and end up in shell history. So:

  • Fields that are not secret, such as the user name, take a value: --username app. put still encrypts them with your credential key on your machine; only the title and web addresses are sent as they are.
  • Secret fields (password, key, notes, secret, passphrase, card number, and similar) only take a file: --password-file <path>. Use - as the path to read from stdin. put refuses --password <value>. The one line end at the end of the input is dropped, whether it comes from a file or from stdin, so generate | clavitor-cli put … --password-file - stores exactly what generate made; spaces and tabs at the end stay part of the value.
  • With --json, the whole entry comes from stdin. The JSON needs type and title. Every other value must be a string, so write "port": "5432", not 5432. urls may be a string or an array.

What put does not do

  • It never updates. Running put again with the same title creates a second entry with that title. To change an entry, edit it in the vault.
  • It does not store identity-encrypted fields. A field that the vault keeps under Identity Encryption (a card number, or from CLI 1.7.9 a one-time-password secret, for example) needs a hardware-key tap, so put refuses it with CV-2048 and names the field. Set it in the vault page. put <type> --help marks each field with its tier and lists the identity-encrypted ones separately.
  • Scopes. An entry created by a scoped client gets that client's scopes, so the client can read it back. Change scopes in the vault.

The vault records every put in its audit log, under the client's name.