Skip to main content
Version: Next

lhc files

Manage uploaded files. This is the same file store used for attachments uploaded through the UI (for example, files attached to a chat session in the query input) — the CLI reads and writes the same records.

Upload limit: 128 MB per file.

Commands​

files list​

lhc files list

Lists all files owned by the authenticated user.


files upload <file>​

lhc files upload driver.jar
lhc files upload driver.jar --output json

Uploads a local file. The server assigns a unique file ID and stores the original filename alongside it.


files download <file-id>​

lhc files download 3e7c3d4f-16ff-4914-8250-bbe693ab7224
lhc files download 3e7c3d4f-16ff-4914-8250-bbe693ab7224 --dest driver.jar
FlagDefaultDescription
--destoriginal filename from the serverDestination file path

Without --dest, the file is written under the name it was originally uploaded with (from the server's Content-Disposition header).


files delete <file-id>​

lhc files delete 3e7c3d4f-16ff-4914-8250-bbe693ab7224

Deletes a file by ID. Users can only list, download, and delete their own files; there is no "delete all" via the CLI (that operation is admin-only and UI-side).