Early Access - The Dcycle CLI is currently available for enterprise customers.
Contact us to learn more about access.
Overview
Theemployee command tracks how employees travel to and from work, covering GHG Protocol Scope 3 Category 7 (Employee Commuting). Employees have commuting periods that define their transport mode, distance, and frequency.
Available Commands
| Command | Description |
|---|---|
list | List employees |
show | Show employee details |
create employee | Create an employee (with optional inline period) |
create add-period | Add a commute period to an existing employee |
create import-periods | Bulk import employee periods from CSV |
set info | Update employee name, email, or situation |
set update-historic | Bulk update historic periods from CSV |
delete | Delete an employee |
List Employees
Examples
Flags
| Flag | Short | Default | Description |
|---|---|---|---|
--year | — | — | Filter by year |
--page | — | 1 | Page number |
--size | — | 50 | Page size |
--org | — | — | Organization ID override |
Show Employee Details
Examples
Flags
| Flag | Description |
|---|---|
--org | Organization ID override |
Create Employee
Create an employee with optional inline commuting period data.Examples
Flags
| Flag | Short | Default | Description |
|---|---|---|---|
--name | -n | — | Employee name |
--email | -e | — | Employee email |
--situation | — | active | Employee situation (active, inactive, terminated) |
--status | — | uploaded | Employee status |
--org | — | — | Organization ID override |
Period Flags (optional — creates period if --transport is set)
| Flag | Short | Default | Description |
|---|---|---|---|
--transport | -t | — | Commute transport mode |
--start-date | — | — | Period start date (YYYY-MM-DD) |
--end-date | — | — | Period end date (YYYY-MM-DD) |
--total-km | — | — | Total km per period |
--weekly-travels | — | — | Comma-separated days worked per week |
--daily-trips | — | 2 | Number of daily trips |
--vehicle-size | — | — | Vehicle size (small, medium, large) |
--fuel | -f | — | Fuel type |
--renewable-energy | — | — | Renewable energy (yes, no, do_not_know) |
--carpool | — | false | Enable carpooling |
--commuting-type | — | in_itinere | Commuting type |
--response-medium | — | manual | Response medium |
--period-situation | — | active | Period situation |
Add Period to Employee
Add a commuting period to an existing employee.Examples
Flags
Required:--transport, --start-date, --end-date. All period flags from create employee apply.
Import Employees from CSV
Bulk import employee commute periods from a CSV file.Examples
Flags
| Flag | Short | Default | Description |
|---|---|---|---|
--dry-run | — | false | Preview changes without importing |
--skip-overlap | — | false | Skip periods that overlap existing ones |
--yes | -y | false | Skip confirmation prompt |
--org | — | — | Organization ID override |
CSV Columns
Required:employee_id, transport_type, start_date, end_date.
Optional: total_km, weekly_travels, daily_trips, vehicle_size, fuel_type, renewable_energy, commuting_type, response_medium, situation, carpool.
Edit Employee
Update employee name, email, or situation.Examples
Flags
| Flag | Short | Description |
|---|---|---|
--name | -n | New name |
--email | -e | New email |
--situation | -s | New situation (active, inactive, terminated) |
Update Historic Periods
Bulk update employee historic periods from a CSV file.Examples
Flags
| Flag | Default | Description |
|---|---|---|
--dry-run | false | Preview changes without updating |
--yes | false | Skip confirmation prompt |
--org | — | Organization ID override |
CSV Columns
Required:employee_historic_id. At least one of: total_km, start_date, end_date.
Delete Employee
Examples
Flags
| Flag | Short | Default | Description |
|---|---|---|---|
--yes | -y | false | Skip confirmation prompt |
--org | — | — | Organization ID override |
Common Options
All employee commands support:| Flag | Description |
|---|---|
--format json | JSON output (default: text) |
--verbose | Show HTTP request/response details |
--timeout | Request timeout in seconds |