Record Commands

This page gives information related to record commands

Overview

This section lists all the commands in Keeper’s Commander (CLI) that are related to manipulating records in the vault. “Record commands” in this context are things like record add, edit, get etc. The commands cover creating, viewing, editing, organizing, and managing these records and related attachments.

The following commands are currently supported by SDK

Along with record specific commands, SDK also supports record attachment functionalities. These can be found here. These include

Record Add Command

This command is used to add records to Keeper Vault. The command supports all record types, custom types, standard fields and custom fields.

DotNet CLI

Command : add-record

Parameters:

Parameter
Description

-t, --type

Record type (login, bankAccount, address, etc.)

--title

Record title

Options:

Option
Description

--folder

Folder name or UID where record will be created

-g, --generate

Generate random password

--self-destruct

Auto-delete after time period (5m, 2h, 1d, etc.)

Record Fields:

Add fields using fieldname=value format:

Example:

DotNet SDK

Function:

Arguments:

Argument
Type
Required
Description

record

KeeperRecord

Yes

Record data of type KeeperRecord containing all record information

folderUid

string

No

UID of folder in which to create the record (default: null = root folder)

Returns:

Task<KeeperRecord> - A task returning the created KeeperRecord with assigned UID

Example usage: can be found here

PowerCommander

Command : Add-KeeperRecord

Aliases: kadd

Parameters:

Option
Description

-RecordType

Specifies the record type (default: login)

-Title

Title of the record

Flags:

Option
Description

-Folder

UID of the folder where the record will be created

-GeneratePassword

Generates a new password and stores it in the created record

-Notes

Add notes to the record

-SelfDestruct

Timeout for the shared record URL (format: m, h, or d. Max: 180 days/6 months). Record disappears 5 minutes after viewing

Example:

Usage example samples can be found here

Python CLI

Command: record-add

Parameters:

-t --title Title of the record (required)

-n --notes Record Notes

-rt --record-type Record type (required)

--folder Folder in which record is to be added

--self-destruct Timeout of the share record url. Set in m, h or d. Max 180days (6 months). Record disappears in 5mins after viewing

-f --force Ignore warnings and skip prompts

fields <field_type>=<value> List of fields with their values

Example:

Python SDK

Function: add_record_to_folder

Record Update Command

This command is used to update existing records in Keeper Vault.

DotNet CLI

Command: update-record

Parameters:

Parameter
Description

record

The path or UID of the record to update

Options:

Option
Description

--title

Updates the title of the record

-t, --type

Record type (typed records only)

-g, --generate

Generates a random password and updates the existing record password field (Default: false)

--help

Display help screen

--version

Display version information

fields

Record fields to add/update in format fieldname=value

Example:

DotNet SDK

Functions:

Arguments:

Argument
Type
Required
Description

record

KeeperRecord

Yes

Record object with updated data (must have valid UID)

skipExtra

bool

No

Skip updating file attachment information (default: true)

Returns:

Task<KeeperRecord> - A task returning the updated KeeperRecord

Example:

Approach 2:

If multiple records are to be updated at once, then all of them can be updated

Function:

Returns:

Task<IList<RecordUpdateStatus>> - A task returning a list of update statuses for each record

RecordUpdateStatus Properties:

Property
Type
Description

RecordUid

string

UID of the record

Status

string

Update status: "success" or error message

Message

string

Additional status message or error details

Example:

PowerCommander

Command: Add-KeeperRecord

Aliases: kadd

Parameters:

  • -Uid : Record Uid of the record to be updated

Flags:

Option
Description

-GeneratePassword

Generate and update a new password for the record

-Title

Updated title of the record

-Notes

Update notes for the record

-Verbose

Display detailed operation information

-Debug

Display debugging information during execution

-ErrorAction

Specify how to respond to errors (Continue, Stop, SilentlyContinue, Ignore)

-WhatIf

Show what would happen if the cmdlet runs without actually executing

-Confirm

Prompt for confirmation before executing the command

Requirement:

