Skip to main content
Media commands manage the files and folders in your media library. Most commands accept either a UUID or a name for files and folders — when a name matches multiple items, the CLI prompts you to pick one interactively.
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
You can reference files and folders by name or UUID. When multiple items match a name, the CLI prompts you to select one.

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 is file; 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
Deleting a folder removes all files inside it. This cannot be undone.

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 to media:rename --type folder.)
Example

media:move-folder

Move a folder into another parent folder. (Equivalent to running media:move on a folder.)
Examples