Manage files, folders and spaces of an OpenCloud server using the OpenCloud CLI.
Manage files, folders and spaces of an OpenCloud server using the OpenCloud CLI (oc-cli). Responses get returned in TOON format.
Use the oc-cli api command to interact with the API. The references directory contains detailed documentation for all available resources and operations.
# list all my drives (v1beta1)
oc-cli api -p '/v1beta1/me/drives' -m GET
# get a specific drive by id (v1.0)
oc-cli api -p '/v1.0/drives/90eedea1-dea1-90ee-a1de-ee90a1deee90' -m GET
# update a drive name (v1.0) and only return status
oc-cli api -p '/v1.0/drives/90eedea1-dea1-90ee-a1de-ee90a1deee90' -m PATCH -b '{"name": "New Name"}' --status-only
# help
oc-cli api --help
oc-cliv1beta1 endpoints over v1.0 if both are available.-p '/v1.0/me' -b '{"name": "foo"}').--status-only flag when the response body isn't needed (e.g., DELETE, or PATCH when only confirmation is required).objectId, the @libre.graph.recipient.type property must be set to either "user" or "group".password field (8+ characters, including uppercase, lowercase, numbers, and special characters).objectId (e.g. for a user or group when creating a space member or share) that you don't have, search for it first:
-p '/v1.0/users' -q '$search="alice"'-p '/v1.0/groups' -q '$search="marketing"''/v1.0/me/drive/root/children' to list all items in the root of the personal drive/space.v1beta1/drives/{driveId}/root/... endpoints:
'/v1beta1/drives/{driveId}/root/permissions' path.'/v1beta1/drives/{driveId}/root/invite' path.'/v1beta1/drives/{driveId}/root/permissions/{permissionId}' path.references/resources/<resource>.md to see available operations.references/operations/<operation>.md for specific path parameters and request body requirements.references/schemas/<prefix>/<schema>.md for the full data structure.references/resources/drives-root.mdreferences/resources/drives-permissions.mdreferences/resources/me-drive.mdreferences/resources/me-drive-root.mdreferences/resources/me-drive-root-children.mdreferences/resources/me-drives.mdreferences/resources/drives-GetDrives.mdreferences/resources/drives.mdreferences/resources/driveItem.mdreferences/resources/user.mdreferences/resources/users.mdreferences/resources/group.mdreferences/resources/groups.mdreferences/resources/me-user.mdreferences/resources/me-changepassword.mdreferences/resources/me-photo.mdreferences/resources/user-photo.mdreferences/resources/user-appRoleAssignment.mdreferences/resources/tags.mdreferences/resources/activities.mdreferences/resources/applications.mdreferences/resources/roleManagement.mdreferences/
├── resources/
├── operations/
└── schemas/