Subcommands
dzdk batch download- Download multiple resources or photosdzdk batch upload- Upload multiple photos from a directory
dzdk batch download
Download multiple resources or photos in a single operation.Syntax
Options
Type of content to downloadChoices:
resources, photosComma-separated list of IDs to downloadCan be either item IDs or slugs
Output directory for downloaded filesDirectory is created automatically if it doesn’t exist
Examples
Download Multiple Resources
Download Photos to Custom Directory
Download Using Slugs
File Naming
Downloaded files are named based on the item title: Resources:Progress Display
The download command shows:- Progress bar with percentage
- Time remaining
- Individual file completion messages
- Final summary with output directory path
Error Handling
- If an item is not found, a warning is displayed and the download continues
- If a download URL is missing, the item is skipped
- Network errors are caught and displayed without stopping other downloads
dzdk batch upload
Upload multiple files from a directory.Syntax
Options
Directory containing files to uploadMust be an existing directory
Type of content to uploadChoices:
photosCurrently only photos are supported for batch uploadExamples
Upload All Photos from Directory
Upload from Absolute Path
Supported File Types
For photos:.jpg.jpeg.png
File Size Limit
Maximum file size: 10 MB Files larger than 10 MB are skipped with a warning message.File Metadata
Uploaded files use:- Title: Derived from filename (stem without extension)
- Additional metadata can be added after upload using
dzdk photos edit
Progress Display
The upload command shows:- Progress bar with percentage
- Time remaining
- Individual file upload confirmations
- Final summary with total files processed
Error Handling
No Files Found:Performance
Both batch operations:- Process files sequentially with progress tracking
- Use streaming for downloads to handle large files efficiently
- Display real-time progress updates
- Continue processing even if individual items fail
Notes
- Batch operations require active network connection
- Downloaded files overwrite existing files with the same name
- Upload titles are automatically generated from filenames
- Progress bars show both individual item progress and overall completion