Skip to main content
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 operational data 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 operational data programmatically

Key Features

Organization Management

List, search, and switch between organizations. Manage members, invite users, and view hierarchy.

Facilities & Hubs

Manage facilities, logistic hubs, and bulk upload vehicles 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.

Widgets & Dashboards

Build pivot tables, charts, and KPI widgets on project dashboards. Filter, add intensity measures, and export CSV.

Admin Operations

Trigger backend recalculations (Scope 3 T&D, waste transport) and insert energy records.

Installation

Install with Homebrew (macOS and Linux):
Verify the install:

Updating

To update to the latest version:

Quick Reference

Authentication & Config

Organization & Members

Assets

Emissions Data

Logistics

Files & Projects

Widgets

Data Imports

Reference & Advanced

Admin

Global Flags

These flags are available on every command:
Verbose output goes to stderr, so it won’t interfere with JSON piped to other tools: dcy vehicle list --json --verbose | jq '.'

Output Formats

The CLI supports multiple output formats:
Set a default format via environment variable:

Environment Variables

All settings can be controlled via environment variables, useful for CI/CD pipelines and scripts: Command-line flags always take precedence over environment variables.

Shell Completions

Enable tab completion for commands, flags, and values:
To load completions permanently, see dcy completion --help for per-shell instructions.
Shell completions include context-aware values — for example, --status suggests valid status values and --format suggests text or json.

Aliases

Most list subcommands support ls as a short alias:

Troubleshooting

Run dcy doctor to verify your CLI setup:
This checks your config file, API host, authentication, organization, and CLI version. Use --format json for machine-readable output.

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

Vehicles

Manage fleet vehicles, fuel types, and CSV uploads

Facilities

Manage physical locations and their emissions

Invoices

Manage energy invoices for Scope 1 and Scope 2 emissions

Projects

Create and manage sustainability projects

Data Imports

Bulk import CSV/Excel with guided mapping and validation

Widgets

Build dashboard widgets, charts, and export data

Admin

Recalculations and direct data manipulation

MCP Server

Query your data from AI assistants via MCP