Skip to main content

Folders

List, read, create, rename, share, move and delete the folders you can access.

list folder​

List the folders. Alias: list folders.

passbolt list folder [flags]

Flags​

FlagRequiredDescription
-s, --search <TEXT>NoSearch by name.
-f, --folder <UUID>NoOnly the folders in this parent folder. Repeat it for several.
-g, --group <UUID>NoOnly the folders shared with one of these groups. Repeat it for several.
-c, --column <COLUMN>NoColumns to show. Repeat it for several. Default: id, folder_parent_id, name. Also: created_timestamp, modified_timestamp, personal.
--filter <EXPR>NoA CEL expression or a field condition. See filters.

Examples​

List the sub-folders of a folder​

passbolt list folder --folder <PARENT_UUID>

List the folders shared with a group​

passbolt list folder --group <GROUP_UUID> -c name

get folder​

Show the parent folder and the name of a folder.

passbolt get folder --id <UUID>

Flags​

FlagRequiredDescription
--id <UUID>YesID of the folder.

Examples​

Read a folder as JSON​

passbolt get folder --id <UUID> --json

get folder permission​

Show who has access to a folder. Alias: get folder permissions.

passbolt get folder permission --id <UUID> [flags]

Flags​

FlagRequiredDescription
--id <UUID>YesID of the folder.
-c, --column <COLUMN>NoThe same columns as get resource permission. Repeat it for several.

Examples​

Show who has access to a folder​

passbolt get folder permission --id <UUID>

create folder​

Create a folder, at the root or in another folder.

passbolt create folder --name <NAME> [flags]

Flags​

FlagRequiredDescription
-n, --name <NAME>YesName of the folder.
-f, --folder-parent-id <UUID>NoParent folder. Default: the root.

A folder created in a shared folder gets its permissions.

Examples​

Create a folder in another folder​

passbolt create folder --name "DevOps" --folder-parent-id <PARENT_UUID>

update folder​

Rename a folder.

passbolt update folder --id <UUID> --name <NAME>

Flags​

FlagRequiredDescription
--id <UUID>YesID of the folder.
-n, --name <NAME>YesNew name.

Examples​

Rename a folder​

passbolt update folder --id <UUID> --name "New Name"

delete folder​

Delete a folder. Its content moves to the root, unless you delete it too.

passbolt delete folder --id <UUID> [flags]

Flags​

FlagRequiredDescription
--id <UUID>YesID of the folder.
--cascadeNoAlso delete its sub-folders and the resources in them.

Examples​

Delete a folder and keep its content​

passbolt delete folder --id <UUID>

Delete a folder with its content​

passbolt delete folder --id <UUID> --cascade

share folder​

Give users and groups access to a folder, change their access, or revoke it.

passbolt share folder --id <UUID> [flags]

Flags​

FlagRequiredDescription
--id <UUID>YesID of the folder.
-t, --type <TYPE>NoPermission: 1 (read), 7 (update), 15 (owner) or -1 (revoke). Default: 1.
-u, --user <UUID>NoUser to share with. Repeat it for several.
-g, --group <UUID>NoGroup to share with. Repeat it for several.
--with-contentNoAlso change the sub-folders and resources you own, as the browser extension does.

With --with-content, the change made on the folder is copied onto the sub-folders and resources you own: a new access only reaches the items without one, a change or a removal only the items that have it.

Examples​

Make a user owner of a folder​

passbolt share folder --id <UUID> --type 15 --user <USER_UUID>

Give a group read access to a folder and its content​

passbolt share folder --id <UUID> --type 1 --group <GROUP_UUID> --with-content

move folder​

Move a folder into another folder, or to the root.

passbolt move folder --id <UUID> --folder-parent-id <TARGET_UUID> [flags]

Flags​

FlagRequiredDescription
--id <UUID>YesID of the folder.
-f, --folder-parent-id <UUID>NoDestination folder. Empty, or left out, for the root.
--with-folder-permissionsNoAlso change its permissions as for a resource, then copy that change onto the content you own (owners only). Needs --folder-parent-id.

Examples​

Move a folder​

passbolt move folder --id <UUID> --folder-parent-id <TARGET_UUID>

Move a folder and take the permissions of the destination​

passbolt move folder --id <UUID> --folder-parent-id <TARGET_UUID> --with-folder-permissions