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
DotNet CLI
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
DotNet SDK
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
Power Commander
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:
Python CLI
Command: ls
Options:
-l--listDisplay output in list format-f--foldersDisplay folder names only in output-r--recordsDisplay records in output-v--verboseShow verbose output
Example:
Move Folder Command
Moves records or folders from one location to another within the vault.
DotNet CLI
Command: mv
Flag:
--link: do not delete sourcesource record or folder (pos. 0): Required. source record or folderdestination folder (pos. 1): Required. destination folder
Example:
DotNet SDK
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.
Power Commander
Command: Move-RecordToFolder
Aliases: kmv
Flag :
-Records: Uid of records-Folder: Folder Uid-Link
Example:
Python CLI
Command: mv
Parameter: required
Source pos 0Required - source folder or record UID or pathDestination pos 1Required - destination folder UID or path
Options:
-l,--linkDo not delete source-f,--forceDo 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:
Remove Folder Command
Moves records or folders from one location to another or renames them within the vault.
DotNet CLI
Command: rmdir
Flag:
(pos. 0): folder name or UID. this will be useful for removing folders.
Example:
Python CLI
Command: rmdir
Parameter:
folderFolder path or uid to be deleted (required)
Options:
-f--forceSkip confirmation prompts-q--quietDon't display folder info while removing
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.
Python CLI
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--sharesis 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:
Make Directory Command
Creates a new folder within your Keeper vault to help organize records and other folders.
DotNet CLI
Command : mkdir
Flags :
folder name: Required. folder name-s, --shared (Default: false): shared folder--manage-users: default manage users.trueorfalse. By default this isfalse.--manage-records: default manage records.trueorfalse. By default this isfalse.--can-share: default can share.trueorfalse. By default this isfalse.--can-edit: default can edit.trueorfalse. By default this isfalse.
Example:
DotNet SDK
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 .
Power Commander
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 totrueif we want shared folder to be created, else we can set it tofalse.-CanEdit: default can edit.trueorfalse. By default this isfalse.-CanShare: default can share.trueorfalse. By default this isfalse.-ManageUsers: default manage users.trueorfalse. By default this isfalse.-ManageRecords: default manage records.trueorfalse. By default this isfalse.
Example:
Python CLI
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:
Change Directory Command
Keeper uses directory structure to organize records as records and folders. This command helps navigate keeper folders.
DotNet SDK
Function : Not Applicable
Example:
Get the folder uid or name from the user.
resolve the path using
TryResolvePathfunction and get the outputted folder if it exists into node variable.if node variable is not null, then
FolderUidof the given node will be your current vault folder
Power Commander
Command : Set-KeeperLocation or kcd
Flag :
-Path- path to navigate to folder needed. This can be just name.
Example:
Get Keeper Folder Command
Last updated
Was this helpful?