This command updates record in current folder. so first change current directory to directory on which you want to create the folder. this can be done using Set-KeeperFolder command here

Example:

Python CLI

Command: record-update

Parameters:

-t --title Modify record title (required)

-rt --record-type Modify record type (required)

-n --notes Append/modify notes

-r --record UID or path to be modified (required)

fields <field type>=<value> List of fields with their values

Options:

-f --force Ignore warnings

Example:

Python SDK

Function: update_record

Example:

Record Delete Command

Use this command to delete multiple records from your personal vault folders. The delete record will exist in the owner's vault and if all record instances are deleted, it remains in the trash can of owner's vault

DotNet CLI

Command: rm

Flags:

  • --help : Display this help screen.

  • --version : Display version information.

  • record title, uid, or pattern : The UID/Title of the folder which will be deleted.

Example:

DotNet SDK

Function: DeleteRecords

Arguments:

records - an array of record paths.

Exceptions:

PowerCommander

Command: Remove-KeeperRecord

Aliases: kdel

Parameters:

  • Name - Record name to delete

Examples:

Python CLI

Command: rm

Parameters:

  • records Uid for records to be deleted (required)

Options:

  • -f --force Delete without prompts

Example:

Python SDK

Function: delete_vault_objects

Example:

List Command

This command displays a list of all records available in Keeper Vault in a tabular format. Each row contains Record UID, title, type, description and whether the record is shared with other users.

DotNet CLI

Command: search

Parameters:

  • argument 1 : pattern to match in search (Required).

Flags:

  • --verbose : show all data

  • --limit : number of records to show

Example:

DotNet SDK

Function: vault.KeeperRecords

To get similar functionality, we need to get records from Keeper Records list from vault context

Power Commander

In PowerCommander, users may need to run various list commands to obtain details about different types.

Example:

  • Get-KeeperEnterpriseTeamUser or ketu : Get a list of enterprise users for team

  • Get-KeeperEnterpriseRoleUsers or keru : Get a list of enterprise users for role.

  • Get-KeeperEnterpriseRoleTeams or kert : Get a list of enterprise teams for role

  • Get-KeeperBreachWatchList or kbw : List passwords which are breached based on breachwatch.

Python CLI

Command: list

Alias:l

Options:

-t --type Used to list records of certain types. Can be repeated by appending

-v --verbose Used to display long titles

--format Table, csv, json

--output Path to output file

search_text List criteria

Example:

Python SDK

Function: find_records

Example:

Note:

  • criteria : Text to be present in the record

  • record_types : Return record of given record types

  • record_version : Return record of given record version

Get Record Command

This command is used specifically for fetching records. The get command in DotNet and Python SDKs is listed under miscellaneous commands, which fetches record, team, folder and share folder.

DotNet CLI

Command: get

Parameters:

  • uid : Uid of Record or Shared folder or Folder

Example:

DotNet SDK

The current implementation of the command in dotnet cli follows searching of the given UID among different categories

If UID is not found in record, then we move ahead to searching for UID among folders

If UID is not found in shared folder, then we check folders

Power Commander

Command: Get-KeeperRecord

Aliases: kr

Parameters:

  • Uid : returns record with matching Uid

Flags:

  • Filter : Matches record content with what is given and returns matching ones

Examples:

Python CLI

Command: get <UID>

Parameters:

  • uid UID or title to search for (optional when using -f, -t, or -r flags)

  • -f, --folder Folder UID or title to search for

  • -t, --team Team UID or title to search for

  • -r, --record Record UID or title to search for

Options:

--format Supported display types - json, details, fields or password

--unmask Show sensitive data in output such as passwords

--legacy Show typed records as legacy

Example:

Python SDK

Function: load_record

Example:

The load_record returns the record details. There are 4 types of records:

  • PasswordRecord - legacy or general

  • TypedRecord

  • FileRecord

  • ApplicationRecord

These classes are defined in keepersdk.vault.vault_record

Record History Command

This command is used to list (default action) revisions or changes in a record, view a particular revision, see differences in between revision and restore old revisions in a record. Here revision can be equated to a change version for a specific record

