Names can be UUID-prefixed (for example
f200d255-...-photo.pdf). The CLI extracts
the leading UUID automatically, falling back to a name search if that lookup fails.Files
media:upload
Upload a file to your media library. The CLI handles presigned URL generation and the upload to S3 automatically.
The MIME type is inferred from the file extension. Recognized extensions:
Any other extension is uploaded as
application/octet-stream.
Examples
Response
media:list
List media files and folders. With--folder, lists the contents of that folder;
with --file, returns the details of a single file.
Examples
media:search
Search for media files by name across all folders.Example
media:get
Get detailed metadata for a specific media file by its UUID.Example
media:delete
Delete one or more media files, or a single folder. By default the target type isfile; pass --type folder to delete a folder instead. Items can be referenced by
UUID or name.
When deleting files, a single file is removed directly while multiple files use the
bulk-delete endpoint. Only one folder can be deleted at a time.
Examples
media:bulk-delete
Delete multiple media files by UUID. Useful when you already have the IDs and want a single bulk operation.Examples
media:move
Move a file or folder to a different location. The source is resolved across both files and folders — if a name matches more than one item, you’re prompted to choose.Examples
media:rename
Rename a file or folder. Defaults to renaming a file; pass--type folder to rename
a folder.
Examples
Folders
media:folders
List all media folders.Example
media:create-folder
Create a media folder, optionally nested inside an existing parent folder.Examples
media:rename-folder
Rename a media folder. (Equivalent tomedia:rename --type folder.)
Example
media:move-folder
Move a folder into another parent folder. (Equivalent to runningmedia:move on a
folder.)
Examples