Early Access - The Dcycle CLI is currently available for enterprise customers.
Contact us to learn more about access.
What is the Dcycle CLI?
The Dcycle CLI (dcy) is a command-line tool that allows you to interact with Dcycle’s carbon accounting platform directly from your terminal. It’s designed for:
- Bulk operations: Upload large datasets via CSV files
- Automation: Integrate Dcycle into your CI/CD pipelines and scripts
- Power users: Quick access to data without navigating the web interface
- Data management: Export, filter, and manage your sustainability data programmatically
Key Features
Organization Management
List, search, and switch between organizations. Manage members, invite users, and view hierarchy.
Asset Management
Manage facilities, vehicles, and logistic hubs. Bulk upload via CSV templates.
Emissions Data
Work with employee commute, travel, invoices, purchases, shipments, and transport routes.
Logistics Integration
Upload transport requests, fuel recharges, and manage logistics hubs.
Projects & Tasks
Create sustainability projects (carbon footprint, LCA, ISO audits) and manage tasks.
Files & Readings
Upload documents, view extracted readings, and create invoices from parsed files.
Installation
Install with Homebrew (macOS and Linux):Quick Reference
Authentication & Config
| Command | Description |
|---|---|
dcy auth login | Authenticate with Dcycle |
dcy auth logout | Log out |
dcy auth status | View current session info |
dcy config list | Show current configuration |
dcy config host set <env> | Switch environment (prod/staging/local) |
dcy version | Print CLI version |
Organization & Members
| Command | Description |
|---|---|
dcy org list | List accessible organizations |
dcy org set <id> | Set active organization |
dcy org show <id> | Show organization details |
dcy org tree | Show organization hierarchy |
dcy org create | Create organization |
dcy org edit <id> | Edit organization |
dcy org invite <email> | Invite user to organization |
dcy member list | List organization members |
dcy member invite <email> | Invite member |
dcy member edit <id> | Change member role |
dcy member delete <id> | Remove member |
Assets
| Command | Description |
|---|---|
dcy facility list | List facilities |
dcy facility create | Create facility |
dcy facility edit <id> | Edit facility |
dcy facility delete <id> | Delete facility |
dcy vehicle list | List fleet vehicles |
dcy vehicle create | Create vehicle |
dcy vehicle edit <id> | Edit vehicle |
dcy vehicle upload | Bulk upload vehicles from CSV |
dcy vehicle diagnose | Diagnose vehicle issues |
dcy vehicle-fuel list | List available vehicle fuels |
dcy hub list | List logistic hubs |
dcy hub create | Create hub |
dcy hub edit <id> | Edit hub |
Emissions Data
| Command | Description |
|---|---|
dcy employee list | List employee commute records |
dcy employee create employee | Create employee |
dcy employee create add-period <id> | Add commute period |
dcy employee create import-periods | Bulk import employees from CSV |
dcy travel list | List business travel records |
dcy transport list | List transport routes |
dcy invoice list | List energy invoices |
dcy invoice edit <id> | Enable/disable/update invoice |
dcy invoice recalculate | Recalculate invoice emissions |
dcy purchase list | List purchases |
dcy purchase upload | Bulk upload purchases from CSV |
dcy shipment list | List shipments |
dcy shipment create | Create shipment |
Logistics
| Command | Description |
|---|---|
dcy logistics requests list | List transport requests |
dcy logistics recharges list | List fuel recharges |
dcy logistics upload | Upload CSV data |
dcy logistics clients list | List available clients |
dcy logistics tocs list | List cargo types |
Files & Projects
| Command | Description |
|---|---|
dcy file upload <path> | Upload a file |
dcy file list | List uploaded files |
dcy file reading list | List file readings |
dcy file reading create-records <id> | Create invoices from a reading |
dcy project list | List projects |
dcy project create | Create project |
dcy project task list <id> | List project tasks |
dcy project task create <id> | Create project task |
Reference & Advanced
| Command | Description |
|---|---|
dcy supplier list | List available suppliers |
dcy units list | List available units |
dcy own-workforce list | List own workforce records |
dcy own-workforce delete-bulk | Bulk delete records |
dcy custom-ef upload | Upload custom emission factors |
dcy lca link | Link LCA materials to ecoinvent |
Output Formats
The CLI supports multiple output formats:Getting Help
Every command supports the--help flag:
Next Steps
Authentication
Learn how to authenticate and configure the CLI
Organizations
Manage your organization context and members
Assets
Manage facilities, vehicles, and hubs
Emissions Data
Work with employees, invoices, purchases, and more
Projects
Create and manage sustainability projects
Own Workforce & Reference
Own workforce, suppliers, units, and custom emission factors

