Folder Commands

This Page shows commands related to folder and their contents

Overview

The page shows folder commands. the currently supported commands are

List Folder Command

This command return information for a given UID. The UID can be for a record, folder, shared folder or a team. The information can be printed as a json or as a list of details

chevron-rightDotNet CLIhashtag

Command: ls

Flags:

  • l : details

Example:

My Vault> ls -l
  #  Folder UID              Name                           
---  ----------------------  -------------------------------
  1  folder_uid              Actest/                        
  2  folder_uid              ChecKRustWindows               
  3  folder_uid              Example-shared-folder          
  4  folder_uid              main_credentials_shared_folder 
  5  folder_uid              main_folder_for_init_test      
                      
chevron-rightDotNet SDKhashtag

The current implementation of the command in DotNet SDK follows searching of the given UID among different categories

public bool TryGetFolder(string folderUid, out FolderNode node)

then use the node to get subfolders and all their data using

var subFolders = node.Subfolders;

Now the data of these subfolders can be accessed

chevron-rightPower Commanderhashtag

Command: Get-KeeperFolders

Aliases: kfolders

Parameters:

  • -Filter (string, optional) - Filter folders by name. Supports wildcards (* and ?). Example: "Engineering*"

  • -Type (string, optional) - Filter by folder type: 'All' (default), 'User', or 'Shared'

  • -IncludeRoot (switch, optional) - Include the root folder in results

  • -AsObject (switch, optional) - Return folder objects for pipeline use instead of formatted display

  • -Verbose (switch, optional) - Show detailed information including full folder paths

Example:

chevron-rightPython CLIhashtag

Command: ls

Options:

  • -l --list Display output in list format

  • -f --folders Display folder names only in output

  • -r --records Display records in output

  • -v --verbose Show verbose output

Example:

chevron-rightPython SDKhashtag

Function: get_folder

Example:

Move Folder Command

Moves records or folders from one location to another within the vault.

chevron-rightDotNet CLIhashtag

Command: mv

Flag:

  • --link : do not delete source

  • source record or folder (pos. 0) : Required. source record or folder

  • destination folder (pos. 1) : Required. destination folder

Example:

chevron-rightDotNet SDKhashtag

Function:

Arguments :

srcFolderUid - UID of the source folder. this is the folder which will be moved to a different place

dstFolderuid - UID of the folder to whose location the earlier folder will be moved to.

link - this flag when sets to true will not remove the source folder from source and link the new folder at destination to source folder. When this is set to false , the source folder will be moved from source to dest.

chevron-rightPower Commanderhashtag

Command: Move-RecordToFolder

Aliases: kmv

Flag :

  • -Records : Uid of records

  • -Folder : Folder Uid

  • -Link

Example:

chevron-rightPython CLIhashtag

Command: mv

Parameter: required

  • Source pos 0 Required - source folder or record UID or path

  • Destination pos 1 Required - destination folder UID or path

Options:

  • -l, --link Do not delete source

  • -f, --force Do not prompt

  • -R, --recursive Apply search pattern to folders as well

  • -s, --can-reshare {on, off} apply "Can Share" record permission

  • -e, --can-edit {on, off} apply "Can Edit" record permission

Example:

chevron-rightPython SDKhashtag

Function: move_vault_objects

Example:

Remove Folder Command

Moves records or folders from one location to another or renames them within the vault.

chevron-rightDotNet CLIhashtag

Command: rmdir

Flag:

  • (pos. 0) : folder name or UID. this will be useful for removing folders.

Example:

chevron-rightDotNet SDKhashtag

Function:

Arguments :

folderUid - folder to remove

chevron-rightPower Commanderhashtag

Command:

Flags:

Name - Name or UID of folder to delete

chevron-rightPython CLIhashtag

Command: rmdir

Parameter:

  • folder Folder path or uid to be deleted (required)

Options:

  • -f --force Skip confirmation prompts

  • -q --quiet Don't display folder info while removing

Example:

chevron-rightPython SDKhashtag

Function: delete_vault_objects

Example:

Tree Command

Shows a hierarchical tree view of folders and records in the vault, similar to the Unix tree command. Shows the directory structure.

