Subcommands
dzdk export csv- Export data to CSV formatdzdk export report- Generate detailed markdown reports
dzdk export csv
Export data to CSV (Comma-Separated Values) format for use in spreadsheet applications or data analysis tools.Syntax
Options
Type of data to exportChoices:
services, events, photos, resources, populationOutput file path for the CSV fileFile will be created or overwritten if it exists
Examples
Export Services to CSV
Export Events with Full Path
Export Population Data
Export Photos Metadata
Export Resources
CSV Structure
The CSV export automatically:- Flattens nested data structures
- Converts nested objects to prefixed columns (e.g.,
contact_email,contact_phone) - Joins array values with commas
- Includes all available fields for the data type
- Adds header row with column names
Field Flattening Examples
Nested Object:Data Fields by Type
Services CSV
- ID, title, description
- Category, status
- Contact information (flattened)
- Location details (flattened)
- Operating hours
Events CSV
- ID, title, description
- Date, time
- Location
- Category
- Organizer information
Photos CSV
- ID, title, description
- URL, thumbnail URL
- Photographer details (flattened)
- Location
- Tags (comma-separated)
- Date taken
Resources CSV
- ID, title, description
- Category, file type
- Author
- Download URL
- File size
Population CSV
- Demographics data
- Statistics by category
- Time period information
dzdk export report
Generate detailed reports in markdown format with comprehensive information about the data.Syntax
Options
Type of data to reportChoices:
services, events, photos, resources, populationOutput file path for the markdown reportFile will be created or overwritten if it exists
Examples
Generate Services Report
Generate Events Report
Generate Photo Catalog Report
Report Structure
Each report includes:- Title: Data type name
- Generation Timestamp: When the report was created
- Summary Section: Total item count
- Details Section: Individual item details
Item Details Format
For each item:Report Examples
Services Report:Nested Data Handling
- Dictionaries: Rendered as subsections with header
- Lists: Joined with commas in a single line
- Strings/Numbers: Displayed as key-value pairs
Output Location
Both export commands display the final file path:Error Handling
No Data Found:Use Cases
CSV Export
- Import into Excel or Google Sheets
- Data analysis with Python/R
- Database imports
- Backup and archiving
- Integration with other systems
Report Export
- Documentation generation
- Human-readable summaries
- Content review and auditing
- Offline reference material
- Archival documentation
Notes
- Both formats include all available data fields
- Exports fetch live data from the API
- Large datasets may take time to export
- Existing files are overwritten without warning
- CSV files use UTF-8 encoding
- Reports use standard markdown formatting