File operations with the CLI
This guide covers everyday file tasks — uploading, listing, inspecting, organizing, and deleting files from the command line.
For the complete flag reference, see the file and metadata command reference.
Uploading files
Upload a single file:
Upload multiple files:
Upload from a URL:
The CLI polls until the upload completes. Use --no-wait to return immediately (not available
for upload-from-url — use --timeout to control how long to wait).
Upload with metadata:
Control storage behavior:
Show upload progress:
Listing and filtering files
List files with default settings:
List only stored files, newest first:
Get specific fields as JSON:
Stream all files (not just the first page):
--page-all outputs one JSON object per line (NDJSON), streaming results without loading
everything into memory.
Filter with jq:
Inspecting files
Get full file details:
Extract specific fields:
Include application data (add-on results):
Managing file storage
Store files permanently:
Store multiple files:
Delete a file:
Batch delete with piping — delete all unstored files:
Preview before deleting with dry-run:
File deletion is permanent. Use --dry-run to preview what will happen before executing
destructive operations.
Working with metadata
Metadata attaches custom key-value pairs to files. Keys are lowercase alphanumeric with hyphens (max 64 chars). See the metadata concept page for details.
Set a metadata value:
List all metadata on a file:
Get a specific metadata value:
Delete a metadata key:
Copying files
Copy within Uploadcare storage:
This creates a new file with its own UUID. Add --store to store the copy immediately.
Copy to external storage (e.g., S3):
Use --pattern to control the filename on remote storage:
See the S3 integration guide for setting up external storage.
Working with file groups
File groups bundle multiple files under a single group ID. See the file groups concept page for details and the group command reference for all flags.
Create a group from file UUIDs:
Create a group from a file list:
List groups:
Get group details (includes file list):