DotNet CLI

Command: record-history

Parameters:

  • recordUid : UID of the record whose history has to be searched.

Example:

DotNet SDK

Functions:GetRecordHistory

Arguments:

recordUid : UID of the record whose history has to be shown

Power Commander

Command : Coming Soon

Python CLI

Command: record-history

Parameters:

--format Table, csv, Json

--output Path to resulting output file (ignored for "table" format)

-a --action Supported actions are list, diff, view, restore

-r, --revision Revision of the record to be shown or restored to

record Record UID or path (required)

Options:

  • -v, --verbose Show Verbose output

Example:

Python SDK

Function: Not Supported

Clipboard Copy Command

This command retrieves data from a record (password, login, TOTP, custom fields) and outputs it to various destinations including clipboard, stdout, or environment variables.

This command is also aliased as find-password

DotNet CLI

Command: clipboard-copy

Alias: cc, find-password

Flags:

  • record: Record path or UID to retrieve data from

  • --username : Match login name when multiple records exist with the same name

  • --output : Output destination - values: clipboard (default), stdout, stdouthidden, variable

  • --name : Variable name when output is set to variable

  • --copy-uid : Output UID instead of password

  • -l, --login : Output login name instead of password

  • -t, --totp : Output TOTP code instead of password

  • --field : Output specific custom field (use field:property for nested values)

  • -r, --revision : Use specific record revision

Examples:

Power Commander

Command : Coming Soon

Python CLI

Command : Coming Soon

Python SDK

Function: Not Supported

Find Duplicates Command

This command searches for duplicate records in your vault based on various matching criteria. It can display duplicates or automatically merge/remove them.

DotNet CLI

Command: find-duplicates

Flags:

  • --title : Match duplicates by title

  • --login : Match duplicates by login

  • --password : Match duplicates by password

  • --url : Match duplicates by URL (also displays URL in results)

  • --shares : Match duplicates by share permissions

  • --full : Match duplicates by all fields including custom fields

  • -m, --merge : Consolidate duplicate records (removes all but first in each group)

  • --ignore-shares-on-merge : Ignore share permissions when grouping duplicates to merge

  • -f, --force : Delete duplicates without confirmation (valid only with --merge)

  • -n, --dry-run : Simulate removing duplicates without actually removing them (valid only with --merge)

  • -q, --quiet : Suppress screen output (valid only with --force)

  • -s, --scope : Search scope - values: vault (default), enterprise

  • -r, --refresh-data : Populate local cache with latest data (valid only with --scope=enterprise)

Examples:

Power Commander

Command : Coming Soon

Python CLI

Command : Coming Soon

Python SDK

Function: Not Supported

File Report Command

This command details report of all files that you can access in the vault. Report include Title, Record UID, and File ID

DotNet CLI

Command: find-duplicates

Flags:

  • --title : Match duplicates by title

  • --login : Match duplicates by login

  • --password : Match duplicates by password

  • --url : Match duplicates by URL (also displays URL in results)

  • --shares : Match duplicates by share permissions

  • --full : Match duplicates by all fields including custom fields

  • -m, --merge : Consolidate duplicate records (removes all but first in each group)

  • --ignore-shares-on-merge : Ignore share permissions when grouping duplicates to merge

  • -f, --force : Delete duplicates without confirmation (valid only with --merge)

  • -n, --dry-run : Simulate removing duplicates without actually removing them (valid only with --merge)

  • -q, --quiet : Suppress screen output (valid only with --force)

  • -s, --scope : Search scope - values: vault (default), enterprise

  • -r, --refresh-data : Populate local cache with latest data (valid only with --scope=enterprise)

Examples:

Power Commander

Command : Coming Soon

Python CLI

Command: file-report

Parameters:

--format Table, csv, Json

--output Path to resulting output file (ignored for "table" format)

-d --try-download Try downloading every attachment you have access to.

Example:

Python SDK

Function:

Last updated

Was this helpful?