Manage folders from the Keeper Vault shared to KSM Applications
folder commandDescription: List, create, update and delete folders from the vault. Works only within folders shared to KSM Applications. The folder command manages subfolders within existing shared folders.
Parameters:
Sub-command to run
format: ksm folder <sub-command>
Sub-Commands:
List all folders associated with the application
ksm folder list
optional parameters:
--json return results in JSON format
-f, --folder <folder UID> List only folders/records in the selected folder UID.
Example 1: Tabular format
Example 2: JSON format
Create a new subfolder into the specified parent folder. KSM can create subfolders only in existing shared folders that are shared to the KSM App including their subfolders and cannot create new shared folder(s).
ksm folder add --parent-folder <FOLDER UID> --title <FOLDER TITLE>
Required parameters:
--parent-folder, -f The parent folder UID where the new (sub)folder will be created.
--title, -t Title of the new folder.
Example:
Rename a folder.
ksm folder update --folder <FOLDER UID> --title NEW_TITLE
Parameters:
--folder, -f - Folder UID of the folder to rename.
--title, -t - The new folder title.
Example:
Delete a folder in the vault (shared to the KSM App)
ksm folder delete <FOLDER UID>
Parameters:
<FOLDER UID> UID of the folder to delete (Required)
-f, --force force deletion of non-empty folders (Optional)
Example:
-r, --recursive-l, --list-records Include folder records info in the output.
Sub-Command
Description
list
List all folders associated with the application
add
Add a new subfolder to the vault.
update
Rename a folder
delete
Delete the folders from the vault
$ ksm folder list
Type Parent UID Title
---- ----------------------- ----------------------- ---------------
dir vZdNYOi7Oh1q6pvI9jY8KA Applications
dir EVvnsKbrlYHMi4HVTBn3-w Databases
dir EVvnsKbrlYHMi4HVTBn3-w Bj9bNJjSFobG-VE7MImaIA Oracle$ ksm folder list --json
[
{
"type": "dir",
"parent_uid": "",
"uid": "vZdNYOi7Oh1q6pvI9jY8KA",
"title": "Applications"
},
{
"type": "dir",
"parent_uid": "",
"uid": "EVvnsKbrlYHMi4HVTBn3-w",
"title": "Databases"
},
{
"type": "dir",
"parent_uid": "EVvnsKbrlYHMi4HVTBn3-w",
"uid": "Bj9bNJjSFobG-VE7MImaIA",
"title": "Oracle"
}
]ksm folder add --parent-folder vZdNYOi7Oh1q6pvI9jY8KA --title NewApp
The following is the new folder UID ...
Ai9iFYWf6EOE0T9fVAynBg$ ksm folder update --uid Ai9iFYWf6EOE0T9fVAynBg --title NewAppTitle$ ksm folder delete Ai9iFYWf6EOE0T9fVAynBg
UID Response Code Error
----------------------- ------------- -----
Ai9iFYWf6EOE0T9fVAynBg ok