Skip to main content
Early Access - The Dcycle CLI is currently available for enterprise customers. Contact us to learn more about access.

Examples & Workflows

Learn how to automate operational data management with practical, production-ready examples.

CI/CD Pipeline Integration

Automate uploads with GitHub Actions, GitLab CI, and other CI/CD tools. Includes validation, notifications, and best practices for reliable pipelines.

Multi-Organization Consolidated Reporting

Generate consolidated sustainability reports across holdings, subsidiaries, and business units. Compare performance and track group-wide targets.

Logistics Data Automation

Daily automation for transport companies: upload trip data (viajes) and fuel consumption (consumos). Integration with TMS/ERP systems.

Quick Start

Interactive Login

API Key Login (for scripts and CI/CD)

API keys are created by organization admins in the Dcycle web interface under Settings → API Keys. Use them for CI/CD pipelines and scheduled scripts where interactive OAuth login isn’t possible.

Verify Setup

Run dcy doctor to check everything is configured correctly:
Output:

Cross-Module Workflows

Complete Data Import Pipeline

Use the guided import flow to upload CSV/Excel data with column mapping and validation:

File Upload and Processing

Upload documents (invoices, contracts) and create records from extracted readings:

Employee Survey Campaign

Send mobility surveys and track completion:

Project Setup with Tasks

Create a carbon footprint project and assign tasks to team members:

Data Extraction with jq

Vehicle Fleet Analysis

Facility Data Export

Invoice Status Report

Organization Hierarchy


Bulk Operations

Bulk Delete with Filter

Bulk Delete with ID File

For commands that support delete-bulk, pass a file with one ID per line:

Batch Vehicle Upload


Scripting Best Practices

Error Handling with Retry

dcy automatically retries transient failures (429, 502, 503, 504) with exponential backoff. Shell-level retry is only needed to restart after non-retryable errors like timeouts. See Automatic Retry for details.

Pagination Loop

Some commands return paginated results. Loop through all pages:

Conditional Logic Based on Data

Logging and Audit Trail


Debugging

Verbose Mode

Use --verbose to see HTTP requests and responses:
Output on stderr:
Verbose output goes to stderr, so it won’t interfere with JSON piped to other tools:

Save Debug Output

Check CLI Version


Environment Variables Reference

All settings can be controlled via environment variables — useful for CI/CD, Docker containers, and cron jobs:
Command-line flags always take precedence over environment variables.

More Resources

Automation Guide

Comprehensive automation patterns and strategies

MCP Server

AI-assisted analysis with Claude

Data Imports

Guided CSV/Excel import with validation

API Reference

REST API for custom integrations