Record Type Commands
Commands for creating and managing Record Types and Custom Templates
A Keeper Record Type is a structured template that can contain any type of information such as logins, payment cards, SSH keys, servers, etc. The commands associated with Record Types are listed below.
Commands
Keeper Command Reference
Whether using the interactive shell, CLI or JSON config file, Keeper supports the following commands, each command supports additional parameters and options.
To get help on a particular command, run:
help <command>
All commands associated with record types
record-type-info or rti
List record types or see information about a specific record type
record-type or rt
Add, edit, or delete custom record types
convert
Convert legacy records to record-typed records
convert-all
Convert all legacy records in the vault to record-typed records
record-type-info command:
Command: record-type-info or rti
Detail: List available record types or display the field-level details of a specific record type
Switches:
-lr, --list-record <RECORD TYPE OR ID (optional)>
If record type name or ID is not given, lists all record type names and IDs
if a record type name or ID is given, displays the record type's details and fields
-lf, --list-field <FIELD NAME> show information about a specified field type. Can use "*" to show all fields.
-e, --example generate example json for a record type or field. *Must use with -lr or -lf
-ef, --effective filter -lr results to only the record types your enterprise role policy (RESTRICT_RECORD_TYPES) allows you to create. Has no effect for users without a record-type restriction policy.
--syntax-help display extended help on record type parameters
--format <{csv, json, table}> choose the format to output in
--output <OUTPUT FILE> output results to a given file *ignored if table format is used
Examples:
Get syntax help
Show a list of record types:
Show only the record types your enterprise role allows you to create:
Show the fields and JSON structure of the "login" record type:
Display a list of all field types:
Get the field defails of the "host" field type:
Show an example full JSON record of a "passport" type:
Write the record type information as a CSV to a file:
record-type command:
Command: record-type or rt
Detail:
Add, modify, or delete custom record types
Parameters:
Record type ID (if updating or deleting)
Switches:
-a, --action <{add, update, remove}> action to perform
add - create a new custom record type
update - modify an existing custom record type
remove - delete an existing custom record type
--data <DATA> JSON formatted definition of the record type
Format:
Record types utilize the following formatting:
Example:
Use the following command to see a list of available field types: rti -lf *
Examples:
Add a new record type named "My Record Type"
Update the "My Record Type" record Type (which has an ID of 102 in this example). Here, the 'Address' field was removed
Remove the record type with ID 102
convert command:
Required Version: v16.5.9+
Command: convert
Detail: Convert legacy (General typed or untyped) records to typed records.
The convert command will only convert legacy, untyped records to typed records.
To convert the type of a typed record, use the edit command.
To convert all legacy records in the vault at once, use the convert-all command instead.
Parameters:
Pattern to match records in the current folder. Matches against UIDs and titles. Can use "?" to match any single character and "*" to match any number of characters
Switches:
-t, --record-type <RECORD TYPE OR ID > The type to convert records to
-q, --quiet Do not show info about matched and converted records
-u, --url <URL Pattern> Only converts records with URLs that match the given pattern. Can use "?" to match any single character and "*" to match any number of characters
-n, --dry-run Display the outcome of the conversion without converting any records
-r, --recursive apply conversion to all matching records in the current and child folders
--ignore-ownership convert records even if they are not owned by the current account
Examples:
Convert the untyped record with the given UID to a login type record
Perform a dry-run of conversion of all records in the vault and display what records would be converted. (will match all records if performed at the root directory)
Convert all untyped records in the vault to login type (if performed at the root directory)
Convert any untyped record that contains 'sql' in its name to a database credential
Convert any record that ends in ssh-<anything> to a sshKey type record
e.g convert a record titled "Github ssh-1" and a record titled "Github ssh-2"
convert-all command:
Required Version: v17.x+
Command: convert-all (alias: ca)
Detail: Convert all legacy (General typed or untyped) records in the vault to typed records. Designed for bulk conversion during datacenter migrations where all General records must be converted before migration can proceed.
The convert-all command scans the entire vault and converts all legacy, untyped records.
To convert specific records by pattern, use the convert command.
To change the type of an already-typed record, use the edit command.
Switches:
-t, --record-type <RECORD TYPE OR ID> The target type to convert records to. Defaults to login if not specified.
-f, --force Skip the confirmation prompt. Required for non-interactive or batch-mode execution.
-ia, --include-attachments Include records that have file attachments. By default, records with attachments are skipped. Note: file attachments may not be decrypted by Keeper clients after conversion.
-io, --ignore-ownership Include records not owned by the current account. By default, only owned records are converted.
-n, --dry-run Display the records that would be converted without making any changes.
Examples:
Convert all owned General records without attachments to login type. Prompts for confirmation.
Preview all records that would be converted without making changes.
Convert all owned General records to login type without a confirmation prompt.
Convert all General records in the vault to default login type, including records with attachments and records not owned by the current user, without a confirmation prompt.
Shorthand alias for a dry-run preview.
Pre-check Summary: Before conversion begins, the command displays a summary of the records found, including:
Total General-type records to be converted
Number of records with attachments (skipped unless
-iais used)Number of records not owned by the current user (skipped unless
-iois used)
The command automatically batches records and displays a progress bar during conversion:
Post Summary: After completion, a summary is displayed:
Last updated
Was this helpful?