chevron-rightDotNet CLIhashtag

Command : tree

Flag :

  • folder (pos. 0) : folder path or UID

Example:

chevron-rightDotNet SDKhashtag

Function: Not Supported

chevron-rightPower Commanderhashtag

Command : Coming Soon

chevron-rightPython CLIhashtag

Command : tree

Options:

  • -v, --verbose - Prints internal IDs (e.g., folder UIDs) in addition to names.

  • -r, --records - Displays the records contained within each folder.

  • -s, --shares - Shows share permission details for each shared folder.

  • -hk, --hide-shares-key - Hides the share permissions key legend. Valid only when used together with --shares. By default, the key is displayed whenever --shares is enabled.

  • -t, --title - Prints an optional title above the folder structure output.

  • folder - Folder path or UID to display. If omitted, shows the root folder.

Example:

chevron-rightPython SDKhashtag

Not Supported

Make Directory Command

Creates a new folder within your Keeper vault to help organize records and other folders.

chevron-rightDotNet CLIhashtag

Command : mkdir

Flags :

  • folder name : Required. folder name

  • -s, --shared (Default: false) : shared folder

  • --manage-users : default manage users. true or false. By default this is false .

  • --manage-records : default manage records. true or false. By default this is false .

  • --can-share : default can share. true or false. By default this is false .

  • --can-edit : default can edit. true or false. By default this is false .

Example:

chevron-rightDotNet SDKhashtag

Function:

Flag :

name - Name of the folder which has to be created. This will be title of folder record which is created.

parentFolderUid - UID of parent folder.

SharedFolderOptions:

ManageUsers : default manage users. true or false. By default this is false .

ManageRecords : default manage records. true or false. By default this is false .

CanShare : default can share. true or false. By default this is false .

CanEdit : default can edit. true or false. By default this is false .

chevron-rightPower Commanderhashtag

Command : Add-KeeperFolder or kmkdir

Flag :

  • -Name : Name of the folder which is to be created

  • -ParentFolderUid : Parent Folder Uid under which current folder is to be created

  • -Shared : whether this will be shared folder or normal folder. this can be set to true if we want shared folder to be created, else we can set it to false.

  • -CanEdit : default can edit. true or false. By default this is false .

  • -CanShare : default can share. true or false. By default this is false .

  • -ManageUsers : default manage users. true or false. By default this is false .

  • -ManageRecords : default manage records. true or false. By default this is false .

Example:

chevron-rightPython CLIhashtag

Command: : mkdir

Parameters:

  • folder : Name of folder (required)

Options:

  • -sf, --shared-folder : create shared folder

  • -uf, --user-folder : create user folder

  • -a, --all : anyone has all permissions by default

  • -u, --manage-users : anyone can manage users by default

  • -r, --manage-records : anyone can manage records by default

  • -s, --can-share : anyone can share records by default

  • -e, --can-edit : anyone can edit records by default

Example:

chevron-rightPython SDKhashtag

Function: add_folder

Example:

Change Directory Command

Keeper uses directory structure to organize records as records and folders. This command helps navigate keeper folders.

chevron-rightDotNet CLIhashtag

Command : cd

Flag :

  • folder destination or Uid

Example:

chevron-rightDotNet SDKhashtag

Function : Not Applicable

Example:

  1. Get the folder uid or name from the user.

  2. resolve the path using TryResolvePath function and get the outputted folder if it exists into node variable.

  3. if node variable is not null, then FolderUid of the given node will be your current vault folder

chevron-rightPower Commanderhashtag

Command : Set-KeeperLocation or kcd

Flag :

  • -Path - path to navigate to folder needed. This can be just name.

Example:

chevron-rightPython CLIhashtag

Command: cd

Parameter:

  • FOLDER Folder path or UID (required)

Example:

chevron-rightPython SDKhashtag

Not Supported

Get Keeper Folder Command

chevron-rightPower Commanderhashtag

Command: Get-KeeperFolder

Get detailed information about a Keeper folder.

Flags:

Uid - Uid of the folder to show details for.

Usage:

Example:

Last updated

Was this helpful?