Administrative operations for recalculations and direct data manipulation
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.
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.
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:
dcy admin recalculate-waste-transport <org-id>
Output:
Waste transport recalculation triggered for 1 organization(s)Organizations: 550e8400-...Wastes Matched: 45Events Emitted: 45
# Preview what would be recalculateddcy admin recalculate-waste-transport 550e8400-... --dry-run# Trigger recalculationdcy admin recalculate-waste-transport 550e8400-...# Multiple orgsdcy admin recalculate-waste-transport 550e8400-... 661f9511-...# JSON outputdcy admin recalculate-waste-transport 550e8400-... --format json
Dry-run output:
Waste transport recalculation triggered for 1 organization(s)Organizations: 550e8400-...Wastes Matched: 45Events Emitted: 0⚠ dry run: no events were emitted
# Insert a single electricity recorddcy admin energy 550e8400-... electricity 500.0# Batch insert from CSVdcy admin energy --file energy-records.csv# JSON outputdcy admin energy 550e8400-... heat 1200.0 --format json