Skip to main content
Early Access - The Dcycle CLI is currently available for enterprise customers. Contact us to learn more about access.
Admin commands are intended for platform administrators and support engineers. They trigger backend recalculations or directly modify data tables — use with caution.

Overview

Admin commands provide low-level operations for triggering recalculations and inserting energy data directly. Unlike most CLI commands, admin operations take organization IDs as positional arguments rather than using --org.

Available Commands


Recalculate Scope 3 T&D

Trigger a backend task to recalculate Scope 3 Transmission & Distribution data for one or more organizations:
Output:
Multiple organizations can be recalculated in a single call:

Flags

Examples


Recalculate Waste Transport

Re-split waste emissions into management vs transport components for one or more organizations. The backend finds waste records where the split needs recalculating and emits EventBridge events to trigger the recalculation pipeline:
Output:

Flags

Examples

Dry-run output:

Energy Records

Insert or update energy records directly in the energy table, bypassing the normal calculation flow. Values must be in kWh.

Inline Mode (Single Item)

Output:
Record types: electricity, heat, vehicle_consumption.

Batch Mode (CSV File)

Output:

Flags

CSV Format

The CSV file must have a header row with these required columns:
items.csv
  • Maximum 500 rows per file
  • total_kwh must be non-negative
  • UTF-8 BOM is automatically stripped (Excel on Windows)

Examples


Typical Workflows

Recalculate After Data Migration

Bulk Energy Data Fix

Next Steps

Waste Water

Recalculate waste water treatment emissions

Invoices

Manage energy invoices

Organizations

Find organization IDs

Configuration

Set up environments and API keys