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

Overview

The logistics commands are designed for fleet operators and transport companies with high-volume data:
  • Requests (Viajes): Individual transport trips with origin, destination, and cargo
  • Recharges (Consumos): Vehicle fuel consumption records
  • Upload: Bulk CSV upload for both data types
  • Status: Quick summary of all logistics data

Summary Status

Get a quick overview of your logistics data:
Output:

JSON Response


Transport Requests

Transport requests represent individual trips or routes with emissions calculations.

List Requests

Output:
Each row shows: movement ID, trip date, client, distance, carbon emissions, and status.

JSON Response Fields

Show Request Details

Output:
If the request has errors, they are displayed:

Delete Requests

Delete operations are destructive and cannot be undone.

Delete by File

Delete all requests that were uploaded from a specific file:
The command first counts matching requests, then deletes them:

Delete All

Delete ALL requests for the organization:
Confirmation prompt (without --yes):
Output:

Fuel Recharges

Track fuel consumption for your fleet.

Delete Recharges

Remove all recharges for the organization:
Output:
To view recharges data, use dcy logistics status for counts. Recharges don’t have a list command — use the Dcycle web interface or API for detailed views.

Bulk CSV Upload

The most efficient way to upload large amounts of logistics data.

Generate Templates

The CLI generates ready-to-fill CSV templates with correct column headers and example data:
Output:
Output:

Upload Data

Output:

Upload JSON Response

Template: Requests (Viajes)

The requests template has 13 columns:
logistics_viajes_template.csv

Template: Recharges (Consumos)

The recharges template has 6 columns:
logistics_consumos_template.csv

Reference Data

List Clients

Browse available logistics clients for your organization:
Output:
Clients are returned as a flat list of names (not IDs). Use client names in --client filters.

List Types of Cargo (TOCs)

Output:
Each row shows: ID, name, and type code.

Upload Workflow

1

Generate Template

Download the CSV template with correct columns:
This creates logistics_viajes_template.csv in the current directory.
2

Prepare Data

Fill the template with your data using Excel, LibreOffice, or any CSV editor.
  • Use consistent date format: YYYY-MM-DD
  • Match vehicle plates exactly as registered in dcy vehicle list
  • Use hub names from dcy hub list for origin/destination
  • Use TOC codes from dcy logistics tocs
3

Upload

Upload the completed CSV:
4

Verify

Confirm the data was imported:

Typical Workflows

Daily TMS Integration

Automate daily data uploads from your Transport Management System:

Replace Stale Data

Delete old file data and re-upload corrected CSV:

Emissions Analysis

Bulk Reset All Data


Aliases

The list subcommand supports ls as a short alias:

Next Steps

Vehicles

Manage fleet vehicles, fuel types, and CSV uploads

Transport Routes

Track upstream and downstream transport emissions

Data Imports

Alternative import pipeline with guided mapping

Examples

Complete workflow examples

MCP Tools

Query logistics data from AI assistants via MCP