Early Access - The Dcycle CLI is currently available for enterprise customers.
Contact us to learn more about access.
Overview
Thedcy imports command provides a guided pipeline for bulk-importing data from CSV or Excel files. It handles column mapping, validation, error correction, and submission — all from the terminal.
Supported data types (templates):
Import Workflow
A typical import follows these steps:- Create — Upload your file and start an import session
- Suggest mapping — Get AI-assisted column mapping suggestions
- Confirm mapping — Lock in the column mapping
- Validate — Check all rows for errors
- Patch (optional) — Fix row-level errors
- Submit — Process the import and create records
Step 1: Explore the Template
Before importing, check what columns and formats the template expects:Get Available Options
For category columns, check what values are accepted:Step 2: Create Import Session
Upload a file and start a new import session:Step 3: Map Columns
Get AI Suggestions
The system analyzes your source columns and suggests mappings:- ≥ 0.92 —
auto-mapped: high confidence, ready to use - 0.60–0.91 —
suggested: review recommended - < 0.60 —
unmapped: manual mapping required
Confirm the Mapping
Save the mapping to a JSON file and confirm it:mapping.json
Check Unique Values
Before validating, preview how category values will be resolved:Step 4: Validate
Run validation to check all rows against the template rules:Browse Rows
Inspect all rows (or just error rows) with pagination:Step 5: Fix Errors (Optional)
Patch individual row values without re-uploading the file:Step 6: Submit
Once validation passes, submit the import for processing:Managing Sessions
Check Session Status
created, parsed, mapped, validating, validated, submitting, submitted, failed, expired), row counts, and processing info.
List All Sessions
Delete a Session
Remove a non-submitted session and its cached data:Complete Example
End-to-end import of energy invoices:Next Steps
Invoices
Manage energy invoices for Scope 1 and Scope 2 emissions
Files
Upload and process documents
Examples
See end-to-end workflow examples
Configuration
Set up environments and API keys