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

Overview

The vehicle command manages your organization’s fleet of vehicles, covering GHG Protocol Scope 1 direct emissions from owned/rented vehicles. The related vehicle-fuel command provides reference data for fuel types and vehicle categories.

Available Commands


List Vehicles

Examples

Flags

Output

Columns: ID, name, type, ownership, license plate, status. Vehicles without a name show (not set).

Show Vehicle Details

Examples

Flags

Output


Create Vehicle

Examples

Flags

Market Segments

mini, supermini, lower_medium, upper_medium, executive, luxury, sports, dual_purpose_4x4, mpv

Vehicle Sizes

small_car, medium, large_car, average_car
Use dcy vehicle-fuel list to browse available fuel IDs, and dcy vehicle-fuel list-types for vehicle type IDs.

Edit Vehicle

Examples

Flags

Accepts the same flags as create (all optional). Additionally supports:

Delete Vehicle

Examples

Flags

Output

Confirmation prompt:

Upload Vehicles from CSV

Bulk upload vehicles with validation and CSV templates.

Examples

Flags

CSV Template Columns

The CSV upload also accepts Spanish column names (nombre, matricula, pais, tipo_vehiculo, combustible, propiedad) and normalizes type/ownership values from Spanish (pasajero->passenger, carga->freight, propio->owned, alquiler->rented).
Use --template-with-data to get real UUIDs for unknown_vehicle_id and vehicle_fuel_id pre-filled from your organization’s data.

Diagnose Vehicle Issues

Scan a vehicle’s consumption records for emission calculation issues.

Examples

Flags

Output


Recalculate Vehicle Emissions

Trigger a recalculation of vehicle consumption emissions.

Examples

Flags

Output


Delete Vehicle Consumptions

Bulk delete vehicle consumption records within a date range for an organization. Optionally includes subsidiary organizations.

Examples

Flags

Output

This deletes consumption data permanently. Without --yes, the command prompts for confirmation including whether to include subsidiaries.

Vehicle Fuels

List available fuel types for your organization.

Examples

Flags

Output


Vehicle Types

List available vehicle type categories (unknown vehicles). Use these IDs for the --unknown-vehicle-id flag when creating vehicles.

Examples

Flags

Output


Common Options

All vehicle commands support:

Workflows

Fleet Setup from CSV

Diagnose and Fix Emission Issues

Export Fleet Data

Piping with jq