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

Overview

The travel command tracks corporate travel emissions, covering GHG Protocol Scope 3 Category 6 (Business Travel) — flights, trains, car rentals, and other business trips.
dcy travel <subcommand> [flags]

Available Commands

CommandDescription
listList business travels

List Travels

dcy travel list [flags]

# Aliases
dcy travel ls

Examples

# List all business travels
dcy travel list

# By year
dcy travel list --year 2024

# By month
dcy travel list --month 2024-03

# Filter by status
dcy travel list --status active

# Pagination
dcy travel list --page 2 --size 100

# JSON for scripting
dcy travel list --format json

Flags

FlagShortDefaultDescription
--yearFilter by year
--monthFilter by month (YYYY-MM format)
--statusFilter by status (active, pending, loading, completed, error)
--page1Page number
--size50Page size
--orgOrganization ID override

Output

Showing 5 of 12 business travels in Acme Corp
abc12345-... | MAD-BCN Flight   | 2024-03-15 | Madrid    -> Barcelona | plane
def67890-... | Train to Paris   | 2024-04-02 | Barcelona -> Paris     | train
ghi11223-... | Client Visit     | 2024-05-10 | Madrid    -> Lisbon    | car

Common Options

FlagDescription
--format jsonJSON output (default: text)
--verboseShow HTTP request/response details
--timeoutRequest timeout in seconds

Workflows

Piping with jq

# Extract travel types
dcy travel list --format json | jq '[.[] | {origin, destination, transport_type}]'

# Count travels by type
dcy travel list --format json | jq 'group_by(.transport_type) | map({type: .[0].transport_type, count: length})'

# Export year's travel data
dcy travel list --year 2024 --format json --size 500 > travels-2024.json