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

Overview

Browse available units of measurement for quantities in purchases, shipments, and transport routes.

Available Commands


List Units

The command reads GET /v2/units and prints one line per unit: its id, its stored type and its name. Output for dcy units list --type vehicle_consumptions:
Units are sorted by type, then by name alphabetically. Without --type the command lists the whole catalog.

The type flag

--type is not the type printed in the second column. It is sent as the type parameter of GET /v2/units, and each of its values returns the units the Dcycle app offers in one form: --type wastes returns only kilogram_(kg), --type transport the weight units of a shipment. The accepted values are listed in What each type returns. The type in the output is a legacy classification of each unit, and it is not reliable: kilogram_(kg) shows as solid and kilometer_(km) as gas. Passing one of those values, such as --type mass or --type energy, fails: the API rejects it as a validation error (422).

Flags

Examples

For dcy shipment create --unit <unit-id> and dcy transport edit --unit <unit-id>, take the id from dcy units list --type transport: shipments accept only those weight units.

Aliases

Next Steps

Suppliers

Browse available suppliers

Transport

Track upstream and downstream transport emissions

Shipments

Manage shipment records

Purchases

Manage purchased goods and services